Math & Sciencespace in formulas

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

space in formulas

Post by drowsy »

Is there a nice way to tell tex not to stretch formulas too wide sometimes?

It often happens that tex makes something like

Code: Select all

a      >       b
instead of a>b in order to find better line breaks.

Is there a variable for this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

Re: space in formulas

Post by drowsy »

I need to change
\medmuskip and \thickmuskip, right?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10311
Joined: Mon Mar 10, 2008 9:44 pm

space in formulas

Post by Stefan Kottwitz »

Hi drowsy,

such lengths are described in the excellent Mathmode.pdf document. Btw. some more math related docs can be found here: Mathematics with LaTeX.

Stefan
LaTeX.org admin
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: space in formulas

Post by daleif »

in those cases it might be a better idea to rewrite some of the text instead.
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

space in formulas

Post by drowsy »

daleif wrote:in those cases it might be a better idea to rewrite some of the text instead.
Honestly, I find the standard 4-5mu skip in "a>b" disgustingly ugly.

Same for the skips in $x\in E$.
Last edited by drowsy on Sat Dec 27, 2008 2:42 am, edited 1 time in total.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: space in formulas

Post by daleif »

that is mu, not em, and if LaTeX is stretching as far as 4-5em then something is wrong with your document.
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

Re: space in formulas

Post by drowsy »

sorry, I meant "mu", of course.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: space in formulas

Post by daleif »

and what should the distances be instead? I find them fairly pleasing
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

Re: space in formulas

Post by drowsy »

Here is a random article I am reading atm. Look at $\in$ symbols.
I think whitespace around them should be at least twice as small.

http://img216.imageshack.us/img216/1654 ... 401ec1.png
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: space in formulas

Post by daleif »

It looks like that is caused by the line breaking algorithm. in order to break the formula without extending out into the margins. It might also be some setting that discourages hyphenation.

In any case I would rewrite that paragraph, and I sometimes do when I edit our preprints.

With everything else in TeX, it is a compromise.
Post Reply