| 1 |
---------------------------------------------------------------- |
| 2 |
cprotect --- verbatim in macro arguments |
| 3 |
E-mail: [email protected] |
| 4 |
Released under the LaTeX Project Public License v1.3c or later |
| 5 |
See http://www.latex-project.org/lppl.txt |
| 6 |
---------------------------------------------------------------- |
| 7 |
|
| 8 |
A user of the cprotect.sty package can include verbatim text (\verb, |
| 9 |
verbatim environment, ...) in the argument of any command, |
| 10 |
including moving arguments. Including verbatim text in footnotes, |
| 11 |
section titles (and other titles), etc. is as simple as typing |
| 12 |
`\cprotect\footnote` instead of `\footnote`, etc. |
| 13 |
|
| 14 |
A similar approach is taken for environments. Nesting of the |
| 15 |
various environments is taken into account. |
| 16 |
|
| 17 |
This is work in progress, all comments/bug reports are welcome! |
| 18 |
|
| 19 |
The whole package can be built from the file `cprotect.dtx' by running |
| 20 |
|
| 21 |
pdflatex cprotect.dtx |
| 22 |
makeindex -s gglo.ist -o cprotect.gls cprotect.glo |
| 23 |
makeindex -s gind.ist -o cprotect.ind cprotect.idx |
| 24 |
pdflatex cprotect.dtx |
| 25 |
pdflatex cprotect.dtx |
| 26 |
mv README.txt README |
| 27 |
|
| 28 |
The first run of pdflatex produces `cprotect.ins', `cprotect.sty', |
| 29 |
`cprotect.pdf', and this file. The other commands are necessary for |
| 30 |
the pdf to contain its index and glossary. |
| 31 |
|