Cyan's Blog

Search

Search IconIcon to open search

Latex White Spaces

Last updated Apr 3, 2022 Edit Source

# Latex 里面的空格

2022-04-03

Tags: #Latex

There are a number of horizontal spacing macros for LaTeX :

  1. \, inserts a .16667em space in text mode, or \thinmuskip (equivalent to 3mu) in math mode; there’s an equivalent \thinspace macro;

  2. \> (or \:) inserts a .2222em space in text mode, or \medmuskip (equivalent to 4.0mu plus 2.0mu minus 4.0mu) in math mode; there’s an equivalent \medspace;

  3. \negmedspace is the negative equivalent to \medspace;

  4. \; inserts a .2777em space in text mode, or \thickmuskip (equivalent to 5.0mu plus 5.0mu) in math mode; there’s an equivalent \thickspace;

  5. \enspace inserts a space of .5em in text or math mode;

  6. \quad inserts a space of 1em in text or math mode;

  7. \qquad inserts a space of 2em in text or math mode;

  8. \hspace{<len>} ==inserts a space of length== <len> (may be negative) in math or text mode (a LaTeX \hskip); ==得带单位==