加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

LaTeX中设置定理编号、排版格式、 自定义proof【转】

(2017-10-15 20:20:51)

l一般的atex 的定理环境, amsmath 安装包自带,用法为:

\newtheorem {环境名}  {标题} [排序单位]


[排序单位] 一般为 chapter,若带上 chapter 则表示 定理按章节编号。


下列代码放入导言区:

 

[plain] view plain copy
  1. \usepackage{amsmath}  
  2. \newtheorem{theorem}{Theorem}  
  3. \newtheorem{lemma}{Lemma}  
  4. \newtheorem{proof}{Proof}[section]  


 


使用时:

 

[plain] view plain copy
  1. \section{theorem}  
  2. \begin{theorem}  
  3. This is theorem.  
  4. \end{theorem}  
  5.   
  6. \begin{lemma}  
  7. This is lemma.  
  8. \end{lemma}  
  9.   
  10. \section{Proof}  
  11. \begin{proof}  
  12. This is proof.  
  13. \end{proof}  


显示效果:

 

http://img.blog.csdn.net/20170311052337229自定义proof【转】" />




但若要更加精细的定理环境,例如修改编号,修改间距等,则需要安装包 ntheorem


1.  若取消定理类环境的编号,则在定理类环境时,加上星号。

 

[plain] view plain copy
  1. \newtheorem*{lemma}{Lemma}  
  2. \begin{lemma}  
  3. This is lemma.  
  4. \end{lemma}  

 


显示效果:

http://img.blog.csdn.net/20170311054033271自定义proof【转】" />


2. 改变排版格式

\theoremheaderfont { 字体命令}    改变标题字体

\theorembodyfont{ 字体命令}   改变定理内正文字体

\theoremindent  左缩进宽度

\qedsymbol{结束符〉和\qed  如果希望某个定理类表达式换用其他结束符,可以先用命令\qedsymbol 来定义,然后

在该表达式中使用命令\qed 将结束符置于右下角。


\theoremnumbering {计数形式}: 设置序号的计数形式,它的默认值是arabic ,可改为采用alph 、Alph 、rom、Roman 、

greek 、Greek 、chinese 或fnsymbol 计数形式。


\theoremstyle {格式〉 有break等命令。break 让 定理与内容隔开。


举例:

 

[plain] view plain copy
  1. \theorembodyfont{\bfseries\upshape}  
  2. \theoremseparator{:}  
  3. \theoremstyle{break}  
  4. \newtheorem{theorem}{Theorem}  
  5. \newtheorem{lemma}{Lemma}  
  6. \newtheorem{proof}{Proof}[section]  
  7.   
  8.   
  9. \section{theorem}  
  10.   
  11. \begin{theorem}[introduction]  
  12. This is theorem.  
  13. \end{theorem}  
  14.   
  15. \begin{lemma}  
  16. This is lemma.  
  17. \end{lemma}  
  18.   
  19. \theorembodyfont{\upshape}  
  20. \theorembodyfont{\bf}  
  21. \section{Proof}  
  22. \begin{proof}  
  23. This is proof.  
  24. \end{proof}  

显示效果:

 

http://img.blog.csdn.net/20170311063042382自定义proof【转】" />

3. 自定义proof 环境

使用命令: \newenvironment {新环境} {开始定义} {结束定义}

举例:定义证明环境为 proof 斜体,证明以 方框结束。

 

[plain] view plain copy
  1. \newenvironment{proof}{{\noindent\it Proof}\quad}{\hfill $\square$\par}  

上面的命令中, \noindent 表示 proof 没有缩进,\it 表示 proof 斜体, \quad 表示 proof 后面空四个空格, \hfill 表示右对齐, \square 表示方框,\par表示结尾空一段

 

显示效果:

http://img.blog.csdn.net/20170727183404521自定义proof【转】" />

转自:http://blog.csdn.net/robert_chen1988/article/details/61204853

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有