3

How do I create a list/table where the item names (first column) occurs inside the page margin (outside the usual area where text would be located) and is right aligned?

Example of desired behaviour:

...

enter image description here

...

I have read the documentation for enumitem, but can't see an appropriate command for the style argument.

11
  • does tex.stackexchange.com/questions/33334/… help?
    – d-cmst
    Nov 26, 2013 at 9:00
  • 2
    so you should really add a minimal working example (MWE)
    – d-cmst
    Nov 26, 2013 at 9:13
  • 2
    To be honest I don't think a MWE is necessary here. The picture should be enough.
    – Vivi
    Nov 26, 2013 at 9:16
  • 2
    @Vivi in the linked answer the list is inside the margin, since the OP says he still want the text inside the margin, I assume there are some differences with respect to the liked qeustion. Otherwise this is a duplicate.
    – d-cmst
    Nov 26, 2013 at 9:17
  • 1
    You are free to believe whatever you like, don't worry. However, this would not have happened if you had posted a MWE in the first place. My impression was the the picture showed a faulty behavior and you wanted to move the description inside the margin.
    – d-cmst
    Nov 26, 2013 at 9:51

1 Answer 1

3

This will work only for short labels.

\documentclass{article}

\usepackage{enumitem,showframe}

\SetLabelAlign{parright}{\parbox{\labelwidth}{\makebox[0pt][r]{#1\hspace{1em}}}}

\newlist{mydescription}{description}{1}
\setlist[mydescription,1]{style=multiline,topsep=10pt,leftmargin=*,labelsep=0pt,font=\color{blue}\normalfont,%
    align=parright}

\begin{document}

\section{Experience}
\begin{mydescription}
  \item[hyperref] Some dummy text here to fill the space. Some dummy text here to fill the space. Some dummy text here to fill the space.Some dummy text here to fill the space.
  \item[showkeys - keys] Software Developer  
\end{mydescription}

\end{document}

enter image description here

You must log in to answer this question.

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