Reading Notes "LATEX Getting Started" Liu Haiyang

Chapter One

1.1.2.3 command-line tool

Column file list command dir, dir command to specify the drive letter you want to list, directory and file name

Directory and file names can be used? And * as a wildcard

cd is used to change the current directory

\documentclass{article}  //该前缀无法输出中文字符
\begin{document}         //LaTeX的命令以反斜杠\ 开头
I am happy.
\end{document}  

Another prefix:

\documentclass[UTF8]{ctexart} //文章类型换成ctexart,即中文TeX的类型
\begin{document}              //[UTF8]是使用这个文档类的选项,表明了中文所使用的编码
\section{文字}                //两个section命令各自生成了一节的标题
我在写代码
\section{公式}
\[ a^2 + b^2 = c^2\]         //数学公式由\[ \]包裹
\end{document}

1.2 A vivid example "topics for the Pythagorean theorem"

LaTeX typesetting is a structured language, in completing the template standard format, you can ignore many specific details format and number. In the document layout should take the initiative to pursue the separation of content and format, avoid using font sizes within a document such as the environment, align the indented format control command, let the document became clear.

What you think is what you get.

Note: look at the code can learn a lot, but due to a lack of maps and databases referenced article, the actual results produced a book a little difficult.

 

Chapter organize your text

2.1 Text and Symbols 

Symbol - is used: when a hyphen is used alone; once every two, the range of numbers used to represent; once every three, a dash.

\ Dots indicate an ellipsis

In scientific articles, in order, letters are, Chinese full stop is generally represented by a single dot with digital, then you should use full-width '. ', Rather than mixed Western period.

Use spaces: text separated by word spaces acts, any number of spaces with the same effect a space.

\\ commands directly on a separate line

Commonly used Chinese font

 

Text 2.2.2 environment

Several general types of special text passages, are given in the form of text LaTeX environment, the environment is a reference, respectively, poetry and abstract environments environment.

(1) There are two references to the environment, namely the environment and quotation quote environment

quote environment is not the first line indent before the segment and quotation environment, there are the first line indent before each segment

(2) Environmental Summary

 

2.2.3 List environment

Number of enumerate environment, not numbered itemize environment, using the keyword description environment

Represents the number manually or by keywords \ item command to begin a list item, you can take an optional parameter

The three lists can be nested environment

 

3.1 Contents

With \ tableofcontents command output

3.2 Cross-reference

 

Chapter Four Fun math formula

TeX mathematical formula, there are two, one is the inclusion in the text paragraphs formula, the general mathematical formula called a row. Another occupies the entire line centered out of the show, known as the line between mathematical formulas alone.

在TeX中,行内公式一般在前后单个美元符号$....$表示

(注:在排版数学公式时,必须要使用美元符号进入数学模式)

LaTeX提供了带自动编号的数学公式,可以用equation环境表示

amsmath宏包,amsmath提供的 \text 命令可以用来在数学公式中插入文字

 

4.2数学结构

4.2.1上标与下标

上标用^表示,下标用_表示。当上标和下标多于一个字符时,需要使用分组确定上下标范围。上标和下标可以同时使用,也可以嵌套使用。嵌套使用上下标时,外层一定要使用分组。

\prime 命令表示丿 ;   \circ 表示°  ; 在上下标前使用 \limits 命令会使上下标在正上正下方 ;使用 \nolimits 命令会使上下标在角上

 

\overline 和 \underline 命令可用来在公式的上方和下方划横线

使用 \overbrace 和 \underbrace 带上花括号

分式通过 \frac{分子}{分母}  得到 ; 使用 \dfrac 和 \tfrac 分别指定显示格式(display style)和正文格式(text style)的分式 ; \cfrac专门用于输入连分式; \binom输入二项式系数

 \sqrt 表示开方,同时可以带一个可选参数,表示开方的次数

矩阵环境用 \matrix 和 \pmatrix 和 \bmatrix 排版。在矩阵环境中,不同的列用符号&分隔,行用\\ 分隔,矩阵每列中元素居中对齐

4.3 符号与类型

数学常数e 使用罗马体的 $\mathrm{e}$

虚数单位i使用罗马体的 $\mathrm{i}$

注:微分算子d应该使用直立罗马体,后面的变量则仍然是默认的意大利体

可变大小的定界符由   \left 和 \right 命令得到。

4.4 多行公式

第五章 绘制图表

第六章 幻灯片演示

(注:后续内容用到再学习)

 

Guess you like

Origin blog.csdn.net/weixin_42682806/article/details/92083946