From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89941 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Can I use mkii and mkiv side by side? Date: Mon, 26 Jan 2015 17:19:26 +0100 Message-ID: References: <8F6790B0-69F1-498C-BF27-23EB5E0D508E@icloud.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============1401025630==" X-Trace: ger.gmane.org 1422289234 13913 80.91.229.3 (26 Jan 2015 16:20:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 16:20:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 26 17:20:30 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFmOo-0002f0-4o for gctc-ntg-context-518@m.gmane.org; Mon, 26 Jan 2015 17:20:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 568E91021D for ; Mon, 26 Jan 2015 17:20:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EQQSTx-hZ6Zx for ; Mon, 26 Jan 2015 17:20:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C249010230 for ; Mon, 26 Jan 2015 17:19:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32345101EA for ; Mon, 26 Jan 2015 17:19:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MGv5jrlVTBuJ for ; Mon, 26 Jan 2015 17:19:32 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id C2154101E8 for ; Mon, 26 Jan 2015 17:19:32 +0100 (CET) Original-Received: from mail.rna.nl (D57D7632.static.ziggozakelijk.nl [213.125.118.50]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t0QGIoW0032019 for ; Mon, 26 Jan 2015 17:18:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id 4360314D6946 for ; Mon, 26 Jan 2015 17:19:31 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aXtw1pXDG8Ra for ; Mon, 26 Jan 2015 17:19:28 +0100 (CET) Original-Received: from luna.fritz.box (a82-93-73-222.adsl.xs4all.nl [82.93.73.222]) by mail.rna.nl (Postfix) with ESMTPSA id AF00614D692C for ; Mon, 26 Jan 2015 17:19:28 +0100 (CET) In-Reply-To: <8F6790B0-69F1-498C-BF27-23EB5E0D508E@icloud.com> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.118.50; country=NL; region=North Brabant; city=Tilburg; latitude=51.5769; longitude=5.1063; http://maps.google.com/maps?q=51.5769,5.1063&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WNIEiONc - f12e256efd6d - 20150126 (trained as not-spam) Received-SPF: none (filter5-til.mf.surf.net: domain of gerben.wierda@rna.nl does not designate permitted sender hosts) receiver=filter5-til.mf.surf.net; client-ip=213.125.118.50; envelope-from=; helo=mail.rna.nl; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89941 Archived-At: --===============1401025630== Content-Type: multipart/alternative; boundary="Apple-Mail=_ADAD7F65-67DE-4380-8C6A-07DB5A9D0805" --Apple-Mail=_ADAD7F65-67DE-4380-8C6A-07DB5A9D0805 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I don=92t use TeXShop for these projects. I use a separate editor in a = shell and a Makefile (very old-fashioned). The Makefile contains stuff = like: OPEN=3Decho MODE=3D--mode=3Dstandalone ONCE=3D .SUFFIXES: .pdf .tex .open .pdf.open: open $< .tex.pdf: texexec --pdf ${MODE} ${ONCE} $< once: make ONCE=3D"--once" book-open full: make ONCE=3D"" book-open prd_book.pdf: ${PRODUCTSDIR}/prd_book.tex ${ENVDIR}/env_cataoia.tex \ $(TEXS) $(BOOKIMAGES) = /Users/gerben/Library/texmf/bibtex/bib/gwierda.bib make MODE=3D"--mode=3Deditor" ONCE=3D"${ONCE}" = ${PRODUCTSDIR}/prd_book.pdf I can do a quick compile with 'make once' and a full compile with 'make = full=92. And if I compile a separate chapter file it ends up being = compiled differently from compiling a full book (e.g. the endnotes and = bibliography end up at the end of the chapter) so I can work on separate = chapters. luna:chapters gerben$ make -n c_loosely.pdf texexec --pdf --mode=3Dstandalone c_loosely.tex luna:chapters gerben$ make -n prd_book.pdf make MODE=3D"--mode=3Deditor" ONCE=3D"" ../products/prd_book.pdf The latter turns into texexec --pdf --mode=3Deditor ../products/prd_book.tex And the environment file has: \startmode[standalone] = \setupfootertexts[pagenumber][{\jobname->\filename{\currentcomponent}}] \def\maybeendnotes {\subsubject{Notes} \placenotes[endnote] \subsubject{Bibliography} \switchtobodyfont[9pt] \placepublications[criterium=3Dall]} \appendtoks \maybeendnotes \to \everystoptext \stopmode So, what would be easiest for me if I know what commend to use instead = of the texexec command. G On 21 Jan 2015, at 12:55, Keith Schultz = wrote: > Hi Otared and Gerben, >=20 > I do not know which version of TeXShop you are using but the more = recent ones > have Engines for ConTeXt, already. >=20 > If they are not already installed you can find them in: > ~/Libraries/TeXShop/Engines/Inactive >=20 > just more the Contex( LuaTeX).engine into Engines and restart > TeXShop. >=20 > Here is the engine definition for MacTeX 2014 (TeXLive) > #!/bin/tcsh >=20 > # Before using this engine, you must run the following command once in = Terminal: luatools --generate >=20 > set path=3D ($path /usr/texbin /usr/local/bin) > mtxrun --script context --autogenerate --synctex=3D1 "$1" >=20 >=20 >> Am 21.01.2015 um 12:08 schrieb Otared Kavian : >>=20 >> Hi Gerben, > [snip, snip] >> For instance my file mkii.engine contains the following lines: >>=20 >> #!/bin/bash >> source /Volumes/OK/context-minimal/tex/setuptex=20 >> texexec --autogenerate --synctex=3D1 "$1"=20 > No need to Source setuptex. > Just set the Path to your ConTeXt Standalone directory > The setuptex script is a multi-platform script to setup the paths! >=20 >=20 >> where =20 >> /Volumes/OK/context-minimal/tex/setuptex=20 >> is the path to the file setuptex in my Context standalone directory. >>=20 >> Best regards: OK >>=20 >=20 > regards > Keith. > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_ADAD7F65-67DE-4380-8C6A-07DB5A9D0805 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 I = don=92t use TeXShop for these projects. I use a separate editor in a = shell and a Makefile (very old-fashioned). The Makefile contains stuff = like:

