Question #249   Submitted by Answiki on 10/24/2021 at 07:24:06 AM UTC

Can we add spaces in LaTeX equations?

Answer   Submitted by Answiki on 12/29/2021 at 09:33:50 AM UTC

The simplest way to insert spaces in LaTeX equations, it to use tilde ~ to create a non breakable space.


As an example, a~b displays  .


For more specific spaces, here is a list of spaces and size in math unit (mu, equal to 1/18 em, where em is taken from the math symbols family):

  • \quad space equal to the current font size (= 18 mu)
  • \! negative space (-3/18 of \quand = -3 mu)
  • \, narrow space (3/18 of  \quad = 3 mu)
  • \: average space (4/18 of  \quad = 4 mu)
  • \; wide space (5/18 of  = 5 mu)
  • \ (space after backlash) space in normal space
  • ~ non breakable space
  • \qquad : wider space (double \quad)


Here is an example:

\begin{align}
f(x) =&  ax^2 \! + \! bx \! + \! c \\
f(x) =&  ax^2 + bx + c \\
f(x) =&  ax^2 \, + \, bx \, + \, c \\
f(x) =&  ax^2 \: + \: bx \: + \: c \\
f(x) =&  ax^2 \; + \: bx \; + \; c \\
f(x) =&  ax^2 \  + \  bx \  + \  c \\
f(x) =&  ax^2 ~ + ~ bx ~ + ~ c \\
f(x) =& ax^2 \quad  + \quad  bx \quad  + \quad  c \\
f(x) =& ax^2 \qquad  + \qquad  bx \qquad  + \qquad  c 
\end{align}


The previous code displays:




8 events in history
Answer by Answiki on 12/29/2021 at 09:33:50 AM

The simplest way to insert spaces in LaTeX equations, it to use tilde ~ to create a non breakable space.


As an example, a~b displays  .


For more specific spaces, here is a list of spaces and size in math unit (mu, equal to 1/18 em, where em is taken from the math symbols family):

  • \quad space equal to the current font size (= 18 mu)
  • \! negative space (-3/18 of \quand = -3 mu)
  • \, narrow space (3/18 of  \quad = 3 mu)
  • \: average space (4/18 of  \quad = 4 mu)
  • \; wide space (5/18 of  = 5 mu)
  • \ (space after backlash) space in normal space
  • ~ non breakable space
  • \qquad : wider space (double \quad)


Here is an example:

\begin{align}
f(x) =&  ax^2 \! + \! bx \! + \! c \\
f(x) =&  ax^2 + bx + c \\
f(x) =&  ax^2 \, + \, bx \, + \, c \\
f(x) =&  ax^2 \: + \: bx \: + \: c \\
f(x) =&  ax^2 \; + \: bx \; + \; c \\
f(x) =&  ax^2 \  + \  bx \  + \  c \\
f(x) =&  ax^2 ~ + ~ bx ~ + ~ c \\
f(x) =& ax^2 \quad  + \quad  bx \quad  + \quad  c \\
f(x) =& ax^2 \qquad  + \qquad  bx \qquad  + \qquad  c 
\end{align}


The previous code displays:




Question by Answiki 10/24/2021 at 07:24:06 AM
Can we add spaces in LaTeX equations?
Question by Answiki 10/24/2021 at 07:24:01 AM
Can we insert spaces in LaTeX equations?
Question by Answiki 10/24/2021 at 07:23:54 AM
Can we specify spaces in LaTeX equations?
Question by Answiki 10/24/2021 at 07:23:31 AM
What is the syntax of spaces in LaTeX equations?
Question by Answiki 10/24/2021 at 07:23:16 AM
How to add spaces in LaTeX equations?
Answer by Answiki on 12/07/2020 at 07:52:57 PM

The simplest way to insert spaces in LaTeX equations, it to use tilde ~ to create a non breakable space. As an example, a~b displays  .


For more specific spaces, here is a list of spaces and size in math unit (mu, equal to 1/18 em, where em is taken from the math symbols family):

  • \quad space equal to the current font size (= 18 mu)
  • \! negative space (-3/18 of \quand = -3 mu)
  • \, narrow space (3/18 of  \quad = 3 mu)
  • \: average space (4/18 of  \quad = 4 mu)
  • \; wide space (5/18 of  = 5 mu)
  • \ (space after backlash) space in normal space
  • ~ non breakable space
  • \qquad : wider space (double \quad)


Here is an example:

\begin{align}
f(x) =&  ax^2 \! + \! bx \! + \! c \\
f(x) =&  ax^2 + bx + c \\
f(x) =&  ax^2 \, + \, bx \, + \, c \\
f(x) =&  ax^2 \: + \: bx \: + \: c \\
f(x) =&  ax^2 \; + \: bx \; + \; c \\
f(x) =&  ax^2 \  + \  bx \  + \  c \\
f(x) =&  ax^2 ~ + ~ bx ~ + ~ c \\
f(x) =& ax^2 \quad  + \quad  bx \quad  + \quad  c \\
f(x) =& ax^2 \qquad  + \qquad  bx \qquad  + \qquad  c 
\end{align}


The previous code displays:




Question by Answiki 12/07/2020 at 07:35:28 PM
How to insert spaces in LaTeX equations?
# ID Query URL Count

Icons proudly provided by Friconix.