LyXDecrease spacing before/after section titles and figures

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
aelwany
Posts: 1
Joined: Mon Jun 29, 2015 9:12 pm

Decrease spacing before/after section titles and figures

Post by aelwany »

I am now to both Latex and Lyx, but I really like using Lyx.

The default spacing before and after section/subsection titles are too large. The default spacing after figure floats are also large.

My questions are: (1) how do I control these spacings? I tried many things in the document settings and preferences, but could only figure out how to set line spacing in paragraphs. (2) Generic question related to question 1: I am "guessing" that there will be some kind of userpackages that I need to use to resolve question number 1 above. There is a plethora of these packages online. What do I need to do to use these TEX packages in Lex? Is it that so called "Preamble"?

Thank you very much.

Al

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Decrease spacing before/after section titles and figures

Post by Stefan Kottwitz »

Hi Al,

welcome to the forum!

I guess you already learnt more about LyX in the meantime. I'm not a LyX user, but I know this and that about it. And LaTeX of course. So, if you got any question, let us know.

Regarding packages: LyX already loads packages, depending on document settings. You can always add further packages via \usepackage{packagename} in the document preamble. The latter can be edited if you open "Document settings" in the LyX main menu, and look for the preamble.

In the document settings you can also decide the document class. I recommend to choose a KOMA-Script document class. This kind of classes makes customizing very simple. For example, the heading spacing is easy to modify. With a base class, it can be customized using the titlesec package.

Stefan
LaTeX.org admin
Post Reply