Latex:入门教程

时间:2021-10-20 14:38:32

http://blog.csdn.net/pipisorry/article/details/54571521

总的来说,LaTex是一套排版系统,与word那种所见即所得对排版方式不太,用LaTex排版更像是写程序一样,将想要的排版效果用指令写出来,再通过LaTex编译成文档。简单来说,你只要按照要求撰写tex文件,就能够通过LaTex生成排版好的pdf文件。
有些人可能听到写程序就头大了,其实使用命令来排版的好处正是我们可以将各种版式做成模板文件,使用者只要调用模板即可,完全不用去处理字体样大小、位置,目录生成,图片公式序号等诸多细节,使我们专注于内容。更多关于LaTex和word的比较这篇文章有很详细的论述。

LaTex也是可以用来做简历,PPT等文档的。

皮皮blog

入门教程

LaTeX文件的通常语法如下:

\documentstyle{article}

\begin{document}

This is a first example of a simple inputfile.

\end{document}

如果是中文,将\documentstyle{article}改为\documentstyle{carticle}

简单的规则

(1)空格:Latex中空格不起作用。
(2)换行:用控制命令“\\”,或“ \newline”.
(3)分段:用控制命令“\par” 或空出一行。
(4)换页:用控制命令“\newpage”或“\clearpage”
(5)特殊控制字符:#,$, %, &, - ,{, }, ^, ~
要想输出这些控制符用下列命令:
\#  \$   \%  \&  \-  \{  \}    \^{}  \~{}          $\blackslash$表示“ \”.。

西文字符转换表

rm   罗马字体          \it     意大利字体
\bf   黑体              \sl     倾斜体
\sf   等线体            \sc     小体大写字母
\tt    打字机字体       \mit     数学斜体

字号转换命令表

点数(pt)            相应中文字号            控制命令
25                      一号                 \Huge
20                      二号                 \huge
17                      三号                 \LARGE
14                      四号                 \Large
12                      小四号               \large
10                      五号                 \normalsize
9                       小五号               \small
8                       六号                 \footnotesize
7                       小六号               \scriptsize
5                       七号                 \tiny

纵向固定间距控制命令

smallskip             \medskip               \bigskip

页面控制命令

\textwidth=14.5cm
\textheight=21.5cm
系统默认:字号10pt= 五号字;西文字体为罗马字体;textwidth=12.2cm,textheight=18.6cm。相当于美国标准信纸大小。

中英文LaTeX模板

(1)下面给出的是中文LaTeX2e模板,此时文件的扩展名为.ctx。模板中%后面的中文是中文注解,读者可以阅读这些模板中的中文注解,以理解所涉及的LaTeX2e命令的含义。

\documentclass[11pt]{ccart}%文件类说明

%还可以选择的类是cctbook

\setlength{\parindent}{12pt}%自然段第一行的缩进量为12pt

\setlength{\parskip}{10pt plus1ptminus1pt}

%自然段之间的距离为10pt,并可在8pt到11pt之间变化

\setlength{\baselineskip}{8pt plus2ptminus1pt}

%行间距为8pt,并可在7pt到10pt之间变化

\setlength{\textheight}{21truecm}%版面高为21厘米

\setlength{\textwidth}{14.5truecm}%版面宽为14.5厘米

\begin{document}%正文开始

\title{Thesis}%文章标题,双反斜杠\\表示换行

\author{author\\Dept. of Math.}

%作者名,单位,通信地址等,双反斜杠\\表示换行

\date{2003/8/5}

%文章写作日期,如果省略此行,计算机日期作为写作日期

\maketitle%建立标题部分

%文章的正文输入

\begin{center}%参考文献的书写

{\heiti  参考文献}

\end{center}

\vskip 0.1cm

\def\hang{\hangindent\parindent}

\def\textindent#1{\indent\llap{#1\enspace}\ignorespaces}

\def\re{\par\hang\textindent}

\re{[1]} Nordhaus E,Stewart B,WhiteA.On theMaximum Genus of a Graph.{\it J.combinatorial TheoryB},1971,11:258-267

\re{[2]} Skoviera M.The Maximum Genus of Graphsof Diameter Two.{\it Discrete Math}.1991, 87:175-180

\end{document}%源文件的结束

英文LaTeX2e模板

\documentclass[11pt]{article}%文件类说明

