Debian Codegraph @

texmf-dist/doc/latex/xpeek/README

raw
1 `xpeek`: Define commands that peek ahead in the input stream
2 ============================================================
3
4 The `xpeek` package provides tools to help define commands that,
5 like [`\xspace`][1], peek at what follows them in the command stream
6 and choose appropriate behavior.
7
8 The code is adapted from an answer posted to [TeX.SX][2] by
9 Enrico “egreg” Gregorio at <http://tex.stackexchange.com/a/59542/2966>,
10 with modifications according to suggestions & contributions by
11 Enrico, Joseph Wright, Bruno Le Floch, & Clemens Niederberger;
12 see <http://tex.stackexchange.com/q/63568/2966>
13 and <http://thread.gmane.org/gmane.comp.tex.latex.latex3/2894>.
14
15 Installation
16 ------------
17
18 This package is distributed as a standalone `.dtx` file,
19 packaged for the LaTeX3 project’s `l3docstrip`.
20 To produce the style file, run this command:
21
22 pdflatex xpeek.dtx
23
24 This will also produce a version of the PDF documentation,
25 but with undefined references and without an index or change-log.
26 To get a more useful version of the documentation,
27 run these commands next:
28
29 pdflatex xpeek.dtx
30 makeindex -s l3doc.ist -o xpeek.ind xpeek.idx
31 makeindex -s gglo.ist -o xpeek.gls xpeek.glo
32 pdflatex xpeek.dtx
33 pdflatex xpeek.dtx
34
35 These next commands are not strictly necessary,
36 since Acrobat Reader can generate & display thumbnails on-the-fly.
37 But since `l3doc` includes `hypdoc` which includes `thumbpdf`,
38 I may as well generate the pre-rendered thumbnails:
39
40 thumbpdf xpeek.pdf
41 pdflatex xpeek.dtx
42
43 Notice that the command for generating the index is different
44 from the one usually used for `ltxdoc`-documented packages;
45 that’s because I’m using the new (and experimental) package `l3doc`.
46
47 License
48 -------
49
50 Copyright © 2012 by Joel C. Salomon <[email protected]>.
51
52 This work consists of the file `xpeek.dtx`,
53 and the derived files `xpeek.ins`,
54 `xpeek.pdf`, &
55 `xpeek.sty`.
56 It may be distributed and/or modified under the conditions of the
57 LaTeX Project Public License (LPPL), either version 1.3c of this
58 license or (at your option) any later version. The latest version
59 of this license is at <http://www.latex-project.org/lppl.txt>.
60
61 This work is “maintained” (_per_ LPPL maintenance status) by
62 Joel C. Salomon <[email protected]>.
63
64 [1]: http://ctan.org/pkg/xspace
65 [2]: http://tex.stackexchange.com