ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unexpanded texdefinition produces “Undefined control sequence”
@ 2013-08-25 17:40 Marco Patzer
  2013-08-25 18:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-08-25 17:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 689 bytes --]

Hi,

the following example produces an “Undefined control sequence”
error. If \def is used instead of \starttexdefinition then there is
no error. Why?

\starttexcode
\installcommandhandler{foo}{foo}{foo}

\appendtoks
  \setuevalue{start\currentfoo}{\foo@start[\currentfoo]}%%
  \setuevalue{stop\currentfoo }{\foo@stop}%%
\to\everydefinefoo

\starttexdefinition unexpanded foo@start [#1]
\stoptexdefinition

%% works
%% \unexpanded\def\foo@stop{}

%% produces undefined control sequence error
\starttexdefinition unexpanded foo@stop
\stoptexdefinition

\stoptexcode
\definefoo [myfoo]

\starttext
  \startmyfoo
    Foobar
  \stopmyfoo
\stoptext

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 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] 6+ messages in thread

end of thread, other threads:[~2013-08-26 23:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-25 17:40 Unexpanded texdefinition produces “Undefined control sequence” Marco Patzer
2013-08-25 18:56 ` Wolfgang Schuster
2013-08-25 19:09   ` Marco Patzer
2013-08-25 19:21     ` Wolfgang Schuster
2013-08-26 10:10     ` Hans Hagen
2013-08-26 23:17       ` Marco Patzer

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).