%还可以选择的类是book,report

\setlength{\parindent}{12pt}%自然段第一行的缩进量为12pt

\setlength{\parskip}{10pt plus1ptminus1pt}

%自然段之间的距离为10pt,并可在8pt到11pt之间变化

\setlength{\baselineskip}{8pt plus2ptminus1pt}

%行间距为8pt,并可在7pt到10pt之间变化

\setlength{\textheight}{21truecm}%版面高为21厘米

\setlength{\textwidth}{14.5truecm}%版面宽为14.5厘米

\begin{document}%正文开始

\title{Thesis}%文章标题,双反斜杠\\表示换行

\author{author\\Dept. of Math.}

%作者名,单位,通信地址等,双反斜杠\\表示换行

\date{2003/8/5}

%文章写作日期,如果省略此行,计算机日期作为写作日期

\maketitle%建立标题部分

%文章的正文输入

\section{Introduction}%第一节引言(机器自动编号)

{\bf Theorem 1.} {\it For any fixed $\rho>0$,we have

$$||R(u,\rho)||\leq ||R_1(u,\rho)||\leq2||R(u,\rho)||,~~~\forall u\in H.

\eqno(10)$$ Hence, (2) and (3) are equivalent forany fixed$\rho>0$.}

%一般定理的写法

{\bf Proof.}

\begin{thebibliography}{99}

\bibitem{Kind} D. Kinderlehrer and G.Stampacchia, {\it An Introduction to

Variational Inequalities and Their Applications},Academic Press,New York, (1980).

\end{thebibliography}%参考文献

\end{document}%源文件的结束

[LaTex基本语法]

入门示例

helloworld.tex

\documentclass{article}
%这里是导言区
\begin{document}
Hello, world!

\end{document}

1

\documentclass{article} 中包含了一个控制序列(或称命令/标记)。所谓控制序列,是以反斜杠\开头,以第一个空格或非字母 的字符结束的一串文字,他们并不被输出,但是他们会影响输出文档的效果。这里的控制序列是 documentclass,它后面紧跟着的 {article} 代表这个控制序列有一个必要的参数,该参数的值为 article。这个控制序列的作用,是调用名为 “article” 的文档类。

Note: TeX 对控制序列的大小写是敏感的
    部分控制序列还有被方括号[]包括的可选参数。
    所谓文档类,即是 TeX 系统预设的(或是用户自定的)一些格式的集合。不同的文档类在输出效果上会有差别。

\documentclass[options]{class}

article 排版科技期刊、短报告、程序文档、邀请函等。

report 排版多章节的长报告、短篇的书籍、博士论文等。

book 排版书籍。

slides 排版幻灯片。其中使用了较大的sans serif 字体。也可以考虑使用FoilTEX 来得到相同的效果。

2
TeX 风格的文档中,从 “%” 开始,到该行末尾的所有字符,都会被 TeX 系统无视,只作为供人类阅读的注释。除非在 “%” 前加上反斜杠来取消这一特性。

3

控制序列 begin,这个控制序列总是与 end 成对出现。这两个控制序列以及他们中间的内容被称为「环境」;他们之后的第一个必要参数总是一致的,被称为环境名。

只有在 “document” 环境中的内容,才会被正常输出到文档中去或是作为控制序列对文档产生影响。也就是说,在 \end{document} 之后插入任何内容都是无效的。

\begin{document} 与 \documentclass{article} 之间的部分被称为导言区。导言区中的控制序列,通常会影响到整个输出文档。比如,我们通常在导言区设置页面大小、页眉页脚样式、章节标题样式等等。

latex目录下产生的文件说明

.tex LATEX 或TEX 源文件。可以用latex 处理。

.sty LATEX 宏包文件。可使用命令\usepackage 将其加载到你的LATEX 文件中。

.dtx 文档化TEX 文件。这也是LATEX 宏包发布的主要格式。通过处理一个

.dtx 文件就可以得到该LATEX 宏包中所包括的宏代码文档。

.ins 为相应的.dtx 文件的安装文件。如果你在网络上下载了一LATEX 宏包,你通常会发现会有一个.dtx 和一个.ins 文件。使用LATEX 对.ins文件进行处理,可以从.dtx 文件中提取出宏包。

当你运行LATEX 处理你的源文件时,会得到下列文件:

