CTAN Comprehensive TeX Archive Network

CTAN update: cprotect

Date: January 28, 2011 3:42:03 PM CET
This should be at your local mirror. Jim Hef{}feron Saint Michael's College Update summary: The new version adds support for optional arguments, and for having several arguments. e.g., one can put verbatim both in a section title, and in the short title for the toc: \cprotect\section[Some \verb+^&*+]{Longer \verb+$%^&*+} Nesting is also supported. Basic package information, as sent by the contributor.
Location: /macros/latex/contrib/cprotect Author: Bruno Le Floch License: lppl1.3 Caption: Allow verbatim, etc., in macro arguments. Description: 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. * The new version supports macros with optional arguments, or with several arguments. These have to be declared, as in \cprotect[om]\sqrt[\verb+%1+]{ \verb+%3+ }. *Nesting is supported: \cprotect\section{$\cprotect[mm]\frac{\verb+%1+}{\verb+%2+}$}.
More information is at http://tug.ctan.org/pkg/cprotect (this may take a day to sync). Our archive service happens in cooperation with the TeX Users Group http://www.tug.org .

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.

Packagecprotect
Version1.0e
Copyright2010–2011 Bruno Le Floch
MaintainerBruno Le Floch

Announcements

more

Guest Book Sitemap Contact Contact Author