CTAN Comprehensive TeX Archive Network

CTAN update: cprotect

Datum: 28. Januar 2011 15:42:03 MEZ
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.

Paketcprotect
Version1.0f 2026-04-17
Copyright2010–2011, 2026 Bruno Le Floch
BetreuerBruno Le Floch

Ankündigungen

mehr

Gästebuch Seiten-Struktur Impressum Autor kontaktieren