GNU TeXmacsUser manualReferenceAboutEnglish·Français·Deutsch·Español·Italiano·Português·Polski·中文
环境

与属性标记类似,环境的作用是赋予一段文字以特殊含义。属性标记通常作用于一小段文字,而环境的作用范围往往横跨多行。数学中常用的环境是theorem和proof,如下所示:

定理 1. 不存在这样的正整数\(a, b, c\)和\(n (n \geqslant 3)\)使得\(a^n + b^n = c^n\)。

证明. 空白太小,容不下我的证明。(费马)\(\Box\)

插入\(\rightarrow\)环境即插入环境。与定理类似的环境有proposition,lemma,corollary,axiom,definition。使用dueto宏(按下\DUETO↩输入该宏)可以指定与定理相关的学者,像这样:

定理 2. (毕达哥拉斯) Under nice circumstances, we have \(a^2 + b^2 = c^2\).

其它常用的环境还有remark,note,example,warning,exercise和problem,其渲染效果与定理类似,只是没有强调显示其中内容。其余环境如verbatim,code,quote,quotation和verse可用于输入多行文本,代码,引用或者诗歌。

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".