From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93091 Path: news.gmane.org!not-for-mail From: Bruce Boghosian Newsgroups: gmane.comp.tex.context Subject: Re: Problem with first setup of StandAlone ConTeXt Date: Wed, 16 Dec 2015 11:10:51 -0500 Message-ID: <7AB507CF-AB28-4CDB-B358-DB9C316E9968@tufts.edu> References: <9D5778C9-7704-4351-A9B5-9FA472B38FD7@tufts.edu> <5DAC39F0-3E15-415B-8BA5-15A4BA2F0EF6@tufts.edu> <84693868-4DDD-438F-BDFD-73BF6F7BDECB@tufts.edu> <5670281B.1050700@mailbox.org> <2928815B-6155-4EB7-9129-22269F4D1028@tufts.edu> <53B48BB6-127A-4C2C-990C-081E6D66751C@tufts.edu> <2DC8CBE2-0208-44B8-A88E-157F9B2E69F2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/mixed; boundary="===============3433054322059258849==" X-Trace: ger.gmane.org 1450282311 19722 80.91.229.3 (16 Dec 2015 16:11:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 16:11:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 16 17:11:39 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a9Efx-0006vu-M6 for gctc-ntg-context-518@m.gmane.org; Wed, 16 Dec 2015 17:11:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D1E664D36; Wed, 16 Dec 2015 17:11:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J7KmWHAt1uby; Wed, 16 Dec 2015 17:11:04 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 37D3C5029; Wed, 16 Dec 2015 17:11:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5AD264FEC for ; Wed, 16 Dec 2015 17:11:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jX5rTqnNMzEv for ; Wed, 16 Dec 2015 17:11:01 +0100 (CET) Original-Received: from smtpout-prod-02.uit.tufts.edu (smtpout-prod-02-relay.uit.tufts.edu [130.64.213.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8980F4D36 for ; Wed, 16 Dec 2015 17:10:51 +0100 (CET) Original-Received: from ssvmexcashub02.tufts.ad.tufts.edu ([10.250.136.82]:9973) by smtpout-prod-02.uit.tufts.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1a9EfB-0008Dk-5c for ntg-context@ntg.nl; Wed, 16 Dec 2015 11:10:49 -0500 Original-Received: from [10.245.151.68] (10.250.136.17) by SSVMEXCASHUB02.tufts.ad.tufts.edu (10.250.136.82) with Microsoft SMTP Server (TLS) id 14.3.210.2; Wed, 16 Dec 2015 11:10:48 -0500 In-Reply-To: <2DC8CBE2-0208-44B8-A88E-157F9B2E69F2@gmail.com> X-Mailer: Apple Mail (2.2104) X-Originating-IP: [10.250.136.17] 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:93091 Archived-At: --===============3433054322059258849== Content-Type: multipart/alternative; boundary="Apple-Mail=_335B4504-39E5-4B14-9F52-E21140DA718E" --Apple-Mail=_335B4504-39E5-4B14-9F52-E21140DA718E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Dear Otared: Thank you for your reply. I had indeed created the file "ConTeXt Suite.engine" in directory = ~/Library/TeXShop/Engines, per the instructions on the Mac Installation = web page. That web page recommended a tcsh shell version of your bash = shell script. I suppose that either should be fine; at this point, I = have tried both. Of course, I changed the path variable to include my = local installation of ConTeXt. Then I noticed that your engine was named "mkiv.engine," rather than = "ConTeXt Suite.engine," so I tried that as well. As of this morning, none of the above tactics seem to succeed in getting = TeXShop to recognize ConTeXt. When I try to process the test file from = within TeXShop, it continues to terminate with the error that it does = not recognize the command \startsection. Again, however, everything works just fine from the command line. So I = think that the ConTeXt installation is fine. Also, FWIW, I note that de Boer's document, "LaTeX in proper ConTeXt" = recommends compiling from the command line using texexec rather than = context. This does not work for me. The command "texexec" exists, and = I can run it, but it does not produce a .pdf file -- just a .tmp file. Anyway, sorry for the newcomer questions. Once I get over this hurdle, = so that I can run ConTeXt easily from within TeXShop, I am confident = that I will be able to learn the language without bothering the list so = frequently. Best regards, Bruce Bruce M. Boghosian Professor, Department of Mathematics, Tufts University Bromfield-Pearson Hall, Medford, Massachusetts 02155, USA > On Dec 16, 2015, at 2:27 AM, Otared Kavian wrote: >=20 > Hi Bruce, >=20 > If you want to use your standalone version of ConTeXt, you should = create a specific =C2=AB .engine =C2=BB file for this and then in = TeXShop use that engine. Here is what I have when I typeset a file in = TeXShop using mkiv ConTeXt: >=20 > %%%%% begin file mkiv.engine >=20 > #!/bin/bash >=20 > export PATH=3D/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH > context --synctex=3Dzipped --autogenerate "$1" --purgeall >=20 > %%%%% end file mkiv.engine >=20 > you should replace the line =C2=AB export PATH=3D=E2=80=A6. =C2=BB by = the path to your installation of ConTeXt. >=20 > Best regards: OK > PS: regarding the installation and updates of ConTeXt on Mac, Thomas = Floren has written a nice Apple Script which you can find here: > Name: Ctx_typeset Tool > Web page: > Author: Thomas Floeren >=20 >=20 >=20 >> On 15 Dec 2015, at 23:00, Bruce Boghosian = wrote: >>=20 >> I have made good progress today, thanks to the help of this list. = Thanks! >>=20 >> I can now run the example on the First Document web page, running = ConTeXt from the command line. That works perfectly. >>=20 >> When I try to run the same file from within TeXShop, however, it = tells me: >>=20 >>> ! Undefined control sequence. >>> l.2 \startsection >>> [title=3D{Testing ConTeXt}] >>> ? >>=20 >> I have created the file "ConTeXt Suite.engine" in directory = ~/Library/TeXShop/Engines, per the instructions on the Mac Installation = web page. >>=20 >> So I am not sure why TeXShop does not know about \startsection. I = would be grateful for your advice on this. >>=20 >> Sincerely, >> Bruce >>=20 >=20 >=20 > = __________________________________________________________________________= _________ > 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=_335B4504-39E5-4B14-9F52-E21140DA718E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8" Dear Otared:

Thank you for your reply.

I had indeed created the file "ConTeXt = Suite.engine" in directory ~/Library/TeXShop/Engines, per the = instructions on the Mac Installation web page.  That web page = recommended a tcsh shell version of your bash shell script.  I = suppose that either should be fine; at this point, I have tried both. =  Of course, I changed the path variable to include my local = installation of ConTeXt.

Then I noticed that your engine was named "mkiv.engine," = rather than "ConTeXt Suite.engine," so I tried that as well.

As of this morning, none = of the above tactics seem to succeed in getting TeXShop to recognize = ConTeXt.  When I try to process the test file from within TeXShop, = it continues to terminate with the error that it does not recognize the = command \startsection.

Again, however, everything works just fine from the command = line.  So I think that the ConTeXt installation is fine.

Also, FWIW, I note that = de Boer's document, "LaTeX in proper ConTeXt" recommends compiling from = the command line using texexec rather than context.  This does not work for me.  The command "texexec" exists, and = I can run it, but it does not produce a .pdf file -- just a .tmp = file.

Anyway, = sorry for the newcomer questions.  Once I get over this hurdle, so = that I can run ConTeXt easily from within TeXShop, I am confident that I = will be able to learn the language without bothering the list so = frequently.

Best= regards,
Bruce

Bruce M. Boghosian
Professor, = Department of Mathematics, Tufts = University
Bromfield-Pearson Hall, Medford, Massachusetts 02155, = USA



On Dec 16, 2015, at 2:27 AM, = Otared Kavian <otared@gmail.com> wrote:

Hi Bruce,

If you want to use your standalone version of = ConTeXt, you should create a specific =C2=AB .engine =C2=BB file for = this and then in TeXShop use that engine. Here is what I have when I = typeset a file in TeXShop using mkiv ConTeXt:

%%%%% begin file mkiv.engine

#!/bin/bash

export = PATH=3D/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH
context --synctex=3Dzipped --autogenerate "$1" --purgeall

%%%%% end file mkiv.engine

you should replace the line =C2=AB export PATH=3D=E2=80=A6. = =C2=BB by the path to your installation of ConTeXt.

Best regards: OK
PS: regarding the installation = and updates of ConTeXt on Mac, Thomas Floren has written a nice Apple = Script which you can find here:
Name: Ctx_typeset Tool
Web page: <http://dflect.net/context-typeset-tool/>
Author: Thomas Floeren <tom@dflect.net>



On 15 Dec = 2015, at 23:00, Bruce Boghosian <bruce.boghosian@tufts.edu> wrote:

I have made good progress today, thanks to the help of this = list.  Thanks!

I can now run the = example on the First Document web page, running ConTeXt from the command = line.  That works perfectly.

When I = try to run the same file from within TeXShop, however, it tells me:

! =  Undefined control sequence.
l.2 =  \startsection
[title=3D{Testing ConTeXt}]
?

I have created = the file "ConTeXt Suite.engine" in directory ~/Library/TeXShop/Engines, = per the instructions on the Mac Installation web page.

So I am not sure why TeXShop does not know about = \startsection.  I would be grateful for your advice on this.

Sincerely,
Bruce


_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_335B4504-39E5-4B14-9F52-E21140DA718E-- --===============3433054322059258849== 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= --===============3433054322059258849==--