2

I have this code:

\SetLabelAlign{rightbox}{\hss\llap{#1\quad}}
\setlist[description,1]{align=rightbox,labelsep=0pt,leftmargin=0pt}

    \section{Project 55d5396fed}
    \begin{tabular}{@{\hspace{19ex}}p{42em}}
    \begin{description}

    \item[student number] 55d5396fed



 \item[student name] We have already seen that a case of semigrammaticalness of a different sort is necessary to impose
an interpretation on irrelevant intervening contexts in selectional rules.

      \item[location] Of course, the fundamental error of regarding functional notions as categorial is to be regarded as
nondistinctness in the sense of distinctive feature theory.

       \end{description}
       \end{tabular}

The labels are right aligned. I want the labels to be left aligned. I mean the items.

1
  • 1
    Your example does not compile as-is (missing packages, document class etc.). Please add the minimal necessary code so that it does (this way other people can re-create your problem).
    – ach
    May 3, 2013 at 8:58

1 Answer 1

2

Here's a quick and dirty way to achieve what you want. All I did was change your

\SetLabelAlign{rightbox}{\hss\llap{#1\quad}}

to

\SetLabelAlign{rightbox}{\hspace{-19ex}\rlap{#1\quad}}

Output before:

enter image description here

Output after:

enter image description here

The complete code becomes:

\documentclass{article}
\usepackage{enumitem}
\begin{document}

%\SetLabelAlign{rightbox}{\hss\llap{#1\quad}}
\SetLabelAlign{rightbox}{\hspace{-19ex}\rlap{#1\quad}}
\setlist[description,1]{align=rightbox,labelsep=0pt,leftmargin=0pt}

    \section{Project 55d5396fed}
    \begin{tabular}{@{\hspace{19ex}}p{42em}}
    \begin{description}

    \item[student number] 55d5396fed



 \item[student name] We have already seen that a case of semigrammaticalness of a different sort is necessary to impose
an interpretation on irrelevant intervening contexts in selectional rules.

      \item[location] Of course, the fundamental error of regarding functional notions as categorial is to be regarded as
nondistinctness in the sense of distinctive feature theory.

       \end{description}
       \end{tabular}

\end{document}
1
  • you guys are really great
    – user17
    May 3, 2013 at 13:56

You must log in to answer this question.

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