GeneralSpacig between lines of equations in the aligned env

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Spacig between lines of equations in the aligned env

Post by dmt »

Is there a simple way to increase the spacing between lines of equations in the aligned environment?

Here is my code:

Code: Select all

\documentclass[a4paper, fleqn]{article}

\usepackage{amsmath}
\usepackage[latin1]{inputenc}


\title{Lösningsförslag till några problem på s.179}
\date{}
\author{}
\topmargin -1.0cm
\textheight 23.7cm
\oddsidemargin -0.5cm
\evensidemargin -0.5cm
\textwidth 17cm

\begin{document}
\maketitle

\section*{5335}

Visa att
\[\begin{aligned}[t]
\frac{1}{1-\sin v}+\frac{1}{1+\sin v} &= \frac{2}{\cos^2 v} \\
\frac{1+\sin v}{1-\sin v}+\frac{1+\sin v}{1+\sin v} &= \frac{2(1+\sin v)}{\cos^2 v} \\
\frac{1+\sin v}{1-\sin v}+1 &= \frac{2(1+\sin v)}{\cos^2 v} \\
1+\sin v+1-\sin v &= \frac{2(1+\sin v)(1-\sin v)}{\cos^2 v} \\
2 &= \frac{2(1-\sin^2v)}{\cos^2v} \\
2 &= 2
\end{aligned}\]

\end{document}
 

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

YzerFan19Forever
Posts: 3
Joined: Wed Mar 19, 2008 4:51 pm

Spacig between lines of equations in the aligned env

Post by YzerFan19Forever »

dmt wrote:Is there a simple way to increase the spacing between lines of equations in the aligned environment?
Yes. You simply apply an argument to \\ i order to specify the spacing between each line. Here's an example.

Code: Select all

\documentclass[a4paper,fleqn]{article}
\usepackage{amsmath}
\usepackage[latin1]{inputenc}

\begin{document}

\begin{aligned}
\frac{1}{1-\sin v}+\frac{1}{1+\sin v} &= \frac{2}{\cos^2 v} \\[10mm]
\frac{1+\sin v}{1-\sin v}+\frac{1+\sin v}{1+\sin v} &= \frac{2(1+\sin v)}{\cos^2 v} \\[7mm]
\frac{1+\sin v}{1-\sin v}+1 &= \frac{2(1+\sin v)}{\cos^2 v} \\[34mm]
1+\sin v+1-\sin v &= \frac{2(1+\sin v)(1-\sin v)}{\cos^2 v} \\[2mm]
2 &= \frac{2(1-\sin^2v)}{\cos^2v} \\[11mm]
2 &= 2
\end{aligned}

\end{document}
 
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Re: Spacig between lines of equations in the aligned env

Post by dmt »

Thanks. Is that how much space it adds to each line, or does that replace the default (in case the default has been reset)?

Is there a way to reset the default globally?
YzerFan19Forever
Posts: 3
Joined: Wed Mar 19, 2008 4:51 pm

Spacig between lines of equations in the aligned env

Post by YzerFan19Forever »

dmt wrote:Thanks. Is that how much space it adds to each line, or does that replace the default (in case the default has been reset)?

Is there a way to reset the default globally?
(1) This replaces the default space.
(2) I don't know--sorry!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Spacig between lines of equations in the aligned env

Post by Stefan Kottwitz »

Hi dmt,

you may change the length \jot, e.g.

Code: Select all

\setlength{\jot}{10pt}
Stefan
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Re: Spacig between lines of equations in the aligned env

Post by dmt »

Thanks, that was just what I was looking for.
Post Reply