From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77680 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: 2 columns: 1 language per column (solved) Date: Wed, 1 Aug 2012 08:39:01 +0200 Message-ID: References: <87vch6muf0.fsf@micropit.couberia.bzh> <5017A00B.3020809@wxs.nl> <87ehns8emb.fsf@micropit.couberia.bzh> <5017A8F8.9060404@wxs.nl> <87obmw6mpv.fsf_-_@micropit.couberia.bzh> <877gtj7vcc.fsf@micropit.couberia.bzh> <939F439F-BEB6-4259-AFEF-594B93E1106C@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343803148 5332 80.91.229.3 (1 Aug 2012 06:39:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 06:39:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 01 08:39:08 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwSaK-0000An-7w for gctc-ntg-context-518@m.gmane.org; Wed, 01 Aug 2012 08:39:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24AD810214; Wed, 1 Aug 2012 08:39:07 +0200 (CEST) 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 ZHyY7l1NWvCU; Wed, 1 Aug 2012 08:39:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 25A0910206; Wed, 1 Aug 2012 08:39:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE92210206 for ; Wed, 1 Aug 2012 08:39:03 +0200 (CEST) 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 bVKRsqZ-uqTd for ; Wed, 1 Aug 2012 08:39:02 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 9001110205 for ; Wed, 1 Aug 2012 08:39:02 +0200 (CEST) Original-Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q716d1aC012823 for ; Wed, 1 Aug 2012 08:39:01 +0200 Original-Received: by wibhm6 with SMTP id hm6so2974645wib.2 for ; Tue, 31 Jul 2012 23:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=6cY8MA8Dde/9PUGL2QzwNebTMsAGtXC4r9zWpcWkkLo=; b=ZkErUTysNmy65zmBRFYg1bj3ZeS3+zhkD/rN6Xziyxszvvhnvu+foculsCJXoH5PwH V1KiA9n+WzcgtifSV9UXSU/ggKh14MbttLcEWWDgDsX7YZWGQ5+vHvkAeRUQat7NodwP bUGsoLTE+nz2wokX5VmD6FNfaRo8oq356YysiyLz8x8FzBETcKMBJh6ldD94rxj/bHss NJYPo5hjBZhguF+LWjt0skvcP1tMf1PcQss6PERUoCNfl9Dp71F9rXHRj3dFeyFkU0T1 +NhVN9EvlNlpIkvZaMoORH1Bp4E/iiRuk+HofE02xbWKb0ouBP0U/ZRFf54Em9+5eh+T WvpQ== Original-Received: by 10.180.87.106 with SMTP id w10mr528869wiz.0.1343803141084; Tue, 31 Jul 2012 23:39:01 -0700 (PDT) Original-Received: from lmv-uvsq-102.home (AOrleans-553-1-44-5.w92-152.abo.wanadoo.fr. [92.152.10.5]) by mx.google.com with ESMTPS id t8sm26331056wiy.3.2012.07.31.23.38.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 23:39:00 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1485) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.173; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHFiD1tO - a8242034a435 - 20120801 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77680 Archived-At: Hi, Thanks! Your solution works as far as creating a =AB ConTeXt-CLD.engine =BB which c= reates a menu item for typesetting a CLD document, upon choosing it for the= code written by Peter M=FCnster, provided the suffix of the document's nam= e is .tex, not .cld. However adding the line = %!TEX TS-program =3D ConTeXt-CLD at the top of the file results in an error message saying: > tex > error on line 72 in file /context-minimal/tex/texmf-context/tex/c= ontext/base/cont-yes.mkiv: LuaTeX error (here context-minimal is the directory where I have the latest version of t= he standalone ConTeXt). Also enclosing the code written by Peter between \startluacode =85. \stoplu= acode in a TEX file does not allow to to typeset the file, contrary to othe= r examples in the manual written by Hans =AB ConTeXt, Lua Documents =BB. In any case thanks for your attention: now there is another way to typeset = two languages in two columns=85 Best regards: OK On 1 ao=FBt 2012, at 00:41, "Rogers, Michael K" wrote: > If you wish to use TeXShop, you can set it up...in my typically kludgy wa= y. This mimics the TeXShop setup for Context Standalone (see http://wiki.c= ontextgarden.net/ConTeXt_Standalone/Mac_Installation) and assumes that "con= text" is in your regular execution path. > = > Create a new plain-text file in ~/Library/TeXShop/Engines -- call it what= ever you like -- let's say "ConTeXt-CLD.engine". Add these lines > ------------CUT HERE-------------- > #!/bin/bash > context --forcecld "$1" > ------------CUT HERE-------------- > = > This will create a ConTeXt-CLD menu item in the popup menu on new file wi= ndows. (You may have to restart TeXShop first.) You can select it and run = Peter's column program. > = > If you like, add these three lines to the beginning of your .tex file to = force TeXShop to use ConTeXt-CLD: > = > ------------CUT HERE-------------- > --[[ > %!TEX TS-program =3D ConTeXt-CLD > ]]-- > ------------CUT HERE-------------- > = > A drawback is that your cld files will be masquerading as .tex files. Bu= t you can process cld files in TeXShop if you want to. > = > Michael > = > On Jul 31, 2012, at 5:46 PM, Otared Kavian wrote: > = >> Thanks Peter! It is a very nice piece of code, but could this be include= d in a TeX file? (Otherwise one cannot use something like TeXShop on a Mac = to typeset the file). >> = >> Best regards: OK >> = >> = >> On 31 juil. 2012, at 18:23, Peter M=FCnster wrote: >> = >>> On Tue, Jul 31 2012, Otared Kavian wrote: >>> = >>>> Can you give please an example showing how to use your code? >>> = >>> Save it in "test.cld", then run "context test.cld". >>> Then open "test.pdf" in a PDF-viewer. >>> = >>> -- >>> Peter >>> _______________________________________________________________________= ____________ >>> 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 >>> _______________________________________________________________________= ____________ >> = >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o the Wiki! >> = >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ________________________________________________________________________= ___________ > = > = > ________________________________ > = > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > = > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________