0

I am trying to bold the word in my third line. as shown in figure below:

enter image description here

My full MWE is as below:

    \documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}

\begin{document}

\renewcommand{\labelitemi}{$\blacksquare$}
\renewcommand{\labelitemii}{$\square$}
\renewcommand{\labelitemiii}{\textendash}
\begin{itemize}
   \item  \textbf{First Line}
   \begin{itemize}
     \item  \textbf{Second Line}
        \begin{itemize}
             \item \textbf{\(H_{1,1}\):} No bold starting here Third Line
                %  \item {\textbf{\(H_{1,2}\):}} There 

\end{itemize}
\end{itemize}
\end{itemize}

\end{document}

I had tried:

 \item \textbf{\(H_{1,1}\):} No bold starting here Third Line

and

\item {\textbf{\(H_{1,2}\):}} There 
leandriis
  • 62,593
aan
  • 2,663

2 Answers2

3

To make the math expression bold, you need to use \mathbf{} inside the math expression (i.e. \( \mathbf{...} \) rather than \textbf{ \(...\) }).

Or else, a bad way out is to use "poor man's bold" or \pmb{} in place of \textbf{} which gives you a fake bold.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amssymb}

\begin{document}

\renewcommand{\labelitemi}{$\blacksquare$}
\renewcommand{\labelitemii}{$\square$}
\renewcommand{\labelitemiii}{\textendash}
\begin{itemize}
   \item  \textbf{First Line}
   \begin{itemize}
     \item  \textbf{Second Line}
        \begin{itemize}
             \item \textbf{\(H_{1,1}\):} No bold starting here Third Line
             \item \( \mathbf{H_{1,1}} \): Math bold font in fourth Line
             \item \pmb{\(H_{1,1}\):} Poor man's bold in fifth Line
                %  \item {\textbf{\(H_{1,2}\):}} There 

\end{itemize}
\end{itemize}
\end{itemize}

\end{document}

to get something of this sort:

enter image description here

To get a bold colon (:) on the fourth line, place the colon inside\ mathbf{}, i.e. use \( \mathbf{H_{1,1}:} \).

Partha D.
  • 2,250
1

Not related to being a third item, but to trying having math being bold with \textbf.

Arnaud
  • 219
  • @Arnuad, thanks. i was thinking \(H_{1,2} is not a math symbol. – aan Dec 25 '19 at 14:34
  • \( ... \) is equivalent to $ ... $ (in fact there is a subtle difference, don't ask me though) – Arnaud Dec 25 '19 at 14:43
  • @CampanIgnis : what new question are you referring to? – Arnaud Dec 25 '19 at 14:49
  • @Arnoud that was an automatic comment made by the system (note the From Review link) that was generated because the reviewer (CampanIgnis) clicked the 'in my opinion this is a different question posted as an answer' option. He may have thought that you wanted to ask a new question, i.e., "how can I use \textbf to write bold math?" or something similar. That was probably a review mistake, in my opinion this is an (accurate) answer to the question, although a bit short. – Marijn Dec 25 '19 at 16:23
  • @Arnaud. See Marijn comment. Marion is correct. – CampanIgnis Dec 25 '19 at 21:55