* Ampersand in \unprotect fails in LMTX
@ 2021-07-09 10:56 Marco Patzer
2021-07-09 12:29 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2021-07-09 10:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi!
the following example compiles with MkIV but fails in LMTX:
\unprotect
\setupinteraction
[\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX
\protect
\starttext\null\stoptext
LMTX:
1 \unprotect
2 \setupinteraction
3 [\c!author={Foo & Bar}]
4 >> \protect
5
6 \starttext\null\stoptext
7
I can't figure out why you would want to use a tab mark here. If some right brace
up above has ended a previous alignment prematurely, you're probably due for more
error messages.
mtx-context | fatal error: return code: 256
As \& works for MkIV as well as LMTX, there's an easy workaround.
But maybe this isn't intended behaviour and needs checking.
ConTeXt ver: 2021.07.06 18:49 LMTX
Marco
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ampersand in \unprotect fails in LMTX
2021-07-09 10:56 Ampersand in \unprotect fails in LMTX Marco Patzer
@ 2021-07-09 12:29 ` Hans Hagen
2021-07-09 12:46 ` Marco Patzer
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2021-07-09 12:29 UTC (permalink / raw)
To: mailing list for ConTeXt users, Marco Patzer
On 7/9/2021 12:56 PM, Marco Patzer wrote:
> Hi!
>
> the following example compiles with MkIV but fails in LMTX:
>
> \unprotect
> \setupinteraction
> [\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX
> \protect
>
> \starttext\null\stoptext
>
> LMTX:
>
> 1 \unprotect
> 2 \setupinteraction
> 3 [\c!author={Foo & Bar}]
> 4 >> \protect
> 5
> 6 \starttext\null\stoptext
> 7
> I can't figure out why you would want to use a tab mark here. If some right brace
> up above has ended a previous alignment prematurely, you're probably due for more
> error messages.
> mtx-context | fatal error: return code: 256
>
> As \& works for MkIV as well as LMTX, there's an easy workaround.
> But maybe this isn't intended behaviour and needs checking.
intended ... author passes different through the system in lmtx (better)
\starttext
\unprotect
\setupinteraction
[\c!author=\detokenize{Foo & Bar}]
\protect
\input ward
\stoptext
shows the difference
but why unprotect and not just
\setupinteraction
[author={Foo & Bar}]
of course \& also works ok.
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ampersand in \unprotect fails in LMTX
2021-07-09 12:29 ` Hans Hagen
@ 2021-07-09 12:46 ` Marco Patzer
2021-07-09 13:28 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2021-07-09 12:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 9 Jul 2021 14:29:20 +0200
Hans Hagen <j.hagen@xs4all.nl> wrote:
> > As \& works for MkIV as well as LMTX, there's an easy workaround.
> > But maybe this isn't intended behaviour and needs checking.
> intended ... author passes different through the system in lmtx
> (better)
Apparently not only author. Also title, subtitle, …
> \starttext
>
> \unprotect
> \setupinteraction
> [\c!author=\detokenize{Foo & Bar}]
> \protect
That works as well.
> but why unprotect and not just
>
> \setupinteraction
> [author={Foo & Bar}]
That's just an MWE to demonstrate the problem. The actual code is
part of a module (therefore it's \unprotect'ed).
> of course \& also works ok.
I'll convert to \&. Thanks for the quick reply.
Marco
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ampersand in \unprotect fails in LMTX
2021-07-09 12:46 ` Marco Patzer
@ 2021-07-09 13:28 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2021-07-09 13:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
Marco Patzer schrieb am 09.07.2021 um 14:46:
> On Fri, 9 Jul 2021 14:29:20 +0200
> Hans Hagen <j.hagen@xs4all.nl> wrote:
>
>>> As \& works for MkIV as well as LMTX, there's an easy workaround.
>>> But maybe this isn't intended behaviour and needs checking.
>> intended ... author passes different through the system in lmtx
>> (better)
> Apparently not only author. Also title, subtitle, …
>
>> \starttext
>>
>> \unprotect
>> \setupinteraction
>> [\c!author=\detokenize{Foo & Bar}]
>> \protect
> That works as well.
>
>> but why unprotect and not just
>>
>> \setupinteraction
>> [author={Foo & Bar}]
> That's just an MWE to demonstrate the problem. The actual code is
> part of a module (therefore it's \unprotect'ed).
1. While most modules use \unprotect there is often no need for it.
2. You can stop and restart protected mode in a module.
Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-09 13:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 10:56 Ampersand in \unprotect fails in LMTX Marco Patzer
2021-07-09 12:29 ` Hans Hagen
2021-07-09 12:46 ` Marco Patzer
2021-07-09 13:28 ` Wolfgang Schuster
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).