TeX - LaTeX Asked on August 16, 2021
In the following code I cannot figure out what to use for SPACE and DOT such that peektoken is compared to a space( ) and a dot(.) is produced as output along with the result of the test T(rue) or F(alse).
catcode`.=active
defdotnext{ifxpeektokenSPACEDOT Telse DOT Ffi}
def.{futureletpeektokendotnext}
Lorem. Ipsum. is. simply. dummy text.
bye
You want SPACE
to be let
to a space token for the ifx
test, and DOT
to be let
to a catcode12 . or def
to expand to a catcode 12 . (I do the latter here)
defDOT{.}
catcode`.=active
lowercase{letSPACE= } %
defdotnext{ifxpeektokenSPACEDOT Telse DOT Ffi}
def.{futureletpeektokendotnext}
Lorem. Ipsum. is. simply. dummy text.
a.b.c.
bye
Answered by David Carlisle on August 16, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP