Latex中定義、定理、引理、證實 設置方法總結

Latex中定義、定理、引理、證實 設置方法總結字體

 

在LaTex中須要有關定理、公理、命題、引理、定義等時,經常使用以下命令spa

  • \newtheorem{定理環境名}{標題}[主計數器名] 
  • \newtheorem{theorem}{Theorem}[Chapter]

意思就是定義一個以Theorem爲標題的theorem環境,計數以章節數爲主.code

 

\begin{theorem}[均值不等式]

設$A,B$是兩個實數, 則$2AB\leq 2 A^2+B^2$.

\end{theorem}

若是須要輸出中文,使用定義theorem以下blog

\newtheorem{theorem}{\hspace{2em}定理}[chaptet]rem

另外在{\hspace{2em}定理}中還能夠輸入更改字體的命令來改變定理的字體it

其餘中文模式:io

  • \newtheorem{Definition}{\hspace{2em}定義}[chapter]
  • \newtheorem{theorem}{\hspace{2em}定理}[chapter]
  • \newtheorem{lemma}{\hspace{2em}引理}[chapter]
  • \newtheorem{Proof}{證實}[chapter]

前面提到的定理、公理、命題、引理、定義的一套命令能夠用這個class

% Theorem style引用

  • \newtheoremstyle{mystyle}{3pt}{3pt}{\kaishu}{0cm}{\heiti2 }{}{1em}{}  \theoremstyle{mystyle}
  • \newtheorem{definition}{\hspace{2em}定義}[chapter] % 
  •  沒有章, 只有節, 把上面的[chapter]改爲[section] 

文章中能夠直接使用的範例:command

\newtheorem{theorem}[definition]{\hspace{2em}定理} 

\newtheorem{axiom}[definition]{\hspace{2em}公理} 

\newtheorem{lemma}[definition]{\hspace{2em}引理} 

\newtheorem{proposition}[definition]{\hspace{2em}命題} 

\newtheorem{corollary}[definition]{\hspace{2em}推論} 

 \newtheorem{remark}{\hspace{2em}注}[chapter]

 


 

Latex-定理定義的排版

\newtheorem{thm}{Theorem}[section]

\newtheorem{prop}{Proposition}[section]

以上定理和命題分別計數,若是命題也用定理的計數器,能夠這樣定義:

\newtheorem{prop}[thm]{Proposition}

引用:

\begin{thm}[附加標題,如定理名稱,做者]

文本

\end{thm}

較短的證實能夠用

\begin{proof}[標題]

證實內容。

\end{proof}

 

若是有[標題]選項,則顯示這個標題(斜體),不然自動打印斜體的Proof,並在證實結束時自動生成證畢符號口。

若是使用\proof命令,則須要在結束時手動加上結束命令\qed。

固然你能夠重定義證畢符號,例如:

\renewcommand*{\qedsymbol}{[證畢]}

\begin{proof}[證:]

證實正文。

\end{proof}

注意: \begin{proof}...\end{proof}環境須要\usepackage{amsthm}宏包的支持

相關文章
相關標籤/搜索