I am writing a thesis template with properties like word template.
in MS Wors: Font size=14pt, linespace=1.2, space before chapter/section/subsection title = 30pt/27pt/20pt.
What I have done so far is:
- After loading
extbook.clswithfontsize=14ptI set\setlength{\p@}{1bp}. (like 14pt in word)- Then, in the end of template I set
\renewcommand\baselinestretch{1.23429}(=1.2 in word)- Then I changed
\parskipto a bit more than\baselinestretch(I don't know the exact value of\parskipin word but it seems it is a bit more than\baselinestretch).
I am sure (mostly) that the second change of \baselinestretch is exactly equal to its analogous in word. (by comparing its outputs). But
Q1: why after setting
\setlength{\p@}{1bp},\baselinestretch{1.2}isn't equal to its analogous in word?Q2: How to prevent other changes (except paragraph skip) that has been defined by old
parskiplike space aftersections?
\documentclass[14pt,a4paper]{extbook}
\usepackage{lipsum}
\makeatletter
\setlength{\p@}{1bp}
\makeatother
\setlength{\parskip}{1.2\baselineskip}
\renewcommand\baselinestretch{1.23429}
\begin{document}
\tableofcontents
\chapter{First Chapter} \pagebreak
\section{First Section}
\lipsum[1-2]
\subsection{First Subsection}
\chapter{Second Chapter} \pagebreak
\section{Second Section}
\lipsum[1-2]
\subsection{Second Subsection}
\lipsum[1-2]
\end{document}
\setlength{\p@}{1bp}will completely break LaTeX arithmetic and could lead to quite unexpected errors (especially when handling pictures). Don't do that! – campa Dec 06 '19 at 09:50pttobp? just computingx*72/72.27 pt= 14 bp? or I should involve\baselineskip? – Dec 06 '19 at 14:13\input{bk1\@ptsize.clo}usingbpdim and the use it instead of\input{bk1\@ptsize.clo}? – Dec 06 '19 at 14:16