Line Spacing in LaTeX: Adjust Equation Spacing in Your Document

  • Context: LaTeX 
  • Thread starter Thread starter Pengwuino
  • Start date Start date
  • Tags Tags
    Latex Line
Click For Summary
SUMMARY

This discussion focuses on adjusting line spacing for equations in LaTeX documents, specifically when using a thesis package. Users can modify vertical spacing by adding the command \linespace{factor} in the preamble, where factor can be set to values like 1.0 for normal spacing or 1.3 for one-and-a-half spacing. Alternatively, incorporating the setspace package allows for commands such as \singlespacing, \onehalfspacing, and \setstretch{1.1} to achieve desired spacing. Adjustments can also be made directly in the .sty file of the package.

PREREQUISITES
  • Familiarity with LaTeX document preparation
  • Understanding of LaTeX packages, specifically setspace
  • Basic knowledge of LaTeX commands and syntax
  • Access to the .sty file of the thesis package being used
NEXT STEPS
  • Research the setspace package for advanced line spacing options in LaTeX
  • Learn how to modify .sty files for custom LaTeX packages
  • Explore other LaTeX packages that affect document formatting
  • Investigate best practices for thesis formatting in LaTeX
USEFUL FOR

Graduate students, thesis writers, and anyone using LaTeX for academic documents who need to customize equation spacing for improved readability.

Pengwuino
Gold Member
Messages
5,109
Reaction score
20
I'm not totally sure this is the right place to put this but here goes. I am using a thesis package from a different university for my thesis and I am having an issue with the line spacing.

6prtw6.jpg


The vertical spacing between equations is a bit much. How exactly can I change this spacing for the equations for the whole document? The gap, I assume, should be about the same gap as the spacing between lines of normal text.
 
Physics news on Phys.org
There are two ways of doing this. The easiest is by putting in your preamble

\linespace{factor}

where factor is a number. 1.0 is normal. 1.3 is one-and-a-half spacing and 1.6 is double spacing. And so on. So condider putting in \linespace{0.7} or similar.

You could also put in the package

\usepackage{setspace}

Then you can use commands like
\singlespacing
\onehalfspacing
\doublespacing
\setstretch{1.1}

If you have acces to the .sty package of your package, then change one of these factors.
 
I found the area in the style package where they changed the spacing for eqnarray and I deleted it like a boss. I'm so smrt.
 
Pengwuino said:
I'm so smrt.

There's a mistake in equation (2.21) :biggrin:
 
micromass said:
There's a mistake in equation (2.21) :biggrin:

Go away.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K