.dvi 与设备无关文件。这是LATEX 编译运行的主要结果。你可以使用DVI预览器浏览其内容,或者使用像dvips 这样的应用程序输出到打印机。

.log 记录了上次编译运行时的详细信息。

.toc 存储了所有章节标题。该文件将在下次编译运行时被读入并生成目录。

.lof 类似.toc 文件,可生成图形目录。

.lot 类似.toc 文件,可生成表格目录。

.aux 另一个用来向下次编译运行传递信息的辅助文件。除了其它信息外,.aux 文件通常包含交叉引用信息。

.idx 如果你的文件中包含有索引,LATEX 使用此文件存储所有的索引词条。此文件需要使用makeindex 处理。

.ind 经过处理后的.idx 文件。可在下次编译运行时加入到你的文档中。

.ilg 运行makeindex 时生成的记录文件。

[LaTEX学习笔记]

宏包

所谓宏包,就是一系列控制序列的合集。这些控制序列太常用,以至于人们会觉得每次将他们写在导言区太过繁琐,于是将他们打包放在同一个文件中,成为所谓的宏包(*方面称之为「巨集套件」)。\usepackage{·}可以用来调用宏包。

在引言中调用。

指定字体\usepackage{times}

package latexsym, which defines all symbols known from the old LaTeX version.

组织你的文章

\documentclass[UTF8]{ctexart}
\title{你好,world!}
\author{Liam}
\date{\today}
\begin{document}
\maketitle
你好,world!
\end{document}

Note: 这里是用的ctex,改成article也可以,但是不能显示中文了,lz目前不写中文的,所以先不管了。

定义了标题、作者、日期

maketitle这个控制序列能将在导言区中定义的标题、作者、日期 按照预定的格式展现出来。

\documentclass[UTF8]{ctexart}
\title{你好,world!}
\author{Liam}
\date{\today}
\begin{document}
\maketitle
\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 山东。
\end{document}

插入目录

在上一节的文档中,找到 \maketitle,在它的下面插入控制序列 \tableofcontents

版面设置

页边距

设置页边距,推荐使用 geometry 宏包。可以在这里查看它的说明文档。

比如我希望,将纸张的长度设置为 20cm、宽度设置为 15cm、左边距 1cm、右边距 2cm、上边距 3cm、下边距 4cm,可以在导言区加上这样几行:

\usepackage{geometry}
\geometry{papersize={20cm,15cm}}
\geometry{left=1cm,right=2cm,top=3cm,bottom=4cm}

页眉页脚

设置页眉页脚,推荐使用 fancyhdr 宏包。可以在这里查看它的说明文档。

比如我希望,在页眉左边写上我的名字,中间写上今天的日期,右边写上我的电话;页脚的正中写上页码;页眉和正文之间有一道宽为 0.4pt 的横线分割,可以在导言区加上如下几行:

\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\author}
\chead{\date}
\rhead{152xxxxxxxx}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\headwidth}{\textwidth}
\renewcommand{\footrulewidth}{0pt}

首行缩进

CTeX 宏集已经处理好了首行缩进的问题(自然段前空两格汉字宽度)。

不使用 CTeX 宏集(使用 xeCJK 宏包)的话,请遵照以下提示操作。

中国人写文章,习惯每一段的段首都空出两个中文汉字的长度。美国人没有这个习惯,他们每一小节的段首都顶格。为了解决这个问题,我们可以在导言区调用 \usepackage{indentfirst}.

就算是这样,首行缩进的长度,仍然不符合中国人的习惯。我们可以在导言区添加这样的控制序列 \setlength{\parindent}{\ccwd} 来调整首行缩进的大小。这里的 \ccwd 是当前字号下一个中文汉字的宽度。

行间距

我们可以通过 setspace宏包提供的命令来调整行间距。比如在导言区添加如下内容,可以将行距设置为字号的 1.5 倍:

\usepackage{setspace}
\onehalfspacing

具体可以查看该宏包的文档

请注意用词的差别:

  • 行距是字号的 1.5 倍;
  • 1.5 倍行距。

事实上,这不是设置 1.5 倍行距的正确方法,请参考:http://liam0205.me/2013/10/17/LaTeX-Linespace/

段间距

我们可以通过修改长度 \parskip 的值来调整段间距。例如在导言区添加以下内容

