2

Just to confirm I didn’t overlook something: It’s possible in KOMA-Script to change the font of the item label in description lists, but neither the label of enumerate and itemize items nor the item font itself. Is that correct? Is there an elegant way to extend \setkomafont, \addtokomafont and \usekomafont?

\setkomafont{descriptionlabel}{\scshape}

JFTR, the enumitem seems to be limited in the same way.

\begin{itemize}
  \item How to change the font that is used here?
\end{itemize}
\begin{enumerate}
  \item … or here
\end{enumerate}
\begin{description}
  \item[descriptionlabel] … or here
\end{description}
  • 1
    enumitem is limited in the same way? In what sense? If I remember correctly \setlist[enumerate]{font=\sffamily} sets the enumerate label in \sffamily. – Manuel Jul 18 '14 at 12:38
  • Okay, that should have been “in a similar way”, since it also doesn’t change the item font. – Crissov Jul 18 '14 at 13:21
  • Sorry, I think the question is not clear. I just read again and I did not understood. What is the real question? Could you add more details or rephrase. – Manuel Jul 18 '14 at 13:23
5

Small note: a compilable example is always preferred rather than just a snippet of code.

\documentclass{scrartcl}
\usepackage{etoolbox}
\usepackage{enumitem}
\AtBeginEnvironment{enumerate}{\usekomafont{enumerate}}
\AtBeginEnvironment{itemize}{\usekomafont{itemize}}
\AtBeginEnvironment{description}{\usekomafont{description}}
\newkomafont{description}{\scshape}
\newkomafont{enumerate}{\itshape}
\newkomafont{itemize}{\slshape}
\begin{document}
\begin{itemize}
  \item How to change the font that is used here?
\end{itemize}
\begin{enumerate}
  \item … or here
\end{enumerate}
\begin{description}
  \item[descriptionlabel] … or here
\end{description}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.