Re: [NTG-context] Newbie needs help getting started
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie needs help getting started
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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie needs help getting started
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie needs help getting started
If you use other TeX distribution (TeXlive, MikTeX), you will have conflicts because your system doesn't know how to differentiate between your current TeX distro binaries, and Context's binaries, so, the system will use different (non-compatible) versions of a lot of things, and will use the first executables found in the PATH. I have both texlive and context, but configuring them to work well together, took me a while. I use a couple of custom .bat files to invoke context's path ONLY when I compile Context files, but use the defaults for textworks when I complile LaTeX files. What I did was: 1. Your same steps 1-3. 2. Created a folder called C:/context/pragmatex/ 3. Inside that folder I placed two files: PRAGMATEX.BAT and SETPATH.BAT (contents below) 4. Add C:\context\pragmatex\ to the PATH variable (so the two mentioned files can be found by the system) 5. Configure TeXworks: 5.1. Open TW and go to Edit Preferences 5.2 Select Compilation tab 5.3 In that Window, in the field Location of TeX and related programs (or something like that, the name can be slightly different. I use the Spanish version), add (using the button marked +) the folder C:\context\pragmatex\ 5.4 In the same window, below, select ConTeXt (LuaTeX), and click edit. 5.5 In Program add C:/context/pragmatex/pragmatex.bat (without quotes). 5.6 In Parameters just add $fullname (without quotes) if it's not already there. The contents of the two mentioned files (just plain old .bat files, can be created on notepad): ** pragmatex.bat ** @echo off call C:\context\pragmatex\setpath.bat context --synctex=zipped --autogenerate %1 --purgeall ** ** setpath.bat ** @echo off C:\context\tex\setuptex.bat C:\context\tex ** Hope this helps. Is a very crappy setup, but it works for me. You can adapt it however you like. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie needs help getting started
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Newbie needs help getting started
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie needs help getting started
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie needs help getting started
On Mon, May 4, 2015 at 2:49 PM, Johan Råde johan.r...@gmail.com 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. 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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie needs help getting started
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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___