AMS-LaTeX

本页使用了标题或全文手工转换,现处于台湾繁体模式
求聞百科,共筆求聞

AMS-LaTeX是一個包含數學公式所需符號、排版、字型的LaTeX文件類和巨集包集合。其開發主要參考了美國數學協會在數學期刊和書籍排版工作中的經驗,以AMS-LaTeX撰寫的文章可被該協會旗下期刊接受。[1]

MathJax中透过擴充程式支援AMS-LaTeX。[2]

以下LaTeX2e程式碼可以生成 AMS-LaTeX的標誌:

 %%% -- AMS-LaTeX_logo.tex -------
 \documentclass{article}
 \usepackage{amsmath}
 
 \begin{document}
 \AmS-\LaTeX
 \end{document}

該巨集包有一套工具來處理多行公式。例如:

 \begin{align}
  y &= (x+1)^2 \\
   &= x^2+2x+1
 \end{align}

該程式碼可以使兩行中的等號對齊,如下所示:

AMS-LaTeX 還包括許多靈活的命令,用於排版和對定理、引理等生成編號。 例如,可以使用theorem環境

 \begin{theorem}[Pythagoras] Suppose $a\leq b\leq c$ are the side-lengths of a right triangle.\\ Then $a^2+b^2=c^2$.\end{theorem}
 \begin{proof}. . . \end{proof}

可以生成

Theorem (Pythagoras) Suppose are the side-lengths of a right triangle. Then . Proof. . . □

參見

參考資料

  1. George Gratzer. Math into LaTeX (PDF). 1996 [2007-10-08]. ISBN 0-8176-3805-9. 
  2. MathJax TeX and LaTeX Support — MathJax 2.7 documentation. docs.mathjax.org. [2018-08-27] (英語). 

外部連結