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 want to do this:

Term        This is the definition of the word. No matter how much is typed
            here it should always line up like this. How do I do this? I am
            not sure since there is another word on the first line.

Next Term   Not to mention, the alignment should be consistent for multiple
            entries as well. The entries may span multiple pages as well.

I am using LuaLaTeX.

share|improve this question
    
Should items be breakable across the page boundary? –  Werner Aug 26 '13 at 23:19
    
Ideally not mid-item, but there will definitely be enough entries to span multiple pages. –  Dan Aug 26 '13 at 23:20

2 Answers 2

up vote 6 down vote accepted

Using the enumitem package:

\documentclass{article}
\usepackage{calc}
\usepackage{enumitem}

\newlength\widest

\begin{document}

red yellow blue, red yellow blue, red yellow blue, 
red yellow blue, red yellow blue, red yellow blue, 

\settowidth\widest{\textbf{word}}
\begin{description}[leftmargin=\dimexpr\widest+\labelsep\relax,labelindent=0pt,
    labelwidth=\widest]
\item[word]
red yellow blue, red yellow blue, red yellow blue, 
red yellow blue, red yellow blue, red yellow blue, 
\item[that]
one two three four, one two three four, one two three four, 
one two three four, one two three four, one two three four, 
one two three four, one two three four, one two three four, 
\end{description}

\end{document}

enter image description here

For an automatic calculation of the widest label, you can see my answer to Automatically set description list `labelwidth` based on widest label?.

share|improve this answer
    
Thanks! I appreciate it! –  Dan Aug 26 '13 at 23:31
\documentclass{article}


\begin{document}


\begin{description}
\item[word]
red yellow blue, red yellow blue, red yellow blue, 
red yellow blue, red yellow blue, red yellow blue, 
\item[that]
one two three four, one two three four, one two three four, 
one two three four, one two three four, one two three four, 
one two three four, one two three four, one two three four, 
\end{description}

\end{document}
share|improve this answer
    
Very close but not exactly what I need without some modification. The indentation is not precise. I will clarify my response. –  Dan Aug 26 '13 at 23:17

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.