* intertext error in mkiv
@ 2010-11-23 16:13 Vladimir Lomov
2010-11-23 16:17 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Lomov @ 2010-11-23 16:13 UTC (permalink / raw)
To: General mailing list for ConTeXt users
Hi.
The example with start/stopintertext from 'mathalign.pdf' (My Way, Using \startalign and friends,
Aditya Mahajan) gives error with current context (beta):
<example file="ex2.tex">
%%% Seems that there is a problem with \start/stopintertext . This command is described in mathalign.pdf
%%% (MyWay).
\starttext
Here the start/stopintertext should give text between formulas
\startformula
\startalign
\NC \exp^{\imath t}=\cos t+\imath\sin t\NR
\startintertext
This is famous Euler formula, below one is known as Moivre formula
\stopintertext
\NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
\stopalign
\stopformula
That's it.
\stoptext
</example>
<error_message>
! Misplaced \noalign.
\startintertext #1\stopintertext ->\noalign
{\dointertext {#1}}
l.12 \stopintertext
?
</error_message>
$ context --version
MTXrun | main context file: /usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.11.20 12:51
Is this a bug or I do something wrong?
---
WBR, Vladimir Lomov.
--
What you don't know won't help you much either.
-- D. Bennett
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: intertext error in mkiv
2010-11-23 16:13 intertext error in mkiv Vladimir Lomov
@ 2010-11-23 16:17 ` Aditya Mahajan
2010-11-23 16:27 ` Vladimir Lomov
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2010-11-23 16:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 24 Nov 2010, Vladimir Lomov wrote:
> Hi.
>
> The example with start/stopintertext from 'mathalign.pdf' (My Way, Using \startalign and friends,
> Aditya Mahajan) gives error with current context (beta):
> <example file="ex2.tex">
> %%% Seems that there is a problem with \start/stopintertext . This command is described in mathalign.pdf
> %%% (MyWay).
>
> \starttext
>
> Here the start/stopintertext should give text between formulas
> \startformula
> \startalign
> \NC \exp^{\imath t}=\cos t+\imath\sin t\NR
> \startintertext
> This is famous Euler formula, below one is known as Moivre formula
> \stopintertext
> \NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
> \stopalign
> \stopformula
>
> That's it.
>
> \stoptext
> </example>
>
> <error_message>
> ! Misplaced \noalign.
> \startintertext #1\stopintertext ->\noalign
> {\dointertext {#1}}
> l.12 \stopintertext
> ?
> </error_message>
>
> $ context --version
>
> MTXrun | main context file: /usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
> MTXrun | current version: 2010.11.20 12:51
>
> Is this a bug or I do something wrong?
Bug, and it seems a rather old one. It also fails with 2010.05.24.
I cannot debug this right now. A quick workaround is to use
\intertext{...} instead.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: intertext error in mkiv
2010-11-23 16:17 ` Aditya Mahajan
@ 2010-11-23 16:27 ` Vladimir Lomov
2011-05-04 10:22 ` Julian Becker
0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Lomov @ 2010-11-23 16:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
** Aditya Mahajan [2010-11-23 11:17:55 -0500]:
> On Wed, 24 Nov 2010, Vladimir Lomov wrote:
>
>>Hi.
>>
>>The example with start/stopintertext from 'mathalign.pdf' (My Way, Using \startalign and friends,
>>Aditya Mahajan) gives error with current context (beta):
>><example file="ex2.tex">
>>%%% Seems that there is a problem with \start/stopintertext . This command is described in mathalign.pdf
>>%%% (MyWay).
>>
>>\starttext
>>
>>Here the start/stopintertext should give text between formulas
>>\startformula
>> \startalign
>> \NC \exp^{\imath t}=\cos t+\imath\sin t\NR
>> \startintertext
>> This is famous Euler formula, below one is known as Moivre formula
>> \stopintertext
>> \NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
>> \stopalign
>>\stopformula
>>
>>That's it.
>>
>>\stoptext
>></example>
>>
>><error_message>
>>! Misplaced \noalign.
>>\startintertext #1\stopintertext ->\noalign
>> {\dointertext {#1}}
>>l.12 \stopintertext
>>?
>></error_message>
>>
>>$ context --version
>>
>>MTXrun | main context file: /usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
>>MTXrun | current version: 2010.11.20 12:51
>>
>>Is this a bug or I do something wrong?
>
> Bug, and it seems a rather old one. It also fails with 2010.05.24.
>
> I cannot debug this right now. A quick workaround is to use
> \intertext{...} instead.
Ok, thanks.
P.S. I thought that all start/stopXXX commands has cousin commands
\XXX. Seems that I was wrong.
--
On the subject of C program indentation:
"In My Egotistical Opinion, most people's C programs should be
indented six feet downward and covered with dirt."
-- Blair P. Houghton
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: intertext error in mkiv
2010-11-23 16:27 ` Vladimir Lomov
@ 2011-05-04 10:22 ` Julian Becker
2011-05-05 8:11 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Julian Becker @ 2011-05-04 10:22 UTC (permalink / raw)
To: mailing list for ConTeXt users, Vladimir Lomov
[-- Attachment #1.1: Type: text/plain, Size: 2884 bytes --]
This seems to be still broken :-(
The \intertext{} workaround however is still working, luckily
2010/11/23 Vladimir Lomov <lomov.vl@gmail.com>
> ** Aditya Mahajan [2010-11-23 11:17:55 -0500]:
>
> > On Wed, 24 Nov 2010, Vladimir Lomov wrote:
> >
> >>Hi.
> >>
> >>The example with start/stopintertext from 'mathalign.pdf' (My Way, Using
> \startalign and friends,
> >>Aditya Mahajan) gives error with current context (beta):
> >><example file="ex2.tex">
> >>%%% Seems that there is a problem with \start/stopintertext . This
> command is described in mathalign.pdf
> >>%%% (MyWay).
> >>
> >>\starttext
> >>
> >>Here the start/stopintertext should give text between formulas
> >>\startformula
> >> \startalign
> >> \NC \exp^{\imath t}=\cos t+\imath\sin t\NR
> >> \startintertext
> >> This is famous Euler formula, below one is known as Moivre formula
> >> \stopintertext
> >> \NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
> >> \stopalign
> >>\stopformula
> >>
> >>That's it.
> >>
> >>\stoptext
> >></example>
> >>
> >><error_message>
> >>! Misplaced \noalign.
> >>\startintertext #1\stopintertext ->\noalign
> >> {\dointertext {#1}}
> >>l.12 \stopintertext
> >>?
> >></error_message>
> >>
> >>$ context --version
> >>
> >>MTXrun | main context file:
> /usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
> >>MTXrun | current version: 2010.11.20 12:51
> >>
> >>Is this a bug or I do something wrong?
> >
> > Bug, and it seems a rather old one. It also fails with 2010.05.24.
> >
> > I cannot debug this right now. A quick workaround is to use
> > \intertext{...} instead.
> Ok, thanks.
>
> P.S. I thought that all start/stopXXX commands has cousin commands
> \XXX. Seems that I was wrong.
>
> --
> On the subject of C program indentation:
> "In My Egotistical Opinion, most people's C programs should be
> indented six feet downward and covered with dirt."
> -- Blair P. Houghton
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
--
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_beck16@uni-muenster.de
"Keep thy heart with all diligence; for it is the wellspring of life."
[-- Attachment #1.2: Type: text/html, Size: 4114 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: intertext error in mkiv
2011-05-04 10:22 ` Julian Becker
@ 2011-05-05 8:11 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2011-05-05 8:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 4-5-2011 12:22, Julian Becker wrote:
> This seems to be still broken :-(
> The \intertext{} workaround however is still working, luckily
>
> 2010/11/23 Vladimir Lomov<lomov.vl@gmail.com>
>
>> ** Aditya Mahajan [2010-11-23 11:17:55 -0500]:
>>
>>> On Wed, 24 Nov 2010, Vladimir Lomov wrote:
>>>
>>>> Hi.
>>>>
>>>> The example with start/stopintertext from 'mathalign.pdf' (My Way, Using
>> \startalign and friends,
>>>> Aditya Mahajan) gives error with current context (beta):
>>>> <example file="ex2.tex">
>>>> %%% Seems that there is a problem with \start/stopintertext . This
>> command is described in mathalign.pdf
>>>> %%% (MyWay).
>>>>
>>>> \starttext
>>>>
>>>> Here the start/stopintertext should give text between formulas
>>>> \startformula
>>>> \startalign
>>>> \NC \exp^{\imath t}=\cos t+\imath\sin t\NR
>>>> \startintertext
>>>> This is famous Euler formula, below one is known as Moivre formula
>>>> \stopintertext
>>>> \NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
>>>> \stopalign
>>>> \stopformula
>>>>
>>>> That's it.
>>>>
>>>> \stoptext
>>>> </example>
>>>>
>>>> <error_message>
>>>> ! Misplaced \noalign.
>>>> \startintertext #1\stopintertext ->\noalign
>>>> {\dointertext {#1}}
>>>> l.12 \stopintertext
>>>> ?
>>>> </error_message>
>>>>
>>>> $ context --version
>>>>
>>>> MTXrun | main context file:
>> /usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
>>>> MTXrun | current version: 2010.11.20 12:51
>>>>
>>>> Is this a bug or I do something wrong?
>>>
>>> Bug, and it seems a rather old one. It also fails with 2010.05.24.
has to do with the tex scanner in alignments (doesn't like unexpandable
macros)
>>> I cannot debug this right now. A quick workaround is to use
>>> \intertext{...} instead.
>> Ok, thanks.
>>
>> P.S. I thought that all start/stopXXX commands has cousin commands
>> \XXX. Seems that I was wrong.
%D The intertext commands have to be expandable (in aligment lookahead) so
%D we cannot use \type {\unexpanded}.
\let\stopintertext\relax
\def\startintertext#1\stopintertext
{\noalign{\dointertext{#1}}}
\def\intertext#1%
{\noalign{\dointertext{#1}}}
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-05 8:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23 16:13 intertext error in mkiv Vladimir Lomov
2010-11-23 16:17 ` Aditya Mahajan
2010-11-23 16:27 ` Vladimir Lomov
2011-05-04 10:22 ` Julian Becker
2011-05-05 8:11 ` Hans Hagen
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).