ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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-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).