Hi, I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine. Here is what I did: 1. I downloaded context-setup-mswin.zip. 2. I unzipped and copied the folder to C:/context 3. I ran the command first-setup.bat --context=current --modules=all 4. I added C:\context\tex\texmf-win64\bin to my PATH variable 5. I opened up the example file at http://wiki.contextgarden.net/Hello_world in TeXWorks 6. I selected ConTeXt(LuaTeX) 7. I compiled the file The compilation failed. The log says: mtx-context | warning: synctex is enabled mtx-context | run 1: luatex --fmt="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="HelloWorld" --lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --synctex=1 --c:currentrun=1 --c:fulljobname="./HelloWorld.tex" --c:input="./HelloWorld.tex" --c:kindofrun=1 --c:maxnofruns=8 --c:synctex "cont-yes.mkiv" This is LuaTeX, Version beta-0.76.0-2013062820 (rev 4627) \write18 enabled. (Fatal format file error; I'm stymied) mtx-context | fatal error: return code: 1 What am I doing wrong? Thank you, Johan Råde
On 05/04/2015 02:49 PM, Johan Råde wrote:
Hi,
I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine. Here is what I did:
1. I downloaded context-setup-mswin.zip. 2. I unzipped and copied the folder to C:/context 3. I ran the command first-setup.bat --context=current --modules=all 4. I added C:\context\tex\texmf-win64\bin to my PATH variable 5. I opened up the example file at http://wiki.contextgarden.net/Hello_world in TeXWorks 6. I selected ConTeXt(LuaTeX) 7. I compiled the file
The compilation failed.
Hi Johan, I wonder whether both paths (from MikTeX and the ConTeXt Suite) don’t clash. My guess is that you should run: c:\context\tex\setuptex mtxrun --generate context --make --all And compile the file you want from the command line, if compilation from TeXworks fails. I hope it might help, Pablo -- http://www.ousia.tk
On 2015-05-04 16:25, Pablo Rodriguez wrote:
I wonder whether both paths (from MikTeX and the ConTeXt Suite) don’t clash.
You are absolutely right. I changed the system path so the ConTeXt path comes before the MiKTeX path. I can now run both LaTeX and ConTeXt from TeXWorks. --Johan
On Mon, May 4, 2015 at 2:49 PM, Johan Råde
Hi,
I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine. Here is what I did:
1. I downloaded context-setup-mswin.zip. 2. I unzipped and copied the folder to C:/context 3. I ran the command first-setup.bat --context=current --modules=all 4. I added C:\context\tex\texmf-win64\bin to my PATH variable 5. I opened up the example file at http://wiki.contextgarden.net/Hello_world in TeXWorks 6. I selected ConTeXt(LuaTeX) 7. I compiled the file
The compilation failed. The log says:
mtx-context | warning: synctex is enabled mtx-context | run 1: luatex --fmt="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="HelloWorld" --lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --synctex=1 --c:currentrun=1 --c:fulljobname="./HelloWorld.tex" --c:input="./HelloWorld.tex" --c:kindofrun=1 --c:maxnofruns=8 --c:synctex "cont-yes.mkiv" This is LuaTeX, Version beta-0.76.0-2013062820 (rev 4627) \write18 enabled.
(Fatal format file error; I'm stymied) mtx-context | fatal error: return code: 1
What am I doing wrong?
That's weird. Try running first-setup.bat without --context=current. And then try to stay in the command line, run setuptex.bat (I forgot the details) or change the PATH variable manually and try running "context --make --all". (Due to the criticism of releasing the "current" all too often, Hans started releasing betas. But then he stopped releasing stable versions and as a consequence very often "current" doesn't even work with the luatex version shipped with the distribution. I would bet that "--context=current" is broken, but I didn't try it. You should get beta by default.) But the weird thing is that "Fatal format file error; I'm stymied" error was common with pdfTeX. With ConTeXt MkIV the formats are usually regenerated automatically. Mojca
On 5/4/2015 5:14 PM, Mojca Miklavec wrote:
But the weird thing is that "Fatal format file error; I'm stymied" error was common with pdfTeX. With ConTeXt MkIV the formats are usually regenerated automatically.
It's not that weird: pdftex etc have no check on the format so if for instance a new primitive an old format will crash the new tex. For that reason we added a compatibility version number to luatex (starting at asciisum("DEK") to test to luatex format loading that will quit when that number jumped .. we're now one version further down the line. So ... a quit instead of a crash. So, if pdftex would add a primitive it doesn't give that message but either crashes or runs on with the wrong mem undump. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2015-05-04 14:49, Johan Råde wrote:
Hi,
I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine.
To be more specific, I want to able to run both LaTeX and ConText from TexWorks. The following works. (I followed Andres Conrado's advise to use a bat file.) 1. Install MiKTeX (using the Windows installer) 2. Downloaded context-setup-mswin.zip. Unzip. Copy to C:\context Run the command C:\context\first-setup.bat --modules=all 3. Create a bat file C:\context1.bat with the following content: call C:\context\tex\setuptex context %* 4. Start TexWorks Go to File -> Preferences -> Typesetting. In the "Processing tools" list, select ConTeXt(LuaTeX). Press Edit. In the program field, replace context.tex by C:\context1.bat --Johan
On 5/8/2015 7:00 PM, Johan Råde wrote:
On 2015-05-04 14:49, Johan Råde wrote:
Hi,
I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine.
To be more specific, I want to able to run both LaTeX and ConText from TexWorks. The following works. (I followed Andres Conrado's advise to use a bat file.)
1. Install MiKTeX (using the Windows installer)
2. Downloaded context-setup-mswin.zip. Unzip. Copy to C:\context Run the command C:\context\first-setup.bat --modules=all
3. Create a bat file C:\context1.bat with the following content:
call C:\context\tex\setuptex context %*
4. Start TexWorks Go to File -> Preferences -> Typesetting. In the "Processing tools" list, select ConTeXt(LuaTeX). Press Edit. In the program field, replace context.tex by C:\context1.bat
if mtxrun.exe is in your path, then you can just run: mtxrun --autogenerate --script context %* and don't need to setup anything Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2015-05-08 19:23, Hans Hagen wrote:
if mtxrun.exe is in your path, then you can just run:
mtxrun --autogenerate --script context %*
and don't need to setup anything
If I add both LaTeX and ConTeXt to my path, then there are conflicts between the two TeX installations. The point of calling ConTeXt through a bat file that first calls setuptex is to avoid having to add ConTeXt to my path. --Johan
participants (4)
-
Hans Hagen
-
Johan Råde
-
Mojca Miklavec
-
Pablo Rodriguez