CTAN Update: ifnextok
After hints on texhax by Heiko Oberdiek and on LATEX-L by Bruno Le Floche (May 11) and Frank Mittelbach (May 15; that I now finally read, 2011-06-02), \IfNextToken and \IfStarNextToken of v0.21 essentially (not exactly) are \new at ifnextchar and \@ifstar, resp., from amsmath; main own features (i) control of where to employ them, (ii) use outside math, indeed rather thinking of humanities. Documentation now mentions amsmath and mathtools.
This package is located at http://mirror.ctan.org/macros/latex/contrib/ifnextok . More information is at http://www.ctan.org/pkg/ifnextok (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Rainer Schöpf
ifnextok – Utility macro: peek ahead without ignoring spaces
The package deals with the behaviour of the LaTeX internal command \@ifnextchar, which skips blank spaces. This has the potential to surprise users, since it can produce really unwanted effects. A common example occurs with brackets starting a line following \\: the command looks for an optional argument, whereas the user wants the brackets to be printed.
The package offers commands and options for modifying this behaviour, maybe limited to certain parts of the document source.
- 2011-06-27 CTAN Update: ifnextok
- 2011-06-06 CTAN Update: ifnextok
- 2011-06-01 CTAN Update: ifnextok
- 2011-05-23 New Ctan package: ifnextok