Latex常用语法

\documentclass[UTF8]{ctexart}  %中文支持

\usepackage{amsmath}%数学支持

\title{你好,world!}

\author{Liam}

\date{\today}

\begin{document}

\maketitle%生成题目,放在begin之后

\tableofcontents%目录

\section{你好中国}

中国在East Asia.

\subsection{Hello Beijing}

北京是capital of China.

\subsubsection{Hello Dongcheng District}

\paragraph{Tian'anmen Square}

is in the center of Beijing

\subparagraph{Chairman Mao}

is in the center of 天安门广场。

\subsection{Hello 山东}

\paragraph{山东大学} is one of the best university in 山东。

Einstein 's $E=mc^2$.%$$是段中数学

\[ E=mc^2. \]%段间数学

\begin{equation}

E=mc^2.

\end{equation}

\[ \pm\; \times \; \div\; \cdot\; \cap\; \cup\;

\geq\; \leq\; \neq\; \approx \; \equiv \]

$ \sum_{i=1}^n i\quad \prod_{i=1}^n $

$ \sum\limits _{i=1}^n i\quad \prod\limits _{i=1}^n $

\[ \lim_{x\to0}x^2 \quad \int_a^b x^2 dx \]

\[ \lim\nolimits _{x\to0}x^2\quad \int\nolimits_a^b x^2 dx \]

\[ x_1,x_2,\dots ,x_n\quad 1,2,\cdots ,n\quad

\vdots\quad \ddots \]

\end{document}

上述数学公式意义

猜你喜欢

转载自www.cnblogs.com/yifan2015/p/10327793.html