\addtolength{\parskip}{.4em}

则可以在原有的基础上,增加段间距 0.4em。如果需要减小段间距,只需将该数值改为负值即可。

数学公式

LATEX 使用一种特殊的模式来排版数学符号和公式(mathematics)。段落中的数学表达式应该置于\( 和\),$ 和$ 或者\begin{math} 和\end{math} 之间。对于较大的数学式子,最好的方法是使用显示式样来排版:将它们放置于\[ 和\]或\begin{displaymath}和\end{displaymath}之间。这样排版出的公式是没有编号的。如果你希望LATEX 对其添加编号的话,可以使用equation 环境来达到这一目的。数学模式和文本模式有很多不同之处。例如在数学模式中:空格和分行都将被忽略。所有的空格或是由数学表达式逻辑的衍生,或是由特殊的命令如\,,\quad 或\qquad 来得到。不允许有空行,每个公式中只能有一个段落。每个字符都将被看作是一个变量名并以此来排版。如果你希望在公式中出现普通的文本(使用正体字并可以有空格),那么你必须使用命令\textrm{...} 来输入这些文本。数学模式中的命令仅对其后面第一个字符起作用。所以,如果你希望某一命令作用于多个字符的话,那么你就必须将它们放置于括号中:{...}。

。。。

多行公式

长公式

公式组

插入图片和表格

。。。

[一份其实很短的 LaTeX 入门文档]

4字体Fonts

somewords {\it somewords} somewords
\bf 黑体字;粗体铅字
\it Italics
\tt    Typewriter (monospace, fixed-width).打字型印刷铅字

\emph    Although it also changes fonts, the \emph{text} commandis semantic, for text to be emphasized, and should not be used as asubstitute for \textit. For example, \emph{starttext \emph{middle text} end text} will result in thestart text and end text in italics, but middle textwill be in roman.

The \em command is the unconditional version of \emph.

。。。

数学字体

The following commands are for use in math mode. They are not cumulative, so \mathbf{\mathit{symbol}} does not create a boldface and italic symbol; instead, it will just be in italics. This is because typically math symbols need consistent typographic treatment, regardless of the surrounding environment.
\mathrm
    Roman, for use in math mode.
\mathbf
    Boldface, for use in math mode.
\mathsf
    Sans serif, for use in math mode.
\mathtt
    Typewriter, for use in math mode.
\mathit
(\mit)
    Italics, for use in math mode.
\mathnormal
    For use in math mode, e.g., inside another type style declaration.
\mathcal
    Calligraphic letters, for use in math mode.

6分节Sectioning

\part
\chapter
    (report and book class only)
\section
\subsection

Note: \section*{Acknowledgments},标题不带number

\subsubsection
\paragraph
\subparagraph

附录appendix

The \appendix command changes the way following sectional unitsare numbered. The \appendix command itself generates no textand does not affect the numbering of parts. The normal use of thiscommand is something like

\chapter{A Chapter}
…
\appendix
\chapter{The First Appendix}

7 Cross references

• \label:          Assign a symbolic name to a piece of text.
• \pageref:          Refer to a page number.
• \ref:          Refer to a section, figure or similar.
示例

\label{stylefiles} 定义

\ref{stylefiles} 引用

8环境Environment

8.10 Latex中插入图片figure

\begin{figure}[placement]
  figure body
\caption[loftitle]{title}
\label{label}
\end{figure}
or    \begin{figure*}...\end{figure*}
示例代码
\begin{figure}
\centering
\includegraphics[width=0.7\linewidth]{../../../../Downloads/figure_1}
\caption{nono}
\label{fig:figure_1}
\end{figure}

Note: 双列模式中的插图:The starred form figure* is used when a document is in double-column mode (see \twocolumn). It produces a figure thatspans both columns, at the top of the page.这样插图占两列,而不是只占一列。

说明

