AZ logo

Package cprotect:
Allow verbatim, etc., in macro arguments.

The package defines the macro \cprotect that makes a following macro proof against verbatim in its argument; as, for example, \cprotect\section{\verb"foo"}

A similar macro \cprotEnv (applied to the \begin of an environment) sanitises the behavior of fragile environments.

Moving arguments, and corresponding “tables of …” work happily.

Getting it

If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)

Distribution Package name
MiKTeX cprotect
TeX Live cprotect

You can also visit cprotect's CTAN directory to browse the source or download the material for installation by hand.

More

Documentation on CTAN
Readme
Package documentation
Documentation off CTAN -none known-
Maintainers
Bruno Le Floch
Version 1.0e
License LaTeX Project Public License, version 1.3 or later
Related packages -none recorded-
Keywords
computer code, verbatim text
macro programming
Characterizations
primary:
Programming in TeX > Other
secondary:
Page-focused > Verbatim

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.