%!TEX program = xelatex % 使用 ctexart 文类,UTF-8 编码 \documentclass[UTF8]{ctexart} \title{文章标题} \author{Siwind} \date{\today} \begin{document} \maketitle This is the context of the article. 这就是文章的所有内容。 \end{document}
% Title \title{Document Title} \author{Nobody \thanks{Somebody}} \date{Some Date}
\begin{document}
\begin{titlepage} \maketitle \end{titlepage}
\tableofcontents
\begin{abstract} This is a simple paragraph at the beginning of the document. A brief introduction about the main subject. \end{abstract}
First document. This is a simple example, with no extra parameters or packages included.
% Comments \begin{comment} This text won't show up in the compiled pdf this is just a multi-line comment. Useful to, for instance, comment out slow-rendering while working on the draft. \end{comment}
% Comments \begin{comment} This text won't show up in the compiled pdf this is just a multi-line comment. Useful to, for instance, comment out slow-rendering while working on the draft. \end{comment}
\section{Hello China} % 一号标题 China is in East Asia. \subsection{Hello Beijing} % 二号标题 Beijing is the 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 Tian'anmen Square % 二号段落 \subsection{Hello Guangzhou} \paragraph{Sun Yat-sen University} is the best university in Guangzhou.
版面设置
空格
语法
简介
\enspace
inserts a space of .5em in text or math mode
\quad
inserts a space of 1em in text or math mode
\qquad
inserts a space of 2em in text or math mode
~
inserts an “unbreakable” space (similar to an HTML ) (in text or math mode)
\documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} The Newton's second law is F=ma.
The Newton's second law is $F=ma$.
The Newton's second law is $$F=ma$$
The Newton's second law is \[F=ma\]
Greek Letters $\eta$ and $\mu$
Fraction $\frac{a}{b}$
Power $a^b$
Subscript $a_b$
Derivate $\frac{\partial y}{\partial t} $
Vector $\vec{n}$
Bold $\mathbf{n}$
To time differential $\dot{F}$
Matrix (lcr here means left, center or right for each column) \[ \left[ \begin{array}{lcr} a1 & b22 & c333 \\ d444 & e555555 & f6 \end{array} \right] \]
Equations(here \& is the symbol for aligning different rows) \begin{align} a+b&=c\\ d&=e+f+g \end{align}