Latex template for HVL PhD dissertations.
The template uses the latexmk to compile the latex to pdf by running a makefile enclosed.
All the default settings of the template are in the preamble.tex and macros.tex.
The default language is the American language.
If you want to change the language, then you need to check the option of the babel package.
The font size of the PhD thesis template is 12pt.
The fonts used in the template include:
If you do not want to use old-style figures, then you can change to tgpagella package.
-
Typewriter font: beramono package.
-
The Euler-VM fonts for maths (blend well with Palatino): eulervm package.
Part 2 of the PhD latex template consists of a collection of publications via including a papers.tex file. If you want to write the thesis in monograph style, then you don't need to include papers.tex.
For the thesis by publications style, in the papers.tex file, the default
setting is to use \includepdf{}
to include PDF files in the papers folder.
The reason to choose this way to directly attach PDF files is to make the life
easier.
But, if you don't like this way, you can use \subimport{}
instead of
\includepdf{}
in papers.tex to compile all your latex files from your pervious publications.
However, the HVL PhD thesis Word template (page 11) on the HVL website states:
"Publiserte artikler kan settes inn i avhandlingen slik de er publiserte og trenger ikke konverteres til denne malen."
So, if you want to directly attach original publications (with original publishers' format pdf files),
you only need to use "includepdf", but you might need to check the copyright of your publications about republishing.
However, if you don't want to attach pdf files directly but prefer to recompile
your Latex files for previous papers, then just can use "subimport".
You can ask doctoral adviser Prof. Håvard Helstrup and your supervisors to get
their opinions for which way is reasonable and how to deal with copyright of your publications.
Latex books in case you need:
- Install TeX document production system (Latex):
To get the TeX document production system, one easy way is to download TeX Live.
- Update Latex:
If you already have Latex (Tex Live) in your machine, then update it to the latest version first.
- To generate the main pdf file, you can simply run the command defined in the Makefile:
> make
This should generate the thesis.pdf if everything is set up correctly,
- To run latexmk in "continuous mode" such that the thesis.pdf file is recreated every time the sources change after saving. The continuous mode can be executed by running the command:
> make cont
Both should generate thesis.pdf and open the file using the pdf-viewer.
The default setting in the Makefile is to use Preview to open thesis.pdf in
MacOS.
If, e.g., in Linux, you need to change the Makefile for the pdf-viewer you want
to use, such as okular: okular thesis.pdf
.
- To clean up the generated files, you can run the command
> make clean
NOTE: if you do NOT want to use the Makefile, then compile in following 4 steps:
-
pdflatex thesis.tex
-
bibtex thesis
-
pdflatex thesis.tex
-
pdflatex thesis.tex
-
vim/neovim, definitely can speed up the writing process by autocomplete, snippet, etc. plugins
a. Install NeoVim and Plugins with vim-plug
c. Intelligent autocompletion Coc
d. Semantic completion support: tabnine
e. Awesome vim plugins for writers
g. To speed up the wirting if there are lots of mathematics: take notes in mathematics lectures using LaTeX and Vim
-
Emacs. Although I used neovim to finish my thesis, one colleague and friend of me seems used Emacs to write his thesis. I guess some one knows about the Editor war, so I also put Emacs here.;)