Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/macros/latex/contrib/environ

___________________
The ENVIRON package
v0.2

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:

  \NewEnviron{test}[3][]{"#1,#2,\BODY,#3"}
  \begin{test}[zero]{one}{last}
    three\par four
  \end{test}

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:

Files

Name Size Date Notes
README 597 2014-05-04 10:29
environ.dtx 18521 2014-05-04 10:29
environ.ins 1704 2014-05-04 10:29
environ.pdf 155907 2014-05-04 10:29

Down­load the con­tents of this pack­age in one zip archive (158.0k).

en­v­i­ron – A new in­ter­face for en­vi­ron­ments in LaTeX

The pack­age pro­vides the \col­lect@body com­mand (as in ams­math), as well as a \long ver­sion \Col­lect@Body, for col­lect­ing the body text of an en­vi­ron­ment.

Th­ese com­mands are used to de­fine a new au­thor in­ter­face to cre­at­ing new en­vi­ron­ments. For ex­am­ple:
  \NewEn­v­i­ron{test}
wraps the en­tire en­vi­ron­ment body in square brack­ets, do­ing the right thing in ig­nor­ing lead­ing and trail­ing spaces.

Pack­age De­tailsen­v­i­ron
Ver­sion0.3
Li­censeThe LaTeX Project Public Li­cense
Copy­right2007, 2013 Will Robert­son
Main­tainerWill Robert­son
TDS archiveenviron.tds.zip
Con­tained inTeXlive as en­v­i­ron
MikTeX as en­v­i­ron
Topics sup­port for de­vel­op­ment of (La)TeX macros
Guest Book Sitemap Contact