ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Is startalign broken in mkiv?
Date: Wed, 18 Jul 2012 21:37:42 -0400	[thread overview]
Message-ID: <18140162-B298-4CB0-B3D5-6360D6C30B03@indiana.edu> (raw)
In-Reply-To: <3CEC50C1-3EF3-4C93-9E11-03A944207A23@emory.edu>

Thanks. Now I have my own little sacrilege in the environment file.

Matthias

On Jul 17, 2012, at 11:13 PM, "Rogers, Michael K" <mroge02@emory.edu> wrote:

> Here's a backward-compatibility hack that works on your minimal example.  Maybe it will save the dozens of files without changing all the &s:
> 
> \let\oldstartalign=\startalign
> \let\oldstopalign=\stopalign
> \let\oldbs=\\
> \def\startalign{\catcode`&=4\let\\=\cr\oldstartalign}
> \def\stopalign{\oldstopalign\catcode`&=12\let\\=\oldbs}
> \starttext
> This \& that & the other thing:
> \startformula \startalign
> v &= u + at \\
> h &= ut + \frac12 gt^2 \\
> \stopalign \stopformula
> That \& this & yet another thing.
> \stoptext
> 
> Hope that helps.
> 
> Michael
> 
> On Jul 17, 2012, at 6:48 PM, Matthias Weber wrote:
> 
>> It was never a problem in TeX to modify the control characters used according to your own pleasure. For me, the problem is now to change the 200+ occurrences of start/stopaligns distributed over dozens of files to the politically correct syntax.
>> 
>> Matthias
>> 
>> On Jul 17, 2012, at 7:41 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
>> 
>>> The use of & (which is a common symbol) as a control character is a long
>>> standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of.
>>> 
>>> On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote:
>>>> Thanks - I wasn't aware that the human readable version had been deprecated :(
>>>> 
>>>> Matthias
>>>> 
>>>> On Jul 17, 2012, at 7:17 PM, Hans Hagen <pragma@wxs.nl> wrote:
>>>> 
>>>>> On 18-7-2012 00:22, Matthias Weber wrote:
>>>>>> \starttext
>>>>>> \startformula \startalign
>>>>>> v &= u + at \\
>>>>>> h &= ut + \frac12 gt^2 \\
>>>>>> \stopalign \stopformula
>>>>>> \stoptext
>>>>>> 
>>>>>> 
>>>>>> ---->>
>>>>>> 
>>>>>> ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english
>>>>>> (...)
>>>>>> ! Missing $ inserted.
>>>>>> 
>>>>>> system          > tex > error on line 3 in file test.tex: Missing $ inserted ...
>>>>>> 
>>>>>> 1     \starttext
>>>>>> 2     \startformula \startalign
>>>>>> 3 >>  v &= u + at \\
>>>>>> 4     h &= ut + \frac12 gt^2 \\
>>>>>> 5     \stopalign \stopformula
>>>>>> 6     \stoptext
>>>>>> 
>>>>>> Thanks -
>>>>> 
>>>>> the context way is:
>>>>> 
>>>>> \startformula \startalign
>>>>> \NC v \NC = u + at \NR
>>>>> \NC h \NC = ut + \frac12 gt^2 \NR
>>>>> \stopalign \stopformula
>>>>> 
>>>>> 
>>>>> -----------------------------------------------------------------
>>>>>                                       Hans Hagen | PRAGMA ADE
>>>>>           Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>>>> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>>>>>                                          | www.pragma-pod.nl
>>>>> -----------------------------------------------------------------
> 
> 
> ________________________________
> 
> 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-07-19  1:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17 22:22 Matthias Weber
2012-07-17 23:17 ` Hans Hagen
2012-07-17 23:32   ` Matthias Weber
2012-07-17 23:41     ` Khaled Hosny
2012-07-18  1:48       ` Matthias Weber
2012-07-18  3:13         ` Rogers, Michael K
2012-07-19  1:37           ` Matthias Weber [this message]
2012-07-18 10:38         ` Khaled Hosny

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=18140162-B298-4CB0-B3D5-6360D6C30B03@indiana.edu \
    --to=matweber@indiana.edu \
    --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).