phd_thesis_markdown icon indicating copy to clipboard operation
phd_thesis_markdown copied to clipboard

Reduce Space Above chapter heading

Open MrTidbury opened this issue 7 years ago • 4 comments

I am using this for my dissertation at uni and love it. Just one quick issue I have with it is that I am attempting to reduce the empty space above the new Chapter Header. I attempted to change % \newcommand{\hsp}{\hspace{20pt}} in the preamble.tex but with no luck.

Would love to know if this is possible.

Thanks

MrTidbury avatar Apr 20 '17 16:04 MrTidbury

Thanks Jack, glad to hear it :) It is definitely possible, but it's been a while since I looked at the template, so I can't say exactly how. I'll take a look when I have time...

tompollard avatar Apr 20 '17 16:04 tompollard

Cheers man - I will keep digging. If I work it out Ill post it here

MrTidbury avatar Apr 20 '17 16:04 MrTidbury

Any updates on this, @MrTidbury ?

isacdaavid avatar Nov 29 '18 05:11 isacdaavid

I've found my way around this issue inside preamble.txt:

Use something along the lines of:

\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing{\chapter}{0pt}{0pt}{0pt} % or {0pt}{-50pt}{40pt} for even leaner headings

It needed an extra tweak for it to take effect though. There's something when loading sectsty or ulem that overrides the options passed to \titlespacing, so also remember to comment out the following section in preamble.txt:

% HEADINGS
\usepackage{sectsty}
\usepackage[normalem]{ulem}
\sectionfont{\rmfamily\mdseries\Large}
\subsectionfont{\rmfamily\mdseries\scshape\large}
\subsubsectionfont{\rmfamily\bfseries\upshape\large}

isacdaavid avatar May 19 '19 00:05 isacdaavid