TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 10 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
5  
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

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.