注释、命题、定义和定理的编号问题

注释、命题、定义和定理的编号问题

我正在使用下面给出的代码来撰写文章。

\newtheorem{thm}{Theorem}[section]
\newtheorem{thma}{Theorem}
\renewcommand*{\thethma}{\Alph{thma}}
\newtheorem{cor}{Corollary}[section]
\newtheorem{cora}{Corollary}
\renewcommand*{\thecora}{\Alph{cora}}
\newtheorem{lem}[thm]{Lemma}
\theoremstyle{remark}
\newtheorem{rem}[thm]{Remark}
\newtheorem{lema}{Lemma}
\renewcommand*{\thelema}{\Alph{lema}}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{propa}{Proposition}
\renewcommand*{\thepropa}{\Alph{propa}}
\newtheorem{examp}{Example}[section]
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}
\numberwithin{equation}{section}

但是在输出中我所需的编号是正确的,但注释和主张不是粗体字母,请建议我如何纠正它,谢谢。

答案1

简单的方法是使用\textbf{}从斜体变为粗体。

\newtheorem{rem}[thm]{\textbf{Remark}}
\newtheorem{prop}[thm]{\textbf{Proposition}}

或者你也可以在序言中添加amsthm包。这个包允许你自定义定理样式。示例如下:

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsthm}

\newtheoremstyle{boldremark}
    {} % space above
    {} % space below
    {}  % body font
    {}          % indent amount
    {\bfseries} % theorem head font
    {.}         % punctuation after theorem head
    {.5em}      % space after theorem head
    {}          % theorem hed spec. (empty = "normal")
% 
%     
\newtheorem{prop}{Proposition}
% 
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\theoremstyle{definition}
\newtheorem{dfn}{Definition}
% 
\theoremstyle{boldremark}
\newtheorem{rmk}{Remark}

\begin{document}

\begin{rmk}
    It is well known that\[1+1=2\mbox{.}\]
\end{rmk}
Some text after the remark.

% 

\begin{prop}
 It is well known that\[1+1=2\mbox{.}\]
\end{prop}
\end{document}

粗体字备注

相关内容