CTAN Comprehensive TeX Archive Network

ifnextok – Utility macro: peek ahead without ignoring spaces

The pack­age deals with the be­haviour of the in­ter­nal com­mand \@ifnextchar, which skips blank spaces. This has the po­ten­tial to sur­prise users, since it can pro­duce re­ally un­wanted ef­fects. A com­mon ex­am­ple oc­curs with brack­ets start­ing a line fol­low­ing \\: the com­mand looks for an op­tional ar­gu­ment, whereas the user wants the brack­ets to be printed.

The pack­age of­fers com­mands and op­tions for mod­i­fy­ing this be­haviour, maybe lim­ited to cer­tain parts of the doc­u­ment source.

Li­censesThe Project Public Li­cense 1.3
Main­tainerUwe Lück
TDS archiveifnextok.tds.zip
Con­tained inTeX Live as ifnex­tok
MiKTeX as ifnex­tok
TopicsMacro sup­port

Down­load the con­tents of this pack­age in one zip archive (244.2k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Pack­age Links

Guest Book Sitemap Contact Contact Author