* Newbie needs help getting started
@ 2015-05-04 12:49 Johan Råde
2015-05-04 14:25 ` Pablo Rodriguez
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Johan Råde @ 2015-05-04 12:49 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie needs help getting started
2015-05-04 12:49 Newbie needs help getting started Johan Råde
@ 2015-05-04 14:25 ` Pablo Rodriguez
2015-05-05 8:26 ` Johan Råde
2015-05-04 15:14 ` Mojca Miklavec
2015-05-08 17:00 ` Johan Råde
2 siblings, 1 reply; 9+ messages in thread
From: Pablo Rodriguez @ 2015-05-04 14:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie needs help getting started
2015-05-04 12:49 Newbie needs help getting started Johan Råde
2015-05-04 14:25 ` Pablo Rodriguez
@ 2015-05-04 15:14 ` Mojca Miklavec
2015-05-04 16:37 ` Hans Hagen
2015-05-08 17:00 ` Johan Råde
2 siblings, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2015-05-04 15:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, May 4, 2015 at 2:49 PM, Johan Råde <johan.rade@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie needs help getting started
2015-05-04 15:14 ` Mojca Miklavec
@ 2015-05-04 16:37 ` Hans Hagen
0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2015-05-04 16:37 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie needs help getting started
2015-05-04 12:49 Newbie needs help getting started Johan Råde
2015-05-04 14:25 ` Pablo Rodriguez
2015-05-04 15:14 ` Mojca Miklavec
@ 2015-05-08 17:00 ` Johan Råde
2015-05-08 17:23 ` Hans Hagen
2 siblings, 1 reply; 9+ messages in thread
From: Johan Råde @ 2015-05-08 17:00 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie needs help getting started
2015-05-08 17:00 ` Johan Råde
@ 2015-05-08 17:23 ` Hans Hagen
2015-05-09 6:25 ` Johan Råde
0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2015-05-08 17:23 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie needs help getting started
@ 2015-05-06 1:23 Andres Conrado
0 siblings, 0 replies; 9+ messages in thread
From: Andres Conrado @ 2015-05-06 1:23 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2202 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 3528 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-05-09 6:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-04 12:49 Newbie needs help getting started Johan Råde
2015-05-04 14:25 ` Pablo Rodriguez
2015-05-05 8:26 ` Johan Råde
2015-05-04 15:14 ` Mojca Miklavec
2015-05-04 16:37 ` Hans Hagen
2015-05-08 17:00 ` Johan Råde
2015-05-08 17:23 ` Hans Hagen
2015-05-09 6:25 ` Johan Råde
2015-05-06 1:23 Andres Conrado
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).