CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/environ

The ENVIRON package

Provides two things: a new way of defining
environments that read their contents before
processing; and, a \long version of amsmath's
\collect@body macro called \Collect@Body.

Here's an example:

    three\par four

Produces the equivalent of:

  "zero,one,three\par four,last"

Will Robertson
wspr 81 [at] gmail [dot] com

Copyright 2007-2014
Distributed under the LaTeX Project Public License
%% ^^A Test that \RenewEnvironment works correctly:

Download the contents of this package in one zip archive (158.0k).

environ – A new interface for environments in

The package provides the \collect@body command (as in amsmath), as well as a \long version \Collect@Body, for collecting the body text of an environment.

These commands are used to define a new author interface to creating new environments. For example, \NewEnviron{test}, wraps the entire environment body in square brackets, doing the right thing in ignoring leading and trailing spaces.

LicensesThe Project Public License
Copyright2007, 2013 Will Robertson
MaintainerWill Robertson
TDS archiveenviron.tds.zip
Contained inTeX Live as environ
MiKTeX as environ
TopicsMacro support
Guest Book Sitemap Contact Contact Author