Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Sectioning and Text Spacing #203

Closed
tmr83 opened this issue Apr 5, 2021 · 3 comments
Closed

Sectioning and Text Spacing #203

tmr83 opened this issue Apr 5, 2021 · 3 comments

Comments

@tmr83
Copy link
Contributor

tmr83 commented Apr 5, 2021

The spacing looks a bit off.

image

I do not remember having the manual spacing like this. I might consider reverting the change. I know the project goal is preservation, but the manual is difficult to preserve 100% because it is so different and coded in LaTeX.

Edit:

Even spacing for text with and without large fonts looks a bit off:

image

Edit2:

And this one shows the sectioning too close together.

image

@tmr83
Copy link
Contributor Author

tmr83 commented Jun 19, 2021

For the time being considering I am allowing text not to be \raggedright as per the original manual, I will be removing this code:

\usepackage[explicit]{titlesec} % For modification of titles
% \titlespacing\command{left}{before}{after}
% spacing: how to read {12pt plus 4pt minus 2pt}
%           12pt is what we would like the spacing to be
%           plus 4pt means that TeX can stretch it by at most 4pt
%           minus 2pt means that TeX can shrink it by at most 2pt
\titlespacing\chapter{0pt}{1.4in}{12pt plus 6pt minus 2pt}
\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{-4pt plus 6pt minus 2pt}
\titlespacing\subsection{0pt}{12pt plus 4pt minus 2pt}{-4pt plus 6pt minus 2pt}
\titlespacing\subsubsection{0pt}{12pt plus 4pt minus 2pt}{-4pt plus 6pt minus 2pt}
\titleformat%
    {\chapter}% command
    [display]% shape, one of: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame
    {\bfseries\Huge}% format
    {\fontsize{40}{40}\selectfont\thechapter}% label
    {0em}% sep
    {
        \vspace{-1.5em}
        \hspace{1.5em}
        \parbox{0.8\textwidth}{
            \raggedright%
            #1%
        }
    }% before-code
    [
        \vspace{0.1em}
        \titlerule
    ]% after-code

@tmr83
Copy link
Contributor Author

tmr83 commented Nov 5, 2021

This issue should be easy enough to fix by adjusting this code:

\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{-4pt plus 6pt minus 2pt}
\titlespacing\subsection{0pt}{12pt plus 4pt minus 2pt}{-4pt plus 6pt minus 2pt}
\titlespacing\subsubsection{0pt}{12pt plus 4pt minus 2pt}{-4pt plus 6pt minus 2pt}

But for some reason, I cannot quite get it right at the moment.

@the3dfxdude
Copy link
Owner

I'm not sure if this still needs to be done. Please give an update on this issue on sourceforge or the forum if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants