ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Check the character after a macro
@ 2015-05-01 16:56 Sam Ḥilluc
  2015-05-01 17:38 ` Otared Kavian
  0 siblings, 1 reply; 5+ messages in thread
From: Sam Ḥilluc @ 2015-05-01 16:56 UTC (permalink / raw)
  To: ntg-context

Hello,

Is it possible to check (in a macro definition) if the character following the
macro is included in a set of characters?

Something that could work like this:

    \def\MyMacro#1{%
        \ifNextCharIn{abcd} \dothis%
        \else \dothat%
        \fi%
    }

Cheers.
___________________________________________________________________________________
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:[~2015-05-01 21:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01 16:56 Check the character after a macro Sam Ḥilluc
2015-05-01 17:38 ` Otared Kavian
2015-05-01 18:41   ` Sam Ḥilluc
2015-05-01 19:10     ` Wolfgang Schuster
2015-05-01 21:53       ` Sam Ḥilluc

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