Skip to content

Commit

Permalink
further tidying up preamble, separating page layout from main preambl…
Browse files Browse the repository at this point in the history
…e file
  • Loading branch information
fmilthaler committed Jun 28, 2019
1 parent 3b1f3f0 commit b3a30d2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 44 deletions.
30 changes: 30 additions & 0 deletions preamble/layout.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
% settings for overall layout:

% definition layout and print space
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-0.65in}
\setlength{\oddsidemargin}{3cm} % setting the side margin to 3cm
\setlength{\evensidemargin}{\oddsidemargin} % side margin to be the same for front/back of pages
% content is horizontally centered on the page: pagewidth=21cm - 2*3cm (margins) = 15cm of text:
\setlength{\textwidth}{15cm}
\setlength{\textheight}{23cm} % 23cm of text height
% setting separation from header, footer
\setlength{\headsep}{0.75cm}
\setlength{\footskip}{30pt}
\setlength{\headheight}{28pt} % setting header height
\setlength{\parindent}{0pt} % no indentation on a new paragraph
\setlength{\parskip}{1.5ex} % vertical space between paragraphs
\setlength{\floatsep}{\baselineskip} % distance between two floats;
\setlength{\intextsep}{1.5\baselineskip} % distance between floats inserted inside the page text (using h) and the text proper.

% to set line spacing:
\usepackage{setspace} % provides commands: \doublespacing, \onehalfspacing, \singlespacing

% Define the layout of chapter titles:
\usepackage[Bjarne]{fncychap}% options are: Bjarne, Sonny, Lenny, Bjornstrup
\ChNameAsIs \ChNameVar{\raggedleft\Huge\rm} \ChRuleWidth{0.5pt}
\ChNumVar{\raggedleft\Huge}
\ChNameAsIs \ChNameVar{\raggedleft\LARGE\rm} \ChRuleWidth{0.5pt}
\ChNumVar{\raggedleft\rm\bfseries\LARGE}
\ChTitleAsIs
\ChTitleVar{\raggedleft\rm\bfseries\Huge}
57 changes: 13 additions & 44 deletions preamble/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,14 @@
%idxtotoc, % index to table of contents
]{report}

% definition layout and print space
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-0.65in}
\setlength{\oddsidemargin}{3cm} % setting the side margin to 3cm
\setlength{\evensidemargin}{\oddsidemargin} % side margin to be the same for front/back of pages
% content is horizontally centered on the page: pagewidth=21cm - 2*3cm (margins) = 15cm of text:
\setlength{\textwidth}{15cm}
\setlength{\textheight}{23cm} % 23cm of text height
% setting separation from header, footer
\setlength{\headsep}{0.75cm}
\setlength{\footskip}{30pt}
\setlength{\headheight}{28pt} % setting header height
\setlength{\parindent}{0pt} % no indentation on a new paragraph
\setlength{\parskip}{1.5ex} % vertical space between paragraphs
\setlength{\floatsep}{\baselineskip} % distance between two floats;
\setlength{\intextsep}{1.5\baselineskip} % distance between floats inserted inside the page text (using h) and the text proper.
\usepackage{varwidth}

% Setting header/footer with fancyheaders in separate
\input{preamble/fancyheaders} % find fancyheader settings here
\input{preamble/loadlistings} % find listing/code settings here

% Define the layout of chapter titles:
\usepackage[Bjarne]{fncychap}% options are: Bjarne, Sonny, Lenny, Bjornstrup
\ChNameAsIs \ChNameVar{\raggedleft\Huge\rm} \ChRuleWidth{0.5pt}
\ChNumVar{\raggedleft\Huge}
\ChNameAsIs \ChNameVar{\raggedleft\LARGE\rm} \ChRuleWidth{0.5pt}
\ChNumVar{\raggedleft\rm\bfseries\LARGE}

% \ChTitleUpperCase
\ChTitleAsIs
\ChTitleVar{\raggedleft\rm\bfseries\Huge}
%\ChNameVar{\raggedleft\Large} \ChNumVar{\raggedleft\Large} \ChTitleVar{\raggedleft\Huge}
%\ChRuleWidth{0.5pt} \ChNameUpperCase
%\ChTitleAsIs
%
% overall layout settings
\input{preamble/layout}

\usepackage{calc}
% setting header/footer with fancyheaders in separate file
\input{preamble/fancyheaders} % find fancyheader settings here

% to set line spacing:
\usepackage{setspace} % provides commands: \doublespacing, \onehalfspacing, \singlespacing
% setting listings (for code/pseudo code)
\input{preamble/loadlistings} % find listing/code settings here

% Formats
\usepackage{textcomp}
Expand Down Expand Up @@ -128,12 +95,14 @@
\usepackage{colortbl} % for colors in tables

% PDF packages
\usepackage[luatex]{hyperref}
\hypersetup{pdfauthor=\name, pdftitle=\thesistitle}
\usepackage[pdftex]{hyperref}
\hypersetup{pdfauthor=\name,
pdftitle=\thesistitle,
pdfkeywords={Thesis, \degree}}
\hypersetup{colorlinks=true,
linkcolor=black,
citecolor=black,
urlcolor=black}
linkcolor=black,
citecolor=black,
urlcolor=black}
\usepackage[final]{pdfpages}

% URL
Expand Down

0 comments on commit b3a30d2

Please sign in to comment.