From MacOSX-TeX@email.esm.psu.edu Sun Jun 19 19:57:58 2005
Received: from engremail.engr.psu.edu ([130.203.201.4]) by ENGRMAIL1.engr.psu.edu with Microsoft SMTPSVC(5.0.2195.6713);
	 Sun, 19 Jun 2005 19:57:58 -0400
Received: from email.esm.psu.edu ([130.203.247.204]) by engremail.engr.psu.edu with Microsoft SMTPSVC(5.0.2195.6713);
	 Sun, 19 Jun 2005 19:57:57 -0400
Date: Sun, 19 Jun 2005 20:00:13 -0400
Message-ID: <56013.95917@email.esm.psu.edu>
Subject: MacOSX-TeX Digest #1408 - 06/19/05
From: "TeX on Mac OS X Mailing List" 
To: "TeX on Mac OS X Mailing List" 
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
Sender: 
Precedence: List
List-Software: LetterRip Pro 4.05 (0531) by LetterRip Software, LLC.
List-Subscribe: 
List-Digest: 
List-Unsubscribe: 
X-LR-SENT-TO: mail.engr.psu.edu
Return-Path: MacOSX-TeX@email.esm.psu.edu
X-OriginalArrivalTime: 19 Jun 2005 23:57:57.0645 (UTC) FILETIME=[B76E1BD0:01C5752A]

MacOSX-TeX Digest #1408 - Sunday, June 19, 2005

  Italics in \newenvironment
          by "Damon Muller" 

  Re: [OS X TeX] Italics in \newenvironment
          by "Stephan Hochhaus" 

  Re: [OS X TeX] Italics in \newenvironment
          by "Damon Muller" 

  Re: [OS X TeX] Italics in \newenvironment
          by "Peter Dyballa" 

  Re: [OS X TeX] Italics in \newenvironment
          by "Claus Gerhardt" 

  Re: [OS X TeX] Italics in \newenvironment
          by "Herbert Schulz" 


----------------------------------------------------------------------

Subject: Italics in \newenvironment
From: "Damon Muller" 
Date: Sun, 19 Jun 2005 21:53:06 +1000

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@sent.as


----------------------------------------------------------------------

Subject: Re: [OS X TeX] Italics in \newenvironment
From: "Stephan Hochhaus" 
Date: Sun, 19 Jun 2005 14:12:42 +0200


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:

\newenvironment{elements}
     {\begin{quote}\itshape}
     {\end{quote}}

Stephan



----------------------------------------------------------------------

Subject: Re: [OS X TeX] Italics in \newenvironment
From: "Damon Muller" 
Date: Sun, 19 Jun 2005 22:31:33 +1000


> 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:
> 
> \newenvironment{elements}
>      {\begin{quote}\itshape}
>      {\end{quote}}

Cool. That works fine.

I use the _Not So Short Guide_ as my main LaTeX reference, and it
doesn't say anything about \itshape, or what things can or can't contain
paragraphs.

Thanks for the quick response!

----------------------------------------------------------------------

Subject: Re: [OS X TeX] Italics in \newenvironment
From: "Peter Dyballa" 
Date: Sun, 19 Jun 2005 15:01:49 +0200


Am 19.06.2005 um 14:31 schrieb Damon Muller:

> I use the _Not So Short Guide_ as my main LaTeX reference, and it
> doesn't say anything about \itshape, or what things can or can't=20
> contain
> paragraphs.
>

I think it's from a time before NFSS or NFSS2 (New Font Selection=20
Scheme) did exist. The LaTeX Companion deals with it. Its section about=20=

the NFSS2 is quite the same as in the fntguide document=20
(/usr/local/teTeX/share/texmf.tetex/doc/latex/base/fntguide.dvi).

--
Mit friedvollen Gr=FC=DFen

   Pete                           <]
              o        __o         |__    o       HPV, the real
     ___o    /I       -\<,         |o \  -\),-%     high speed!
___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________



----------------------------------------------------------------------

Subject: Re: [OS X TeX] Italics in \newenvironment
From: "Claus Gerhardt" 
Date: Sun, 19 Jun 2005 15:00:28 +0200

Try this

\newenvironment{elements}{\labelsep=3D0pt\begin{list}{}{\labelsep=3D0pt 
\itemindent=3D0pt\labelwidth=3D0pt\leftmargin=3D\parindent\rightmargin=3D0p=
t 
\partopsep=3D\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@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: 
>
>
>


----------------------------------------------------------------------

Subject: Re: [OS X TeX] Italics in \newenvironment
From: "Herbert Schulz" 
Date: Sun, 19 Jun 2005 08:27:41 -0500


On Jun 19, 2005, at 7:31 AM, Damon Muller wrote:

>
> Cool. That works fine.
>
> I use the _Not So Short Guide_ as my main LaTeX reference, and it
> doesn't say anything about \itshape, or what things can or can't  
> contain
> paragraphs.
>
> Thanks for the quick response!
>

Howdy,

You can get al lot out of the ``Not So Short Guide'' but in the long  
run you should get a real book to use as light/heavy reading (:-))  
and reference. I'd get ``Guide to LaTeX,'' 4th Edition, by Kopka &  
Daley. For deep detail into many packages and making LaTeX do things  
differently I'd go with ``The LaTeX Companion,'' 2nd Edition, by  
Mittelbach, Goosens, Braams, Carlisle & Rowley (no et-al here! I like  
to give credit where credit is due). Both are very well written and  
fit complement each other very well.

Good Luck,

Herb Schulz
(herbs@wideopenwest.com)



----------------------------------------------------------------------
End of MacOSX-TeX Digest

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