Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to make my itemize text ragged right. Is there a cleaner way than to redefine the \@item[#1]{...} from latex.ltx? This is what I have done now:

\def\@item[#1]{%
  \if@noparitem
...
  \everypar{%
    \raggedright %    <----
    \@minipagefalse
...
    \fi
    \hskip \labelsep}%
  \ignorespaces}

This works fine, but perhaps there is another easy to use hook? I know I can put this in a package and load it, but I ask for the correct way to change this.

share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

Maybe I am missing something, but what about

\documentclass{article}
\usepackage{lipsum}

\newenvironment{ritemize}{\begin{itemize}\raggedright}{\end{itemize}}
\begin{document}

\begin{ritemize}
 \item \lipsum[1-2]
\end{ritemize}

\end{document}
share|improve this answer
    
Sure. Embarrassing :) –  topskip Sep 5 '12 at 11:24
3  
Just a quick follow-up comment: I would also load the ragged2e package and then use the command \RaggedRight (instead of \raggedright) inside the new environment. That way, hyphenation is still enabled. –  Mico Sep 5 '12 at 12:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.