ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: 2 columns: 1 language per column (solved)
Date: Wed, 1 Aug 2012 08:39:01 +0200	[thread overview]
Message-ID: <BE586E45-1D66-41FA-A5F2-A27C50F07270@gmail.com> (raw)
In-Reply-To: <B613142D-23BB-40C2-AA68-CF67DA951856@emory.edu>

Hi,

Thanks!
Your solution works as far as creating a « ConTeXt-CLD.engine » which creates a menu item for typesetting a CLD document, upon choosing it for the code written by Peter Münster, provided the suffix of the document's name is .tex, not .cld.

However adding the line 
%!TEX TS-program = 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/context/base/cont-yes.mkiv: LuaTeX error
(here context-minimal is the directory where I have the latest version of the standalone ConTeXt).

Also enclosing the code written by Peter between \startluacode …. \stopluacode in a TEX file does not allow to to typeset the file, contrary to other examples in the manual written by Hans « ConTeXt, Lua Documents ».

In any case thanks for your attention: now there is another way to typeset two languages in two columns…

Best regards: OK

On 1 août 2012, at 00:41, "Rogers, Michael K" <mroge02@emory.edu> wrote:

> If you wish to use TeXShop, you can set it up...in my typically kludgy way.  This mimics the TeXShop setup for Context Standalone (see http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation) and assumes that "context" is in your regular execution path.
> 
> Create a new plain-text file in ~/Library/TeXShop/Engines -- call it whatever 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 windows. (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 = ConTeXt-CLD
> ]]--
> ------------CUT HERE--------------
> 
> A drawback is that your cld files will be masquerading as .tex files.  But 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 included 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ünster <pmlists@free.fr> 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 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
>> ___________________________________________________________________________________
> 
> 
> ________________________________
> 
> 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-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 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:[~2012-08-01  6:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-29 15:57 2 columns: 1 language per column Peter Münster
2012-07-31  9:06 ` Hans Hagen
2012-07-31  9:27   ` Peter Münster
2012-07-31  9:44     ` Hans Hagen
2012-07-31 14:15       ` 2 columns: 1 language per column (solved) Peter Münster
2012-07-31 15:17         ` Otared Kavian
2012-07-31 16:23           ` Peter Münster
2012-07-31 21:46             ` Otared Kavian
2012-07-31 22:29               ` Peter Münster
2012-07-31 22:41               ` Rogers, Michael K
2012-08-01  6:39                 ` Otared Kavian [this message]
2012-08-01 12:44                   ` Rogers, Michael K
2012-08-01 13:37                     ` Hans Hagen
2012-08-01 14:17                     ` Otared Kavian
2012-08-01  7:34               ` Hans Hagen

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=BE586E45-1D66-41FA-A5F2-A27C50F07270@gmail.com \
    --to=otared@gmail.com \
    --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).