`xpeek`: Define commands that peek ahead in the input stream ============================================================ The `xpeek` package provides tools to help define commands that, like [`\xspace`][1], peek at what follows them in the command stream and choose appropriate behavior. The code is adapted from an answer posted to [TeX.SX][2] by Enrico “egreg” Gregorio at , with modifications according to suggestions & contributions by Enrico, Joseph Wright, Bruno Le Floch, & Clemens Niederberger; see and . License ------- Copyright © 2012 by Joel C. Salomon . This work consists of the file `xpeek.dtx`, and the derived files `xpeek.ins`, `xpeek.pdf`, & `xpeek.sty`. It may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this license or (at your option) any later version. The latest version of this license is at . This work is “maintained” (_per_ LPPL maintenance status) by Joel C. Salomon . [1]: http://ctan.org/pkg/xspace [2]: http://tex.stackexchange.com