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

1 Answer 1

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}
1
  • Thanks! I had no idea about the command \raggedleft, it works perfect!
    – Gitano
    Dec 31, 2014 at 3:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .