Text Formattingdescription always bold?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

description always bold?

Post by bkarpuz »

Dear all hi again,

I have a simple question.
When I use description it automatically defines the caption of \item bold.
For instance,
(i)->(ii).
Is it possible to make it normal font instead of bold?
For instance,
(i)->(ii).
I know that this can be done by using itemize but when I use itemize the alignement is not in the form I want.

thanks.

Recommended reading 2024:

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

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

curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

description always bold?

Post by curiouslearn »

Most likely there is a better solution than the one below. But the following also works.

Code: Select all

\documentclass[12pt]{article}   

\def\MyItem[#1]#2{\item[{\rm #1}]#2}

\begin{document} 
  \begin{description}
  	\item[First item] This is the first item.
	\item[{\rm Second item}] This is the second item. 
	\MyItem[Third item] This is the third item.
  \end{description}	
\end{document}         
If you don't want to define a command then you can enter the item as the second item has been entered. Or you can define a command and use that instead as done for the third item.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

description always bold?

Post by localghost »

Have a look at the enumitem package to customize list environments like description and adapt the given advices to your needs.


Best regards
Thorsten¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

description always bold?

Post by Stefan Kottwitz »

Hi,

the description environment is defined by document classes or packages. For instance if you are using the article class you could solve your problem by:

Code: Select all

\renewcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont #1}
If you are using a different class let us know.

Stefan
LaTeX.org admin
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

description always bold?

Post by bkarpuz »

Thanks to all,

I am using article class and the code

Code: Select all

\renewcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont #1}
works perfect.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

description always bold?

Post by localghost »

Just for the record and to demonstrate the easy handling of the suggested package.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{enumitem}
\usepackage{lmodern}
\usepackage{blindtext}

\setdescription{font=\normalfont}

\begin{document}
  \blindtext
  \begin{description}
    \item[blindtext:] \blindtext
  \end{description}
  \blindtext
\end{document}
Post Reply