%20.png)
我正在嘗試將第三行中的單字加粗。如下圖所示:
我的完整 MWE 如下:
\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}
我曾經嘗試過:
\item \textbf{\(H_{1,1}\):} No bold starting here Third Line
和
\item {\textbf{\(H_{1,2}\):}} There
答案1
要使數學表達式加粗,您需要\mathbf{}
在數學表達式內部使用(即\( \mathbf{...} \)
而不是\textbf{ \(...\) }
)。
否則,一個糟糕的出路是使用「窮人的大膽」或\pmb{}
取代\textbf{}
它給你一個偽造的大膽的。
\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}
得到這樣的東西:
要獲得粗體冒號 (:) 在第四行,將冒號放在裡面\ mathbf{}
,即使用\( \mathbf{H_{1,1}:} \)
.
答案2
與成為第三項無關,但與嘗試使用 \textbf 使數學變得粗體有關。