GeneralLatex Units

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
maranatha
Posts: 13
Joined: Tue May 03, 2011 9:08 pm

Latex Units

Post by maranatha »

Hello guys
I was documenting my thesis according to the guidelines of my university. I am little bit confused with the spacing units they set. They have used spacing unit of pt, blank space as below:
-Sections must be followed by a blank line (or 18pt)
-subsections should be preceded by two blank lines(42pt) and followed by one blank line(18pt)
-subsubsections should be followed and preceded by a blank line.

The following was the code I used in the preamble to get it as specified above. the document class I am using is book.

Code: Select all

\usepackage[top=3.5cm, bottom=3cm, left=3cm, right=3cm, textwidth = 15cm ]{geometry}
\usepackage{titlesec}
\titleformat{\section}{\normalsize}{\thesection}{1em}{}
\titleformat{\subsection}{\normalsize}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\normalsize}{\thesubsubsection}{1em}{}
\titlespacing*{\section} {0pt}{18pt}{40pt}
\titlespacing*{\subsection} {0pt}{42pt}{18pt}
\titlespacing*{\subsubsection} {0pt}{18pt}{18pt}
But I couldnt find exact spacing when I measured it manually. Do you guys have any idea what might be the reason. I would be also grateful if one could provide me solution for this.

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

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Latex Units

Post by 5gon12eder »

Did you take into account that the space after is added to \parskip? Your example doesn't show what your \parskip is but if it is non-zero this might explain your problem.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Post Reply