[OS X TeX] TeX: parindent in new environment

Maarten Sneep maarten.sneep at xs4all.nl
Sun Mar 6 20:55:26 CET 2005


On 6 mrt 2005, at 20:51, scheissenochmal2003 at yahoo.de wrote:

> Hello List,
>
> I just have found (googled) a way to produce a raggedright paragraph
> with hyphenation and adopted it to the font I use. My solution looks
> like this:
>
>  \newenvironment{ttraggedright}{\par\normalfont
>    \hyphenchar\font=`-
>    \spaceskip=0.3em plus 0.025em minus 0.025em
>    \xspaceskip=2\spaceskip
>    \sfcode`"=0 \sfcode"015=0
>    \rightskip 0pt plus 2.5em \relax}{\par}
>
> As I don't know any plain TeX, I am asking the TeX geeks: How can I
> alter this definition so that the parindent in the environment
> \ttraggedright is set to zero without adding \noindent to every new
> paragraph in this environment?

Have a look at http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ragright 
as well.

How about adding \noindent to the starting code of the environment:

. . .
  \rightskip 0pt plus 2.5em \relax\noindent}{\par}

Maarten

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