Math & ScienceLaTeX skips space

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
sajaman
Posts: 2
Joined: Wed Nov 24, 2010 4:49 pm

LaTeX skips space

Post by sajaman »

Hi,

I am going crazy :(
LaTeX does not make what I want!!!
Look at the following Screenshot:
skippedspaces.jpg
skippedspaces.jpg (31.4 KiB) Viewed 2415 times
I added the red point with Paint so you can see that the first interspace between the two symbols is smaller then the second interspace!

The Latex-Code is:

Code: Select all

$\{t | (\exists a \in Artikel \wedge \exists b \in Abteilung \wedge \exists f \in Filiale)(b.Nummer = a.Abteilung \wedge f.Stadt = Berlin)\}$\newline
$\{t | (\exists a \in Artikel \wedge \exists b \in Abteilung \wedge \exists f \in Filiale)(f.Stadt = Berlin \wedge b.Nummer = a.Abteilung)\}$
I don't want to force a space with "\ " or something!
I want that Latex stops trying to squash a Text in one Line and that Latex skips spaces as in the picture!
How can I do that? Is there a package?


Edit by localghost: Preferably no external links (see Board Rules). Attachment go onto the forum server where possible.

Recommended reading 2024:

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

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

Boersma
Posts: 21
Joined: Mon Nov 22, 2010 9:29 pm

LaTeX skips space

Post by Boersma »

mm, hates the pop-up at your screenshot, please remove...

Spacing in normal text mode is variable, because justification. So you can try to put it in an other environment:

Code: Select all

\begin{align*}
\{t | (\exists a \in Artikel \wedge \exists b \in Abteilung \wedge \exists f \in Filiale)(b.Nummer = a.Abteilung \wedge f.Stadt = Berlin)\}\\
\{t | (\exists a \in Artikel \wedge \exists b \in Abteilung \wedge \exists f \in Filiale)(f.Stadt = Berlin \wedge b.Nummer = a.Abteilung)\}
\end{align*}
Now your spacing is everywhere the same, you only have to cut the equation (on places where you want)

An other option is to use

Code: Select all

\raggedright
Post Reply