[OS X TeX] Italics in \newenvironment

Stephan Hochhaus stephan at yauh.de
Sun Jun 19 14:12:42 CEST 2005

Am 19.06.2005 um 13:53 schrieb Damon Muller:

> \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).
\textit is a command (not an environment that begins and ends) that  
takes one argument, so it is not suited for use as an environment  
(since it isn't one). You should use something that works similar to  
\large, which "switches" the font until something else happens.

So you should rather use \itshape than \begin{textit}. You probably  
*could* find a way to make \textit{here comes the content of the  
environment} work, but since the \text.. commands aren't defined to  
contain paragraphs you should not chose to do so for your own good ;-)

So my advise is to use:



--------------------- 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