多行注释
/iffalse %注释开始
%需要注释掉的内容
……..
/fi %注释结束
/.../ 写法
This is my first /LaTeX typesetting example.
会被被释成:
This is my first LATEXtypesetting example.
LATEX 和typesetting 连起来了,要使中间有空格要这样:
This is my first {/LaTeX} typesetting example.
This is my first /LaTeX{} typesetting example.
This is my first /LaTeX/ typesetting example.
///
% 除注释以外的用法
将a 和try 分行写,而且它们是连起来
This is my fisrt /LaTeX/ document. Give /LaTeX/ a%
try.
会被被释成:
This is my fisrt LATEX document. Give LATEX atry.
~ 和 / 强迫插入一个较小的字间空白
~ / 几乎是一样的,但是/ 表示不可以在这里进行换行。
~ 在TeX里表示tie ,就是绑住的意思
I am Mr.~Edward G.J. Lee, G.J. is a abbreviation of my name.
I am Mr./ Edward G.J. Lee, G.J. is a abbreviation of my name.
生成:
I am Mr. Edward G.J. Lee, G.J. is an abbreviation of my name.
I am Mr. Edward G.J. Lee, G.J. is an abbreviation of my name.
/null 表示后面的标点表示句子结束,所以标点后要加稍大点的空白
Please see Appendix A. We will be there soon.
Please see Appendix A/null. We will be there soon.
/ldots /dots 省略号
I’m not a good man ..., but a good husband .... 错误示范
I’m not a good /ldots/ man /ldots, but a good husband /ldots.
I’m not a good /dots/ man /dots, but a good husband /dots.
- -- --- 破折号
$-5$ 减号
$-5$ 输出−5
蓝色字体
/documentclass{article}
/usepackage{color}
/begin{document}
/textcolor{blue}{This is blue color.}
/end{document}
LaTeX 文档结构
/documentclass{article}
这里是preamble 区
/begin{document}
这里是文本区
/end{document}
/documentclass{article}
会影响整篇文档的指令,通常是放在preamble 区:
/linespread 将行距扩大1.36 倍
/linespread{1.36}
/parindent=0pt
/parindent 将全文缩排设成0
/parindent=0pt
/noindent 下指令的地方缩排设成0
//[1cm] 换行,行间间距一厘米