Text Formatting ⇒ How do I control spaces between lines?
-
- Posts: 4
- Joined: Sat Jan 17, 2009 6:34 pm
How do I control spaces between lines?
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: How do I control spaces between lines?
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 4
- Joined: Sat Jan 17, 2009 6:34 pm
Re: How do I control spaces between lines?
I have the following text:
sin(306)=-sin(54)
sin(234)=-sin(54)=-cos(36)
sin(162)=sin(18)
sin(90)=cos(0)
sin\theta - sin(54) - cos(36) + sin(18) + cos(0) = 0
sin18 - sin(54) - cos(36) + sin(18) + cos(0) = 0
However when I turn it into a pdf, it shows up like this.
sin(306)=-sin(54) sin(234)=-sin(54)=-
cos(36) sin(162)=sin(18) sin(90)=cos(0)
sin − sin(54) − cos(36) + sin(18) + cos(0) = 0sin18 − sin(54) − cos(36) +
sin(18) + cos(0) = 0
I cannot get spacing between lines, and I was wondering if it is possible to get spacing by pressing "enter". Basically I want to have the spacing that I put in appear in the project to be in the pdf, so if I press enter 5 times between paragraphs in the project, there will be 5 lines of blank space between those paragraphs in the pdf.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How do I control spaces between lines?
Code: Select all
\begin{align*}
\sin(306)&=-\sin(54) \\
\sin(234)&=-\sin(54)=-\cos(36) \\
\sin(162)&=\sin(18) \\
\sin(90)&=\cos(0) \\[2\jot]
\sin\theta - \sin(54) - \cos(36) + \sin(18) + \cos(0) &= 0 \\
\sin18 - \sin(54) - \cos(36) + \sin(18) + \cos(0) &= 0
\end{align*}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10