在LaTeX文档中插入图片都是通过使用一些latex图形处理宏命令来实现的, 有很多宏命令都支持在在LaTeX文档中插入eps格式的图形文件, 主要有:
用includegraphics宏命令(graphicx包)
首先需在latex文档的文件说明部分加上:
\usepackage{graphicx}
然后在需要插入图片的地方引用:
\includegraphics[height=高度]{图片文件名} 或者: \includegraphics[width=宽度]{图片文件名}
其中的"高度"和"宽度"是指希望图片打印的高度和宽度, 必须给出单位, 可用厘米(cm)或英寸(in). 高度和宽度也可用上述格式同时给出, 这样可以改变原图的长宽比例. 上述命令中的图片文件名是指欲插入的图片文件 的文件名, 图片必需是eps格式的.(直接使用latex编译不能插入jpg图片,但是使用xelatex可以)
用graphicx包的includegraphics宏命令插入图片时还可以使图片旋转, 方法是 \includegraphics[height=高度][angle=旋转角度]{图片文件名}

Note: 使用texstudio可以在菜单栏中直接插入图片,自动引入上面的代码。但是要手动添加usepackage语句。

插入的图形通常为eps、pdf或者jpg、png等格式,假设名字叫fig,把它放在你的tex文档同一目录下。
1、先导言区加一句\usepackage{graphicx}
2、如果想插入inline的图形, 直接使用
\includegraphics[width=5in]{fig},不用加后缀名。
3、如果你想插入浮动图形, 使用
\begin{figure}[htbp]
\centering\includegraphics[width=3.5in]{fig}
\caption{something}

\label{fig:1}
\end{figure}
4、如果是eps的图形, 编译过程是latex, dvips, ps2pdf.
如果是pdf jpg png图形, 编译过程是 pdflatex .
还有其它package插入的方法参考[LaTeX文档插入图片的几种常用方法]

latex插图的放置位置

图形(figure)环境有一个可选参数项允许用户来指示图形有可能 被放置的位置。这一可选参数项可以是下列字母的任意组合。
h
    当前位置。 将图形放置在 正文文本中给出该图形环境的地方。如果本页所剩的页面不够, 这一参数将不起作用。
t
    顶部。 将图形放置在页面的顶部。
b
    底部。 将图形放置在页面的底部 16.1。
p
    浮动页。 将图形放置在一只允许 有浮动对象的页面上。
注:
    如果在图形环境中没有给出上述任一参数,则缺省为 [tbp]。
    给出参数的顺序不会影响到最后的结果。因为在考虑这些参数时 LATEX  总是尝试以 h-t-b-p 的顺序来确定图形的位置。所以  [hb] 和 [bh] 都使 LATEX 以 h-b  的顺序来排版。
    给出的参数越多, LATEX 的排版结果就会越好。  [htbp], [tbp], [htp], [tp] 这些组合得到的效果不错。
    只给出单个的参数项极易引发问题16.2。 如果该图形不适合所指定的位置,它就会被搁置并阻碍对后面的图形 的处理。一旦这些阻塞的图形数目超过了 18 幅这一 LATEX 所能容许 的最大值,就会产生 ``Too Many Unprocessed Floats'' 的错误(见 第 16.3 节)。

在浮动位置选项前加上一个惊叹号(如 \begin{figure}[!ht]) 会使 LATEX 忽略应用于文本页的审美条件,试图用最严格的标准来放置浮动图形。不过, ! 不会影响应用于浮动页的审美条件。

[LATEX2e 插图指南]

8.19 picture

\begin{picture}(width,height)(xoffset,yoffset)
… picture commands …
\end{picture}
Note: 这个没有研究过,感觉可用于图片插入,以后再研究。

8.14分条列举itemize

\begin{itemize}
\item item1
\item item2
...
\end{itemize}

The itemize environment produces an “unordered”, “bulleted”list. Itemizations can be nested within one another, up to fourlevels deep. They can also be nested within other paragraph-makingenvironments, such as enumerate (see enumerate).

8.20引用quotation and quote

\begin{quotation}
text
\end{quotation}

or

\begin{quote}
text
\end{quote}

8.22 table

\begin{table}[placement]
  table body
\caption[loftitle]{title}
\label{label}
\end{table}

示例:In this example the table and caption will float to the bottom of a page, unless it is pushed to a float page at the end.
\begin{table}[b]
  \centering
  \begin{tabular}{r|p{2in}} \hline
    One &The loneliest number \\
    Two &Can be as sad as one.
         It's the loneliest number since the number one.
  \end{tabular}
  \caption{Cardinal virtues}
  \label{tab:CardinalVirtues}
\end{table}
Note: [b]代表表格放在页面底部。

8.24参考文献bibliography

使用BibTeX管理参考文献

