home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
- 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
-