LaTeX specific issues not fitting into one of the other forums of this category.
-
dmt
- Posts: 82
- Joined: Sat Mar 15, 2008 8:13 pm
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
YzerFan19Forever
- Posts: 3
- Joined: Wed Mar 19, 2008 4:51 pm
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
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
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!
-
dmt
- Posts: 82
- Joined: Sat Mar 15, 2008 8:13 pm
Post
by dmt »
Thanks, that was just what I was looking for.