无法使用 \mathbb{} 命令

无法使用 \mathbb{} 命令

我最近开始使用\Latex。在排版文章时,我很难获取\mathbb文档标题、章节和小节中的符号。如何将它们插入标题、章节和小节中?

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

\title{Report on study of mappings in \mathbb{C} and matrices in SL(2,\mathbb{R})}
\author{Lionel Ronaldo}
\date{Jan 2023}

\begin{document}

\maketitle

\section{Introduction}
\section{Conformal mappings in \mathbb{C}}
\section{Some theorems involving SL(2,\mathbb{R})}}
\subsection{Geometry of analytic functions in \mathbb{C}}


\end{document}

答案1

\mathbb顾名思义,是一个数学命令,因此必须在数学模式下使用:

\documentclass{article}
\usepackage{amsfonts,amsmath,amssymb,amsthm}

\title{Report on study of mappings in $\mathbb{C}$ and matrices in SL(2,$\mathbb{R}$)}
\author{Lionel Ronaldo}
\date{Jan 2023}

\begin{document}

\maketitle

\section{Introduction}
\section{Conformal mappings in $\mathbb{C}$}
\section{Some theorems involving SL(2,$\mathbb{R}$)}
\subsection{Geometry of analytic functions in $\mathbb{C}$}


\end{document}

相关内容