ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andres Conrado <elandi@chiquitico.org>
To: ntg-context@ntg.nl
Subject: Re: Newbie needs help getting started
Date: Tue, 5 May 2015 20:23:21 -0500	[thread overview]
Message-ID: <CAGhDZhBcBEJG-2hDuRhVe+7XJDzAe94e9BQaUp8rfiGQVpmUWA@mail.gmail.com> (raw)


[-- 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
___________________________________________________________________________________

             reply	other threads:[~2015-05-06  1:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06  1:23 Andres Conrado [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-04 12:49 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGhDZhBcBEJG-2hDuRhVe+7XJDzAe94e9BQaUp8rfiGQVpmUWA@mail.gmail.com \
    --to=elandi@chiquitico.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).