Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
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 '13 at 8:58
add comment

1 Answer 1

up vote 2 down vote accepted

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}
share|improve this answer
    
you guys are really great –  user17 May 3 '13 at 13:56
add comment

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.