• 定理命题的撰写的最简单的例子:

    \newtheorem{theorem}{Theorem}
    \newtheorem{corollary}{Corollary}
    ......
    \begin{theorem}
    ......
    \end{theorem}
    ......

    \begin{corollary}
    ......
    \end{corollary}

    这样的输出结果就是各自编号的定理和推论了,定义、命题等等也类似可以这么使用。如果你希望定理和推论一起编号,前面可以改为这样(意思是corollary也使用theorem的编号):

    \newtheorem{theorem}{Theorem}
    \newtheorem{corollary}[theorem]{Corollary}

    最后,如果你希望使用Theorem 1.4.2这样的编号,可以这么使用:

    \newtheorem{theorem}{Theorem}[subsection] \newtheorem{corollary}[theorem]{Corollary}

    前面的subsection改为section将输出Theorem 4.2这样的编号。



  • 1. 最简单的LaTeX 2e英文文档如下:

    \documentclass{article}
    \usepackage{amsmath,amssymb}
    \begin{document}
    \title{Article Title}
    \author{Some One}
    \maketitle
    \tableofcontents
    \section{First Case}
    ......
    \section{Second Case}
    ......
    \end{document}

    其中最前面的article可以改为book,如果你在写一本书而不是一篇文章。在article中可以使用section、subsection等章节命令,而在book中还可以使用chapter命令。

    2. 段落换行:

    用一个空行或者\par 命令可以开始新的段落,同时会有默认的首行缩进。用\\ 或者\newline 可以强制换行在下一行继续,且在下一行不会有缩进。注意换行命令在一些环境中容易报错:“! LaTeX Error: There's no line here to end ”,因此不要滥用。

    3. 数学公式:

    $a_1^2+b_1^2=c_1^2$ 和 $$a_1^2+b_1^2=c_1^2$$ 分别输出行中公式和独立公式。

    4. 使用链接:

    在第一行后面加入
    \usepackage{hyperref}
    就可以让生成的文章目录有链接,点击时会自动跳转到该章节。

    5. 输入特殊符号:
    输入\~{} 显示~,输入$\backslash$ 显示\;输入` 分别显示左右单引号,输入`` 分别显示左右双引号。

    6. 输入各种字母:
    输入\mathbb{Z} 显示黑板体字母,输入\mathcal{O} 显示花体字母。