Math & ScienceMaths and Spacing in Equations

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
jono90one
Posts: 3
Joined: Wed Oct 27, 2010 6:06 pm

Maths and Spacing in Equations

Post by jono90one »

I've been muddling around this for a while following what is said on here:
http://www.andy-roberts.net/writing/latex/mathematics_2

However i keep getting this result:
capture01.png
capture01.png (4.86 KiB) Viewed 2871 times
after typing:

Code: Select all

\begin{equation}
  f(x) = -a{x}^{2} \pm b{x} + c \mathrm{ } \Vert \mathrm{ x, a, b, c } \in\mathbb{R}
\end{equation}
I want it to look like this, where there is more space:
capture02.png
capture02.png (1.42 KiB) Viewed 2871 times
I thought about adding empty text boxes to free up space, but that didn't work as shown above.

Thanks for any help.
Last edited by localghost on Tue Jan 10, 2012 5:24 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Maths and Spacing in Equations

Post by localghost »

I have no problem with this. Note the backslashes with a following blank space.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}   % loads »amsmath«
\usepackage{amsfonts}

\begin{document}
  \begin{equation}
    f(x)=-ax^2\pm bx+c\ \Vert\ x,a,b,c\in\mathbb{R}
  \end{equation}
\end{document}
There are some more commands for spacing in math mode.


Thorsten
Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Maths and Spacing in Equations

Post by Frits »

I think the answer is in the andy-roberts.net reference you gave. There it says:

Code: Select all

Command	Description
\,			small space
\:			medium space
\;			large space
\!			negative space
Use those commands to add spacing.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Post Reply