OPEN=3Decho
MODE=3D--mode=3Dstandalone
ONCE=3D

.SUFFIXES: .pdf .tex = .open

.pdf.open:
  =       open $<

.tex.pdf:
        texexec --pdf ${MODE} = ${ONCE} $<

once:
        = make ONCE=3D"--once" book-open

full:
        make ONCE=3D"" = book-open

prd_book.pdf: ${PRODUCTSDIR}/prd_book.tex = ${ENVDIR}/env_cataoia.tex \
        $(TEXS) = $(BOOKIMAGES) = /Users/gerben/Library/texmf/bibtex/bib/gwierda.bib
  =       make MODE=3D"--mode=3Deditor" ONCE=3D"${ONCE}" = ${PRODUCTSDIR}/prd_book.pdf

I = can do a quick compile with 'make once' and a full compile with 'make = full=92. And if I compile a separate chapter file it ends up being = compiled differently from compiling a full book (e.g. the endnotes and = bibliography end up at the end of the chapter) so I can work on separate = chapters.

luna:chapters gerben$ make -n = c_loosely.pdf
texexec --pdf --mode=3Dstandalone  = c_loosely.tex
luna:chapters gerben$ make -n = prd_book.pdf
make MODE=3D"--mode=3Deditor" ONCE=3D"" = ../products/prd_book.pdf

The latter turns = into

texexec --pdf --mode=3Deditor  = ../products/prd_book.tex

And the = environment file has:

\startmode[standalone]
  = \setupfootertexts[pagenumber][{\jobname->\filename{\currentcomponent}}]=
  \def\maybeendnotes
     = {\subsubject{Notes} \placenotes[endnote] = \subsubject{Bibliography}
        = \switchtobodyfont[9pt]
        = \placepublications[criterium=3Dall]}
  \appendtoks \maybeendnotes = \to \everystoptext
\stopmode

So, what = would be easiest for me if I know what commend to use instead of the = texexec command.

G

On = 21 Jan 2015, at 12:55, Keith Schultz <keithjschultz@icloud.com> = wrote:

Hi Otared and Gerben,

I do not know which version = of TeXShop you are using but the more recent ones
have Engines for = ConTeXt, already.

If they are not already installed you can find = them in:
~/Libraries/TeXShop/Engines/Inactive

just more the = Contex( LuaTeX).engine into Engines and restart
TeXShop.

Here = is the engine definition for MacTeX 2014 = (TeXLive)
#!/bin/tcsh

# Before using this engine, you must run = the following command once in Terminal: luatools --generate

set = path=3D ($path /usr/texbin /usr/local/bin)
mtxrun --script context = --autogenerate --synctex=3D1 "$1"


Am = 21.01.2015 um 12:08 schrieb Otared Kavian <otared@gmail.com>:

Hi = Gerben,
[snip, snip]
For = instance my file mkii.engine contains the following = lines:

#!/bin/bash
source = /Volumes/OK/context-minimal/tex/setuptex
texexec --autogenerate = --synctex=3D1 "$1"
No need to Source setuptex.
Just = set the Path to your ConTeXt Standalone directory
The setuptex = script is a multi-platform script to setup the = paths!


where  
= /Volumes/OK/context-minimal/tex/setuptex
is the path to the = file setuptex in my Context standalone directory.

Best regards: = OK


regards
= Keith.
_________________________________________________________= __________________________
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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_ADAD7F65-67DE-4380-8C6A-07DB5A9D0805-- --===============1401025630== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1401025630==--