0

I wanted to use bullets and rightarrows in pdf document, unfortunately i am running in to some error "Missing } inserted". and not able to indentify the error. Can anyone suggest below is the example i have tried

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{itemize}
$\bullet$ \; \item \textsf{a \leq b }
\newline 
$\rightarrow$ \textbf{text } \\
$\bullet$ \; \item \textbf{b \geq c }
\newline
$\rightarrow$ \textbf{text }\\
\end{itemize}
\end{document}

1 Answer 1

1

You should not use \\ or \newline in an itemized list. The itemize environment should have the following syntax:

\begin{itemize}
\item Contents of first item
\item Contents of second item
\end{itemize}

The items will be marked with bullets by default. For example, the code

\begin{itemize}
\item $a \leq b$
\item $b \geq c$
\end{itemize}

will produce the following:

enter image description here

If you want to change the symbol to an arrow, you can use \item[\rightarrow]

enter image description here

\begin{itemize}
\item $a \leq b$
\item[$\rightarrow$] \textbf{text}
\item $b \geq c$
\item[$\rightarrow$] \textbf{text}
\end{itemize}

Itemized lists can be nested. They will be indented automatically.

enter image description here

\documentclass{article}

\begin{document}

\begin{itemize}
\item $a \leq b$
  \begin{itemize}
  \item[$\rightarrow$] \textbf{text}
  \end{itemize}
\item $b \geq c$
  \begin{itemize}
  \item[$\rightarrow$] \textbf{text}
  \end{itemize}
\end{itemize}

\end{document}
3
  • oh ok thanks, but the fonts always changes with in the item. How can we maintain the same font from the beginning to end of the document ?
    – ls440
    Nov 22, 2022 at 15:02
  • I don't understand. Are you asking about the difference between math mode and text mode? LaTeX intentionally typesets these differently. [See here] (tex.stackexchange.com/q/178791/125871) for more information. In your example you used \textbf, which makes the (text) characters bold. Perhaps you should post another question with an example where the font changes unexpectedly.
    – Sandy G
    Nov 22, 2022 at 16:57
  • It works with textbf. Thanks
    – ls440
    Nov 23, 2022 at 5:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .