[OS X TeX] Italics in \newenvironment

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Sun Jun 19 15:00:28 CEST 2005


Try this

\newenvironment{elements}{\labelsep=0pt\begin{list}{}{\labelsep=0pt 
\itemindent=0pt\labelwidth=0pt\leftmargin=\parindent\rightmargin=0pt 
\partopsep=\bigskipamount}%
\item\itshape}%
{\end{list}}


Claus

On Jun 19, 2005, at 13:53, Damon Muller wrote:

> Hi folks,
>
> I'm trying to define a new environment which will make all of the text
> within it in italics.
>
> I have the following code, but all it's doing is making the first
> character in the environment italic, and the rest of it normal (which
> looks interesting, but isn't what I'm after).
>
> \newenvironment{elements}
>     {\begin{quote}\begin{textit}}
>     {\end{textit}\end{quote}}
>
> If I replace 'textit' with 'large', for example, it works (well, it
> doesn't make it italic, but you know what I mean).
>
> So, any suggestions?
> -- 
>   Damon Muller
>   dmuller at sent.as
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>            & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>
>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list