1

I have the following list with the enumitem package,

\begin{flushright}
\begin{description}[font=\color{black},before=\color{blue},nosep]
\item[Item:] some text some text some text
\item[Another item:] some text
\item[Very long item:] some text some text
\item[Short item:] some text some text some text
\item[Item:] some text some text
\end{description}
\end{flushright}

and everything works perfect, except the flushright environment. I want a description list with right-alignment, I mean all the lines (the label and the body in each item) aligned to the right margin. How can I do it with enumitem package? or do I need another package?

enter image description here

7

enter image description here

\documentclass{article}
\usepackage{enumitem,xcolor}
\usepackage{showframe}
\begin{document}
\begin{description}[font=\color{black},before=\color{blue},nosep]
  \raggedleft                           %% put this here
  \item[Item:] some text some text some text
  \item[Another item:] some text
  \item[Very long item:] some text some text
  \item[Short item:] some text some text some text some text some text some text some text some text some text some text some text some text
  \item[Item:] some text some text
\end{description}
\end{document}
  • Thanks! I had no idea about the command \raggedleft, it works perfect! – Gitano Dec 31 '14 at 3:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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