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.
\documentclass{article}
\usepackage{enumitem}
\begin{document}

\begin{description}[style=nextline]
\item[Label 1] {\sffamily\LARGE item text 1}

\item[Label2] Item text 2
\end{description}

\end{document}

My issue is that I would like \LARGE to change the size of the item text but not the label. I know I can control the label with font=<commands>. Is there a smart way to control the item text?

share|improve this question
add comment

2 Answers

up vote 16 down vote accepted
\documentclass{article}
\usepackage{enumitem,color}
\begin{document}

\begin{description}[style=nextline,before=\color{red}\Huge,font=\normalsize]
\item[Label 1] Item text 1
\item[Label2] Item text 2
\end{description}
some text
\end{document}
share|improve this answer
add comment

Would something like the following be what you want?

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

\begin{description}[style=nextline,font=\normalfont\normalsize]
    \sffamily\LARGE
    \item[Label 1] item text 1
    \item[Label2] Item text 2
\end{description}

result

share|improve this answer
    
One has to explicit set the font size of the label in order for it not to get overwritten by a size set between the begin and end of the environment. –  Oliver Jun 28 '12 at 17:15
    
@Oliver: One has to do this in my solution too. Actually there is not much difference between my solution and Caramdirs. Mine looks perhaps a bit more elegant as the font command is also in the optional argument. –  Ulrike Fischer Jun 28 '12 at 18:51
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.