GeneralHow to make non-bold text in a bold context?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Spectrum
Posts: 14
Joined: Thu May 17, 2007 9:08 pm

How to make non-bold text in a bold context?

Post by Spectrum »

I would like to be able to make text non-boldfaced in a context where it would otherwise be bold, such as in headings in the "description" environment. I.e., I want a command like this:

\item[Here is a \unbold{non-bold} word:] And a description of it...

to look something like this:

* Here is a non-bold word: And a description of it...

Can you do that?

Thanks in advance.

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

Spectrum
Posts: 14
Joined: Thu May 17, 2007 9:08 pm

Re: How to make non-bold text in a bold context?

Post by Spectrum »

I solved my problem. The command \textnormal does what I want. :)
mojontp
Posts: 2
Joined: Thu May 20, 2010 2:19 pm

Re: How to make non-bold text in a bold context?

Post by mojontp »

thanks for scharing the info!
i just "had" the same problem. :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

How to make non-bold text in a bold context?

Post by Stefan Kottwitz »

Hi,

\textnormal does more than just switching to non-bold text. It could change other attributes like sans-serif, italic or slanted. For instance KOMA classes use a sans serif font for the description list. Have a look at the effect of \textnormal:

Code: Select all

\documentclass{scrartcl}
\begin{document}
\begin{description}
\item[Here is a \textnormal{non-bold} word:] And a description of it...
\item[Another item:] and its description
\end{description}
\end{document}
Output:
textnormal.png
textnormal.png (7.3 KiB) Viewed 76210 times
Sans-serif and serif font is mixed here.

The command switching from bold to medium typeface is \textmd:

Code: Select all

\documentclass{scrartcl}
\begin{document}
\begin{description}
\item[Here is a \textmd{non-bold} word:] And a description of it...
\item[Another item:] and its description
\end{description}
\end{document}
Output:
textmd.png
textmd.png (7.34 KiB) Viewed 76210 times
Stefan
LaTeX.org admin
Post Reply