楼主: galaxy_mm
164697 4

latex空格怎么打_latex空格 [推广有奖]

  • 1关注
  • 9粉丝

教授

54%

还不是VIP/贵宾

-

威望
1
论坛币
9830 个
通用积分
17.9192
学术水平
19 点
热心指数
25 点
信用等级
10 点
经验
11057 点
帖子
759
精华
0
在线时间
262 小时
注册时间
2014-8-5
最后登录
2022-11-21

楼主
galaxy_mm 在职认证  企业认证  发表于 2014-8-25 11:15:58 |只看作者 |坛友微信交流群|倒序 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

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

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

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

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

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

如果需要多个空格, 可以使用多个\. 一个更方便生成水平方向的空格可以使用命令.(LaTeX 学习博客 (http://latex.yo2.cn) , 白色印记.)
\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)( (http://latex.yo2.cn) , 白色印记.)
    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 atex Late latex空格 latex空格怎么打 atex

已有 2 人评分论坛币 学术水平 热心指数 收起 理由
飞天玄舞6 + 1 + 1 精彩帖子
oliyiyi + 16 精彩帖子

总评分: 论坛币 + 16  学术水平 + 1  热心指数 + 1   查看全部评分

沙发
good1256 发表于 2014-8-25 15:50:38 |只看作者 |坛友微信交流群
latex空格怎么打?我是来长长见识的,完全不知道啥事LaTeX……

使用道具

藤椅
飞天玄舞6 发表于 2016-12-2 22:03:21 |只看作者 |坛友微信交流群
最近在学LaTex,在Rmarkdown中用{:2_31:}

使用道具

板凳
bwumathe 在职认证  发表于 2019-3-8 10:24:07 |只看作者 |坛友微信交流群
两个quad空格        a \qquad b        a \qquad b        两个m的宽度
quad空格        a \quad b        a \quad b        一个m的宽度
大空格        a\ b        a\ b        1/3m宽度
中等空格        a\;b        a\;b        2/7m宽度
小空格        a\,b        a\,b        1/6m宽度
没有空格        ab        ab\,       
紧贴        a\!b        a\!b        缩进1/6m宽度
\quad、1em、em、m代表当前字体下接近字符‘M’的宽度(approximately the width of an "M" in the current font)

* 数学公式中写入非数学变量的字符(non-mathematical elements),使用Roman字体,而不是数学变量的斜体(italics),例如“ if ”, 使用\mbox{ if }

使用道具

报纸
oliyiyi 发表于 2019-3-12 15:14:30 |只看作者 |坛友微信交流群
飞天玄舞6 发表于 2016-12-2 22:03
最近在学LaTex,在Rmarkdown中用
两者关系不大,后者只是用基本的latex数学公式

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-9-21 00:39