LaTeX新人教程，30分钟从完全陌生到基本入门

by Nan

1.LaTeX是一类用于编辑和排版的软件，用于生成PDF文档。
2.LaTeX编辑和排版的核心思想在于，通过\section和\paragraph等语句，规定了每一句话在文章中所从属的层次，从而极大方便了对各个层次批量处理。
3.LaTeX在使用体验方面，最不易被Word替代的有四个方面：方便美观的数学公式编辑、不会乱动的退格对齐、非所见即所得因此可以在编辑的时候用退格和换行整理思路但生成PDF出来不影响美观、部分导师和刊物不接受Word排版的文章。

=============================================

1.LaTeX软件的安装和使用

2.第一个文档

 hello, world 

3.标题、作者和注释

 My Name The Title hello, world % This is comment 
4.章节和段落

 Hello World 1. Hello China China is in East Asia. 1.1. Hello Beijing Beijing is the capital of China. 1.1.1. Hello Dongcheng District \paragraph{Tian'anmen Square}is in the center of Beijing \subparagraph{Chairman Mao} is in the center of Tian'anmen Square 1.2. Hello Guangzhou \paragraph{Sun Yat-sen University} is the best university in Guangzhou. 

5.加入目录

 目录 Contents 1.  Hello China   1.1.  Hello Beijing     1.1.1.  Hello Dongcheng District   1.2.  Hello Guangzhou 1. Hello China China is in East Asia. 1.1. Hello Beijing Beijing is the capital of China. 1.1.1. Hello Dongcheng District \paragraph{Hello Tian'anmen Square}is in the center of Beijing \subparagraph{Hello Chairman Mao} is in the center of Tian'anmen Square 

6.换行

 Beijing is the capital of China.

 New York is the capital of America. 

Amsterdam is \\ the capital \\ of Netherlands. 

7.数学公式

 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} \left\{ \begin{aligned} &a+b=c\\ &d=e+f+g \end{aligned} \right. 

 

8.插入图片

 \includegraphics[width=4.00in,height=3.00in]{figure1.eps} 

9.简单表格

 \begin{tabular}{|c|c|} a & b \\ c & d\\ \end{tabular}

 \begin{tabular}{|c|c|} \hline a & b \\ \hline c & d\\ \hline \end{tabular} 

\begin{center} \begin{tabular}{|c|c|} \hline a & b \\ \hline c & d\\ \hline \end{tabular} \end{center} 

10.结尾

LaTeX在国内的普及率并不高，因此许多时候如果搜英文关键词，会获得更好的效果。

===============================

1.中文支持

 你好，世界 

2.宏包
\package{}就是在调用宏包，对计算机实在外行的同学姑且可以理解为工具箱。

3.模板

4.参考文献和制作幻灯片