🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #11821

From macro to environment

#11821
From: Olivier Michel
Date: Mon, 28 Jul 1997 00:00
40 lines
1543 bytes
Hi,

I'd like to translate a macro involving a \parbox into
an environment. Any idea ? I'd like to transform the following
\LaTeX code into a \begin{env}Here is a def\end{env}. Is this possible ?

Thank you in advance.

-------------
\documentclass{article}
\usepackage{color}
\usepackage{amsmath}
\usepackage[thmmarks,standard]{ntheorem}

\theoremstyle{break}
\newtheorem{defi}{Definition}

\begin{document}


\definecolor{mygrey}{gray}{0.90}
\definecolor{black}{gray}{0}

\noindent\fcolorbox{black}{mygrey}{\parbox{\linewidth}{%
\begin{defi}
Here is some definition
\end{defi}}}

\end{document}




-- 
  Olivier MICHEL                           Email : michel@lri.fr 
  Laboratoire LRI - Universite Paris Sud         : Olivier.Michel@lri.fr
  Bat. 490 - bureau 11                     http  : www.lri.fr/~michel
  91405 ORSAY CEDEX                        Fax   : +33 01 69 15 65 86
  FRANCE                                   Phone : +33 01 69 15 42 25
Technical Details
Message-ID: <33DC810D.3B6C@lri.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <j.doumont-2407971153550001@130.104.106.49> <33D922D9.5F9E@grc.varian.com> <5rhsbv$1dek@oshans.cc.osha.sut.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,ece5ff92608fac42
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 10ee61,bd779e7192d22231,start
X-Google-Attributes: gid10ee61,public
From: Olivier Michel <michel@lri.fr>
Subject: From macro to environment
Date: 1997/07/28
Message-ID: <33DC810D.3B6C@lri.fr>
X-Deja-AN: 259735437
References: <j.doumont-2407971153550001@130.104.106.49> <33D922D9.5F9E@grc.varian.com> <5rhsbv$1dek@oshans.cc.osha.sut.ac.jp>
Organization: LRI
Newsgroups: comp.text.tex,fr.comp.text.tex