Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \author{TeXniCie}
- \date{\today}
- \title{Manual for thesis}
- %%% overview of this file in order:
- % most packages which don't need options
- % geometry package
- % header/footer settings
- % theorem styles
- % enable/disable parindents
- % reference and bibliography settings
- % front/main/back-matter
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \usepackage{
- %layout, % Allow visualisation of all the margins
- subfiles, % For seperate main and sub documents
- graphicx, % For image modifications and the figure enviroment
- amsmath, % For the AMS math styles
- amssymb, % The extended AMS math symbol list
- amsthm, % For use of theorems (works together with thmtools)
- fancyhdr, % For fancy headers and footers on pages
- %gensymb, % For easy generic symbols (uniform use in math and text mode)
- %sidecap, % For use of captions next to a float (figure, table, etc)
- %subcaption, % For easy subfigures in a plot (with nice captions)
- tikz, % Difficult drawing of awesome vector plots
- %listings, % For listing pieces of code in a nice and neat way
- multicol, % For easy local multicolumn use
- color, % For handy color deafinitions (used cause of styling)
- %calc, % To calculate stuff for the back-end
- %mdwlist, % For customizing lists
- thmtools, % Lets you define your own theorem style (used for all the fancy theorems, definitions etc.)
- etoolbox, % Allows adjustment of commands (used to reset the claim counter at the end of a proof).
- xspace, % Makes latex not eat spaces after commands
- hyperref, % Makes links, references, the Table of Contents, etc. clickable.
- url,
- apacite,
- dirtytalk,
- caption,
- lipsum,
- wrapfig
- }
- %^\usepackage[cm]{fullpage}
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %\sepackage[margin=2.5cm]{geometry} % Change the shape of a page (custom margins etc.)
- \usepackage[left=3cm,right=2cm,top=2.5cm,bottom=2cm]{geometry}
- %paper=a4paper slightly changes the style through the whole document.
- %%%% We set the margins for whole document here, except the titlepage. The titlepage uses special margins; see titlepage.tex.
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%% This is about changing the headers and footers (i.e. Top and bottom of the page)
- \pagestyle{fancy}% use fancyheaders with the bar on the top
- \fancyhf{} % Clear the normal style
- \fancyhead[L]{\bfseries\leftmark} %this places the section number and name in the top left
- \fancyhead[R]{\bfseries\thepage}% this places the pagenumber in the top right
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% Theorem style
- % The set-up is as follows, first you give the 'style' of your theorem. This determines whether it for instance is plain, or italic. Secondly you can give an option for the symbol on the end, normally it is nothing. But you could add some to increase the readability of your text. Finally you can use numberwithin to add the number of your section/theorem before your equations. This is useful if you want to keep the numbers of your equation in check (In this thesis there where over a 100) and keeps in order where the equations are.
- %Finally you can use sibling to let different 'theorems' count together. Hence you will get Theorem 1 Definition 2 Claim 3, instead of Theorem 1 Definition 1 Claim 1. This is a matter of taste.
- % Theorem definitions
- \declaretheorem[style=definition,numberwithin=subsection]{definition} %If you want your theorems to be counted per section instead of subsection, then just remove the sub from the numberwithin
- \declaretheorem[style=definition,qed=$\triangle$,sibling=definition]{example}% sibling says with what type of theorems you wan the numbering to count with.
- \declaretheorem[style=plain,sibling=definition]{theorem}
- \declaretheorem[style=plain,sibling=definition]{lemma}
- \declaretheorem[style=plain,sibling=definition]{proposition}
- \declaretheorem[style=plain,sibling=definition]{corollary}
- \declaretheorem[style=definition]{claim}
- \declaretheorem[style=definition,sibling=example]{remark}
- \AtEndEnvironment{proof}{\setcounter{claim}{0}} % Sets the claim number to 0 after ending a proof
- % these environments are very nice and all, but it is a bit much to type every time, so for normal theorem-proof cases you can make your own commands like these.
- \newcommand{\thm}[2]{\begin{theorem} #1 \begin{proof} #2 \end{proof} \end{theorem}}
- \newcommand{\lm}[2]{\begin{lemma} #1 \begin{proof} #2 \end{proof} \end{lemma}}
- \newcommand{\df}[1]{\begin{definition} #1 \end{definition}}
- \newcommand{\clm}[1]{\begin{claim} #1 \end{claim}}
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- % Comment/uncomment the following to disable/enable parindents:
- \setlength\parindent{0pt}
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% Add the bibliography with some settings:
- % package:
- \usepackage[]{natbib}
- % choose brackets: default: round (), square [], curly {}, angle <>
- % choose separation between multiple citations (\cite{a,b}):
- %% default: colon ;, comma ,
- % choose citation style:
- %% default: authoryear Johnson (2017), numbers (25) or super ^[25]
- % option: choose sort (\cite{13,5} gives [5,13]) or sort&compress
- %% in authoryear mode, sort&compress changes Johnson[2016] Johnson[2017] to
- %% Johnson[2016,2017].
- % option: longnamesfirst (author names will be shortened (et al.) after the first time
- % option: nonamebreak (can solve hyperref bugs, but will instead cause hbox problems)
- % https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management#Natbib
- % bibliography sort style:
- \bibliographystyle{apacite} %references in order of call
- %more options: default: plainnat, apsrev, unsrtnat, abbrvnat, rmpaps (different sortings and abbreviation settings, no idea which is which)
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%% frontmatter/mainmatter/backmatter:
- \newcommand\frontmatter{%
- \cleardoublepage
- \pagenumbering{roman}} %small Roman numbers
- \newcommand\mainmatter{%
- \cleardoublepage
- \pagenumbering{arabic}} %normal numbers
- \newcommand\backmatter{%
- \cleardoublepage %% double page style
- %\clearpage %% single page style
- \pagenumbering{Roman}} %capital Roman numbers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement