CTAN update: cprotect

CTAN Announcements ctan-ann at dante.de
Fri Jan 28 21:42:03 CET 2011


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 .


More information about the Ctan-ann mailing list