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.

Sources /macros/latex/contrib/ifnextok
Ver­sion 0.3
Li­cense The Project Public Li­cense 1.3
Main­tainer Uwe Lück
TDS archive ifnextok.tds.zip
Con­tained in TeX Live as ifnex­tok
MiKTeX as ifnex­tok
Topics sup­port for de­vel­op­ment of macros

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


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


Guest Book Sitemap Contact Contact Author