latex插入定理和证明

latex插入定理和证明,第1张

\documentclass{article}

\usepackage{amsmath,amsthm,amssymb,amsfonts}

\makeatletter

\thm@headfont{\sc}

\makeatother

\newtheorem{theorem}{Theorem}

\begin{document}

\begin{theorem}

Consider a data vector $\mathbf{u}\in\mathbb{R}^n$ which satisfies the condition

\end{theorem}

\end{document}

首先你要先使用宏包 ntheorem \usepackage[amsmath,thmmarks]{ntheorem}% 定理类环境宏包,其中 amsmath 选项% 用来兼容 AMS LaTeX 的宏包 %=== 配合上面的ntheorem宏包产生各种定理结构,重定义一些%正文相关标题 ===\theoremstyle{plain}\theoremheaderfont{\normalfont\rmfamily\CJKfamily{hei}}\theorembodyfont{\normalfont\rm\CJKfamily{kai}} \theoremindent0em\theoremseparator{\hspace{1em}} \theoremnumbering{arabic}%\theoremsymbol{} %定理结束时自动添加的标志\newtheorem{definition}{\hspace{2em}定义}[section]%\newtheorem{definition}{\hei 定义}[section]%!!!注意当section为中国数字时,[section]不可用!\newtheorem{proposition}{\hspace{2em}命题}[section]\newtheorem{property}{\hspace{2em}性质}[section]\newtheorem{lemma}{\hspace{2em}引理}[section]%\newtheorem{lemma}[definition]{引理}\newtheorem{theorem}{\hspace{2em}定理}[section]\newtheorem{axiom}{\hspace{2em}公理}[section]\newtheorem{corollary}{\hspace{2em}推论}[section]\newtheorem{exercise}{\hspace{2em}习题}[section]\theoremsymbol{$\blacksquare$}\newtheorem{example}{\hspace{2em}例}[section]\theoremstyle{nonumberplain}\theoremheaderfont{\CJKfamily{hei}\rmfamily}\theorembodyfont{\normalfont \rm \CJKfamily{song}} \theoremindent0em\theoremseparator{\hspace{1em}} \theoremsymbol{$\blacksquare$}\newtheorem{proof}{\hspace{2em}证明} 注意:如果你使用的book,而不是article,那么你要把所有的section改为chapter.

在导言区加上amsmath宏包,然后可以在公式环境中使用\tag命令。 % 记得\usepackage{amsmath} \begin{equation}\label{eq:1} A=B, B=C \end{equation} So we get: \begin{equation} A=C \tag{$\ref{eq:1}'$} \end{equation}


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11892838.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-19
下一篇 2023-05-19

发表评论

登录后才能评论

评论列表(0条)

保存