Text FormattingDescriptive list with small caps?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
plowshare
Posts: 4
Joined: Sat Jun 25, 2011 12:59 pm

Descriptive list with small caps?

Post by plowshare »

Hello.

I am new here, I have started using LaTeX a few days ago. Everything is okay at this time but when I try something like not-standard it gives me a headache. I am trying to make a descriptive enumeration I think it is called, this I mean (to avoid wrong spellings):

Code: Select all

\begin{description} 
\item [a] For hyperlinks.
\item [img] For images.
\end{description}
But in my case I would like to small-cap what's inside the [ ]. If I try \textsc{} it doesn't work properly.
Could you please give me a hint to do this?

Thanks!
Last edited by plowshare on Mon Jul 04, 2011 5:08 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Descriptive list with small caps?

Post by Stefan Kottwitz »

Hi,

it's very easy if you use a KOMA-Script document class:

Code: Select all

\renewcommand*{\descfont}{\scshape}
That's just one example, those classes extend standard classes by many features and offer many possibilities for customization.

Complete minimal example:

Code: Select all

\documentclass{scrartcl}
\renewcommand*{\descfont}{\scshape}
\begin{document}
\begin{description}
\item [a] For hyperlinks.
\item [img] For images.
\end{description}
\end{document}

Stefan
LaTeX.org admin
plowshare
Posts: 4
Joined: Sat Jun 25, 2011 12:59 pm

Re: Descriptive list with small caps?

Post by plowshare »

Thank you very much Stefan_K!
Post Reply