zoukankan      html  css  js  c++  java
  • LaTeX空格 [转]

    由于LaTeX 采用的是源文件编译方式,  默认LaTeX会忽略多余的空格, 如果需要产生一个空格,可以使用 命令

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

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

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

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

    如果需要多个空格, 可以使用多个\<space>. 一个更方便生成水平方向的空格可以使用命令.(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

     

    [转] http://latex.yo2.cn/articles/latex-space.html

  • 相关阅读:
    70.BOM
    69.捕获错误try catch
    68.键盘事件
    523. Continuous Subarray Sum
    901. Online Stock Span
    547. Friend Circles
    162. Find Peak Element
    1008. Construct Binary Search Tree from Preorder Traversal
    889. Construct Binary Tree from Preorder and Postorder Traversal
    106. Construct Binary Tree from Inorder and Postorder Traversal
  • 原文地址:https://www.cnblogs.com/longdouhzt/p/2836421.html
Copyright © 2011-2022 走看看