2020-03-24 20:56:36 +01:00
|
|
|
% ================
|
|
|
|
% = Layout Setup =
|
|
|
|
% ================
|
|
|
|
% see http://ftp.snt.utwente.nl/pub/software/tex/macros/latex/contrib/memoir/memman.pdf
|
|
|
|
%\setstocksize{9in}{6in}
|
|
|
|
\stockaiv
|
|
|
|
\pageav
|
|
|
|
%\settrimmedsize{148mm}{210mm}{*}
|
|
|
|
\settrims{0pt}{0pt}
|
|
|
|
|
|
|
|
\settypeblocksize{190mm}{100mm}{*}
|
|
|
|
|
|
|
|
\setpagecc{\paperheight}{\paperwidth}{*} % centers page layout on stock page (trimmings in middle)
|
|
|
|
|
|
|
|
\setlrmargins{*}{0.5in}{*}
|
|
|
|
\setulmargins{*}{0.5in}{*}
|
2019-04-16 09:03:51 +02:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
%\setheadfoot{\baselineskip}{\baselineskip} % headheight and footskip
|
|
|
|
\setheaderspaces{0.5in}{*}{*} % headdrop, headsep, and ratio
|
2020-02-24 21:49:53 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
\checkandfixthelayout
|
|
|
|
|
|
|
|
% stock/paper and layout settings
|
|
|
|
%\stockaiv % default is letterpaper (11 by 8.5 inches)
|
|
|
|
%\pageaiv
|
|
|
|
%\semiisopage % sets size and pos of typeblock with respect to the page (must call checkandfix...)
|
|
|
|
%\settrimmedsize{148mm}{210mm}{*} % calculates paper height and width
|
|
|
|
%\setpagecc{\paperheight}{\paperwidth}{*} % centers page layout on stock page (trimmings in middle)
|
|
|
|
%\settypeblocksize{}{}{*} % height, width, ratio
|
|
|
|
%\setlrmargins{}{}{*} % spine, edge, ratio
|
|
|
|
%\checkandfixthelayout
|
|
|
|
|
|
|
|
|
|
|
|
% ===========================
|
|
|
|
% = Paragraph/Content Setup =
|
|
|
|
% ===========================
|
2019-04-16 09:03:51 +02:00
|
|
|
% paragraph indentation
|
|
|
|
\usepackage{parskip}
|
|
|
|
\setlength{\parindent}{15pt}
|
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
% for itemization, other symbol - labelitemii, iii, iv, ... kan ook
|
|
|
|
\renewcommand{\labelitemi}{$\circ$}
|
2019-02-13 12:31:25 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
% starbreak: only add if at beginning of new page. MD: just '* * *'
|
|
|
|
\newcommand{\starbreak}{%
|
|
|
|
\fancybreak{* * *}%
|
2020-03-23 08:12:33 +01:00
|
|
|
}
|
2020-03-24 20:56:36 +01:00
|
|
|
\DeclareRobustCommand{\cs}[1]{\texttt{\char`\\#1}}
|
|
|
|
\newlength{\tpheight}\setlength{\tpheight}{0.9\textheight}
|
|
|
|
\newlength{\txtheight}\setlength{\txtheight}{0.9\tpheight}
|
|
|
|
\newlength{\tpwidth}\setlength{\tpwidth}{0.9\textwidth}
|
|
|
|
\newlength{\txtwidth}\setlength{\txtwidth}{0.9\tpwidth}
|
|
|
|
\newlength{\drop}
|
2020-03-23 08:12:33 +01:00
|
|
|
|
2019-02-13 12:31:25 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
% =============================
|
|
|
|
% = Footer/header/index Setup =
|
|
|
|
% =============================
|
|
|
|
% for index
|
|
|
|
\usepackage{imakeidx}
|
|
|
|
\makeindex[title=Appendix,columns=2,intoc,options= -s indexstyle.ist]
|
|
|
|
\makepagestyle{desem}
|
|
|
|
\makeevenfoot{desem}{\footnotesize \thepage}{}{} % hstylei, hlefti, hcenteri, hrighti
|
|
|
|
\makeoddfoot{desem}{}{}{\footnotesize \thepage}
|
|
|
|
|
2020-02-24 12:18:37 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
% ===================
|
|
|
|
% = Font/Text Setup =
|
|
|
|
% ===================
|
|
|
|
\usepackage{tcolorbox}
|
|
|
|
\usepackage{etoolbox}
|
2020-02-24 21:49:53 +01:00
|
|
|
\usepackage{fontspec}
|
|
|
|
\usepackage{mathpazo}
|
|
|
|
\setmainfont
|
|
|
|
[ BoldFont = texgyrepagella-bold.otf ,
|
|
|
|
ItalicFont = texgyrepagella-italic.otf ,
|
|
|
|
BoldItalicFont = texgyrepagella-bolditalic.otf ]
|
|
|
|
{texgyrepagella-regular.otf}
|
2019-04-16 09:03:51 +02:00
|
|
|
% for Japanese chars
|
2020-03-23 08:12:33 +01:00
|
|
|
\usepackage{xeCJK}
|
|
|
|
\setCJKmainfont[BoldFont=STHeiti,ItalicFont=STKaiti]{STSong}
|
2019-03-18 14:40:40 +01:00
|
|
|
|
2019-02-14 16:18:54 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
% ================
|
|
|
|
% = Images Setup =
|
|
|
|
% ================
|
|
|
|
% for png/pdf inclusion (pdfpages: full-page)
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\graphicspath{{img/}}
|
2020-02-24 12:18:37 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
\usepackage{wrapfig} % inline l/r
|
|
|
|
\usepackage{subcaption} % subfigure
|
|
|
|
\usepackage{calc} % for adjustimg cmd calculations
|
|
|
|
\usepackage{changepage} % full-page
|
|
|
|
\newcommand{\adjustimg}{% Horizontal adjustment of image
|
|
|
|
\checkoddpage%
|
|
|
|
\ifoddpage\hspace*{\dimexpr\evensidemargin-\oddsidemargin}\else\hspace*{-\dimexpr\evensidemargin-\oddsidemargin}\fi%
|
2020-02-24 12:18:37 +01:00
|
|
|
}
|
2020-03-24 20:56:36 +01:00
|
|
|
\newcommand{\centerimg}[2][width=\textwidth]{% Center an image
|
|
|
|
\makebox[\textwidth]{\adjustimg\includegraphics[#1]{#2}}%
|
|
|
|
}
|
|
|
|
% \usepackage{pdfpages} % for fullpage png/pdf includes
|
2020-02-24 12:18:37 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
% figure caption styles - http://www.peteryu.ca/tutorials/publishing/latex_captions
|
|
|
|
\usepackage[skip=4pt,font=small]{caption}
|
|
|
|
\captionsetup[figure]{labelformat=simple, labelsep=colon, labelfont=bf, textfont={it}}
|
|
|
|
\renewcommand{\thefigure}{\thechapter.\Alph{figure}} % set caption label style to 1.A
|
2020-02-24 12:18:37 +01:00
|
|
|
|
2020-02-24 21:49:53 +01:00
|
|
|
|
2020-03-24 20:56:36 +01:00
|
|
|
% ==================
|
|
|
|
% = Chapter Styles =
|
|
|
|
% ==================
|
2020-02-24 12:18:37 +01:00
|
|
|
% hoofdstuk header style ( - 1 -, naam HF)
|
2020-03-24 20:56:36 +01:00
|
|
|
% to add subtitle to \maketitle
|
|
|
|
\makeatletter
|
|
|
|
\providecommand{\subtitle}[1]{
|
|
|
|
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
|
|
|
|
}
|
|
|
|
\makeatother
|
|
|
|
|
2020-02-24 12:18:37 +01:00
|
|
|
\chapterstyle{dash}\renewcommand*{\chaptitlefont}{\normalfont\itshape\LARGE}
|
|
|
|
\setlength{\beforechapskip}{2\onelineskip}
|
|
|
|
\setsecheadstyle{\normalfont\Large\raggedright}
|