General ⇒ enumerate
enumerate
I need the document like following....
1. title1 (bold letters)
blah blah blah.
2. title2 (bold letters)
blah blah blah.
I am using following code....
\textbf{\begin{enumerate}
\item title1
blah blah blah....
\item title2
blah blah blah....
\end{enumerate}}
But I am getting some error messages. Not sure what is wrong with the code. If I separately enumerate for title2, then obviously I get same number for title1 and title2.
Can someone help me with this?
Thank you,
Omkar
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
enumerate
Try with no empty lines between \item commands. \textbf{} command cannot take empty lines.omkardpd wrote:Hi,
I need the document like following....
1. title1 (bold letters)
blah blah blah.
2. title2 (bold letters)
blah blah blah.
I am using following code....
\textbf{\begin{enumerate}
\item title1
blah blah blah....
\item title2
blah blah blah....
\end{enumerate}}
But I am getting some error messages. Not sure what is wrong with the code. If I separately enumerate for title2, then obviously I get same number for title1 and title2.
Can someone help me with this?
Thank you,
Omkar
Do you need all the text be bold (title + blah blah...)? If do, try:
Code: Select all
\begin{enumerate}\bfseries
\item first
\item second
\item third...
\end{enumerate}
Re: enumerate
the code that you have suggested is giving me all text in bold. I want only text corresponding to \item under enumeration to be bold.
Thank you
Omkar
enumerate
1. You need to use package enumitem, so in the preamble put:
Code: Select all
\usepackage{enumitem}
Code: Select all
\newcommand\litem[1]{\item{\bfseries #1\enspace}}
\begin{enumerate}[label=\textbf{\arabic*.}]
\litem{item bold} and text not bold
...or in new paragraph...
\litem{item bold} and text not bold...
...or in new paragraph...
\end{enumerate}