失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > latex如何使文字不空格_latex空格怎么打_latex空格

latex如何使文字不空格_latex空格怎么打_latex空格

时间:2021-08-30 13:23:10

相关推荐

latex如何使文字不空格_latex空格怎么打_latex空格

latex空格怎么打?好多人有这样的疑问。LaTeX 采用的是源文件编译方式, 默认LaTeX会忽略多余的空格, 如果需要产生一个空格,可以使用 命令

\, 注意代表的是空间键.

例如: Jones, et al.\ (1993), 这样就在 "."后产生了一个空格.

符号~产生一个不可断行的空格, 注意在 CJK* 环境下, 符号~的意义发生变化, 集体参加这里: LaTeX中英文混排

----------------------------------------

如果需要多个空格, 可以使用多个\. 一个更方便生成水平方向的空格可以使用命令.(LaTeX 学习博客 () , 白色印记.)

\hspace{ 长度 } , 例如 \hspace{1cm}

其中的长度单位cm 可以换成 mm, em, in, pt等.

如果\hspace命令在一行的开始则需要改用\hspace*{1cm}来产生空格.

如果要产生垂直方向的空白, 可使用命令

\vspace{ 长度 } 和 \vspace*{ 长度 } , 使用方法同\hspace.

如果想在段落直接产生一定的间距, 则使用命令

\medskip, \bigskip, 或 \smallskip.

------------------------------------------------

在数学环境中($........$ 和 $$..........$$)生成空格, 则可以使用下面的命令:

两个quad空格 a \qquad b 两个m的宽度

quad空格 a \quad b 一个m的宽度

大空格 a\ b 1/3m宽度

中等空格 a\;b 2/7m宽度

小空格 a\,b 1/6m宽度

紧贴 a\!b 缩进1/6m宽度

------------------------------------

长度的说明:

in - 英寸(inch)( () , 白色印记.)

mm - 毫米(millimeters)

cm - 厘米(centimeters)

pt - points (大约 1/72 inch)

em - 接近当前字体的字符 "M"的宽度(approximately the width of an "M" in the current font)

ex - 接近当前字体的字符 "x"的高度approximately the height of an "x" in the current font

小字体

>

如何设置标题和副标题

\title{Introd tion to \LaTeX{ } Symbols and Commands \\ [2ex] \begin{large} Common Expressions in \emph{AURORA} \end{large} }

通过换行符号\\,分开主标题和副标题,然后设置缩进位置2个X的位置,最后用一个局部环境设置副标题的字体大小。

There are two basic ways to change font sizes in Latex:

- To change the basic font size used all the way through your paper, put either

"11pt" or "12pt" in your \documentclass line.For example, if you had:

\documentclass{report}

but you wanted to use 12pt type (10pt is the default), you would change it

to:

\documentclass[12pt]{report}

NOTE:12pt is an option to the "report" class, not a separate

package, so doing

\documentclass{report}

\usepackage{12pt}

will *not* work.

- To change just a part of your paper into a different font size, you can use

some of the sizing environments.In increasing size, they are:

\tiny

\scriptsize

\footnotesize

\small

\normalsize

\large

\Large

\LARGE

\huge

\Huge

The case is important in these commands.Also, in some document styles,

some of these commands may prod e the same size font.For example, if you

wanted to just make a small part of your text in a different font, you would

use something like:

This is in normal text, while these words are in {\large large text}.

Or, if you wanted to put a larger region in a different size, you'd use

something like:

\begin{small}

this will all be in small text

this too.

etc..

\end{small}

Latex中数学常用符号的输入

1、数学符号的重叠显示,用于变量上面斜杠

$\rlap{$\backslash$} a$

$\rlap{$\setminus$} a$

$\diagdown \llap{a} $

2、在箭头上方/下方写字

$ u(x) \overset{\text{UMP}}{\Longrightarrow} x(p,w) $ \\

$ u(x) \underset{\text{UMP}}{\Longrightarrow} x(p,w) $ \\

$Y\xrightarrow[\text{ Cost Function }]{\text{Cost Minimization}}c(w,q) $

在括号上下方写字,用overbrace or underbrace。

f_{X_1,\cdots, X_k}(x_1, \cdots, x_k)=

\overbrace{\int_{-\infty}^{\infty} \cdots \int_{-\infty}^{\infty}}^{n-k}

f(x_1, \cdots, x_k, \xi_{k+1}, \cdots, \xi_{n})

d \xi_{k+1} \cdots d\xi_{n}

3、公式排列

一个短公式写一行, 用eq tion,(有编号,加*无编号)

一个长公式分几行写,没有对齐功能,用multiline ,(有编号,加*无编号)

一个长公式分几行写,有对齐功能,用split。自身无编号。要编号,外套eq tion。

一组公式,无对齐功能,用gather。(有编号,加*无编号)

一组公式,有对齐功能,用align。(有编号,加*无编号)

\begin{align*}

a+b & = c+d \\

x+y & = c+d

\end{align*}

上述两个公式按照&的位置对齐。如果不加*,则对每个公式进行编号,加了*就不编号。

将一组公式用类似矩阵形式进行排版对齐,用align或 flalign。(有编号,加*无编号)

4、矩阵的输入

利用bmatrix环境,带方括号

\begin{eq tion} X=\begin{bmatrix}

1 & \cdots & 2 \\

2 & \cdots & 3

\end{bmatrix} \end{eq tion}

利用matrix环境,啥括号都不带

\begin{eq tion} X=\begin{matrix}

1 & \cdots & 2 \\

2 & \cdots & 3

\end{matrix} \end{eq tion}

利用array环境,自己在括号的地方写,可以用任意括号形式

\begin{align}

E(X)=\left[

\begin{array}{ccc}

E(x_{11}) & \cdots & E(x_{1n}) \\

\cdots & \cdots & \cdots \\

E(x_{n1}) & \cdots & E(x_{nn}) \\

\end{array}

\right] %如果用“\right.”,那么后面的括号就隐藏了,可以用来表示分段函数。

\end{align}

如果觉得《latex如何使文字不空格_latex空格怎么打_latex空格》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。