%% The file named.bst is a bibliography style file for BibTeX 0.99c
\bibliographystyle{named}
\bibliography{ijcai17}

ijcai17.bib内容:

@article{ gottlob:nonmon,
  author = "Georg Gottlob",
  title = "Complexity results for nonmonotonic logics",
  journal = "Journal of Logic and Computation",
  volume = "2",
  number = "3",
  pages = "397--425",
  month = "June",
  year = "1992"
}

正文中引用参考文献

\cite
\cite[subcite]{keys}
The keys argument is a list of one or more citation keys, separated by commas. This command generates an in-text citation to the references associated with keys by entries in the .aux file. The text of the optional subcite argument appears after the citation. For example, \cite[p.~314]{knuth} might produce ‘[Knuth, p. 314]’.

\nocite:          Include an item in the bibliography.The \nocite command produces no text, but writes keys,which is a list of one or more citation keys, to the .aux file.

示例

Gottlob~\shortcite{gottlob:nonmon} has shown that, rather than, In our previous work~\cite{gottlob:nonmon}

Gottlob [1992] has shown that, rather than, In our  previous work [Gottlob, 1992]

单作:[Gottlob, 1992] 或者Nebel [2000](很容易看出来时)

二作:[Brachman and Schmolze, 1985]

多作:[Baumgartner et al., 2001]

多篇引用:[Gott-

lob et al., 2002; Levesque, 1984a]

Note: latex代码:\cite{gls:hypertrees,levesque:functional-foundations}

11脚注Footnotes

\footnote

\footnote[number]{text}

12 定义Definitions

\newcommand & \renewcommand

\newcommand and \renewcommand define and redefine a command, respectively.

