Article View: comp.text.tex
Article #380Re: Syntax question for LaTeX newenvironment
From: Erwan David
Date: Thu, 23 Jul 1992 17:34
Date: Thu, 23 Jul 1992 17:34
29 lines
1254 bytes
1254 bytes
In article <schwartz.711810279@lead17>, schwartz@rtsg.mot.com (Steven R.
Schwartz) writes:
|> I'd like to define an fbox that's included in a LaTeX environment,
|> but the "obvious" syntax is clearly incorrect:
|>
|> \newenvironment{\boxit}{ <beginning stuff> \fbox{ }{ } <end
|> stuff> }
|> ^ ^
|> | |
|> braces for the fbox --+-----/
|>
|> Of course this won't work, but how do I express that I want the
|> contents
|> of the environment to be boxed?
|>
|> -Steve
|> schwartz@rtsg.mot.com
Just put in a .sty file
\def\@boxenv[#1]{\fbox{#1}}
\newenvironment{boxit}{ <beginning stuff> \@boxenv[}{] <end stuff> }
Erwan
--
Erwan DAVID LRI (Orsay) edavid@lri.fr
Ecole Normale Superieure (Paris) edavid@ens.fr
edavid@frulm63.bitnet
Technical Details
Message-ID:
<1992Jul23.173438.14385@lri.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!lri!edavidReferences:
<schwartz.711810279@lead17>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!lri!edavid From: edavid@lri.lri.fr (Erwan David) Newsgroups: comp.text.tex Subject: Re: Syntax question for LaTeX newenvironment Keywords: LaTeX Message-ID: <1992Jul23.173438.14385@lri.fr> Date: 23 Jul 92 17:34:38 GMT References: <schwartz.711810279@lead17> Sender: edavid@lri (Erwan David) Organization: Laboratoire de Recherche en Informatique Lines: 29