Here’s a command definition that uses arguments:
\newcommand{\defreference}[1]{Definition~\ref{#1}}
Then, \defreference{def:basis} will expand to something like ‘Definition~3.14’.

定义的示例

\newdef{definition3}{Definition}
\begin{definition3}
 \textbf{(\textit{POI})}
 A POI is defined as ...
\end{definition3}

Latex:入门教程

Note: lz也不知道\newdef是什么意思。。。

\newtheorem

Define a new theorem-like environment. Synopses:
\newtheorem{name}{title}[numbered_within]
\newtheorem{name}[numbered_like]{title}

示例

\newtheorem{problem}{Problem}
\begin{problem}
\textbf{(Location-based Recommendation)}
Given a user activity dataset ...
\end{problem}

Latex:入门教程

18 Page styles

• \maketitle:          Generate a title page.
• \pagenumbering:          Set the style used for page numbers.
• \pagestyle:          Change the headings/footings style.
• \thispagestyle:          Change the headings/footings style for this page.

\maketitle

\author{name \and name2}
    The \author command declares the document author(s), where the argument is a list of authors separated by \and commands. Use \\ to separate lines within a single author’s entry—for example, to give the author’s institution or address.
\date{text}
    The \date command declares text to be the document’s date. With no \date command, the current date (see \today) is used.
\thanks{text}
    The \thanks command produces a \footnote to the title, usually used for credit acknowledgements.
\title{text}
    The \title command declares text to be the title of the document. Use \\ to force a line break, as usual.

19空格spaces

Horizontal space
• \hspace:          Fixed horizontal space.
• \hfill:          Stretchable horizontal space.
• \(SPACE) and \@:          Space after a period.
• \(SPACE) after CS:          Controlling space gobbling after a control sequence.
• \frenchspacing:          Make interword and intersentence space equal.
• \thinspace:          One-sixth of an em.
• \/:          Insert italic correction.
• \hrulefill \dotfill:          Stretchable horizontal rule or dots.

Vertical space
• \addvspace:          Add arbitrary vertical space if needed.
• \bigskip \medskip \smallskip:          Fixed vertical spaces.
• \vfill:          Infinitely stretchable vertical space.
• \vspace:          Add arbitrary vertical space.

\(SPACE) and \@ and ~

为了使输出的右边界对齐,LATEX在单词间插入不等的间隔。在句子的末尾插入的空间稍多一些,因为这使得文本更具可读性。LATEX假定句子以句号、问号或惊叹号结尾。如果句号紧跟一个大写字母,它就不视为句子的结尾。因为一般在有缩写地方,才出现句号紧跟大写字母的情况。。空格前的反斜线符号产生一个不能伸长的空格。波浪字符‘~’ 也产生一个不能伸长的空格,并且禁止断行。句号前的命令\@ 说明这个句号是句子的末尾,即使它紧跟一个大写字母。对article风格的文档,有下列分节命令:\section{...} \paragraph{...}  \subsection{...}\subparagraph{...} \subsubsection{...}  对report 和book 风格的文档,还有其他两个分节命令:\part{...} \chapter{...}。因为article风格的文档不划分为章,所以很容易把它作为一章插入书籍文档中。节之间的间隔,节的序号和标题的字号由LATEX 自动设置。分节的两个命令有些特殊性:命令\part 不影响章的序号。命令\appendix 不带参量,只把章的序号改用为字母标记。LATEX在文档编译的最后一个循环中,提取节的标题和页码以生成目录。命令\tableofcontents在其出现的位置插入目录。为了得到正确的目录内容,一个新文档必须编译两次。上面列出的分节命令也以“带星”的形式出现。“带星”的命令通过在命令名称后加*来实现。它们生成的节标题既不出现于目录,也不带序号。例如,命令\section{Help} 的“带星”形式为\section*{Help}。目录出现的标题,一般与输入的文本完全一致。有时这是不可能的,因为标题太长排不进目录。在这种情况下,目录的条目可由真实标题前的可选参量确定。

\chapter[Title for the table ofcontents]{A long and especially boring title, shown inthe text}

整篇文档的标题由命令\maketitle产生。标题的内容必须在调用\maketitle 以前,由命令\title{...}, \author{...} 和可选的\date{...}定义。在命令\author 中,可以输入几个用\and 命令分开的名字。\frontmatter 应接着命令\begin{document}使用。它把页码更换为罗马数字。对于正文前的内容普遍使用带星的命令(例如,\chapter*{Preface}),以阻止LATEX 对它们排序。\mainmatter应出现在书的第一章紧前面。它打开阿拉伯页码计数器,并对页码从新计数。\appendix 标志书中附录材料的开始。该命令后的各章序号改用字母标记。\backmatter应该插入与书中最后一部分内容的紧前面,如参考文献和索引。在标准文档类型中,它对页面没有什么效果。

21特殊短语Special insertions

• Reserved characters:          Inserting ‘# $ % & ~ _ ^ \ { }’
• Text symbols:          Inserting other non-letter symbols in text.
• Accents:          Inserting accents.
• Non-English characters:          Inserting other non-English characters.
• \rule:          Inserting lines and rectangles.

• \today:          Inserting today’s date.

Text symbols

\LaTeX

The LaTeX logo.

使用时后面要加一个{},否则空格会被忽略。somewords \LaTeX{} somewords.还可以这样使用:{\LaTeX{} and Word Style Files}。

\ldots
\dots
\textellipsis
    An ellipsis (three dots at the baseline): ‘…’. \ldots and \dots also work in math mode.

皮皮blog

写作注意事项

文件名   {\tt ijcai17.sty}

链接名  {\tt http://www.ijcai-17.org/}

not强调  {\em not}

问题:

bib文件中的{Lixto}代表什么意思?

from: http://blog.csdn.net/pipisorry/article/details/54571521

ref: [A simple guide to LaTeX]
[使用LaTex写毕业论][一份其实很短的 LaTeX 入门文档][LaTeX 分类][lshort: http://ctan.mirror.rafal.ca/info/lshort/english/lshort.pdf]*

[Texstudio help: LaTeX2e unofficial reference manual (October 2015)]

[Ctex社区:LaTeX文档[LaTeX 2e 插图指南(中文)]

[LaTeX Tutorials: A Primer http://www.tug.org/twg/mactex/tutorials/ltxprimer-1.0.pdf]

[LaTeX Beginner's Guide]

[LaTeX简介:入门文档 huangxg 的 LaTeX Notes]

[Beginning LaTeX]

[一个完整的论文写作LaTeX模板]

[在 LaTeX 学术论文写作中有哪些经验和技巧?]

[ChinaTeX 论坛: 论坛 - ChinaTeX论坛]

[wikipedia en.wikibooks.org/wiki/LaTeX/Absolute_Beginners]

[知乎:关于 LaTeX 有什么推荐的说明教程、指南一类的资料?]

[SCI英文论文写作- Latex 进阶]