Unofficial LaTeX class for PhD dissertations (and licentiate theses) at Linnaeus University, Sweden
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

243 lines
10 KiB

%\documentclass[showframe]{lnudissertation} % Display the printable area frames --- very useful when typesetting tables and figures
%\usepackage{graphicx} % graphicx already loaded by the class
%% Pay attention to fontenc, inputenc, and babel
%% Smarter management of references (e.g., to fix references like '[300, 15, 81, 1]')
%% subfigure is deprecated, and subfig has issues with hyperref
%% booktabs are used for professionally looking tables:
%% Used for sideways floats, which are probably necessary for this template, and rotation of custom stamps (see below)
%% Used for custom stamps (see below)
%% Font setup below; the order of loading and substituting the fonts is rather specific here
%% STEP 1 (preloading the sans serif font)
%% Biolinum from the libertine package is used as the sans serif font below:
%%% STEP 2 (optional)
%%% KK: libertine and substitutefonts are used to include several words with Cyrillic fonts in the acknowledgments (should work for Greek, too),
%%% so if you don't need that, you could remove them (but note that biolinum from the libertine package is used as the sans serif font below)
%% STEP 3 (the main font)
%% New PX (a Palatino clone) is used as the main font set for serif, typewriter, and math fonts:
\linespread{1.05} % Give Palatino more leading (space between lines)
%% Other viable options for the main font set (supporting math mode) are, for example:
%% Charter BT
%% Libertinus Serif
%% EB Garamond
%%% STEP 4 (optional)
%% See the note about substitutefonts above
%%% KK: Since I had to use a different font for Cyrillic, it looks wider, hence the usage of scalebox to squeeze it horizontally
%% STEP 5 (replacing the sans serif font)
%% biolinum will be used as the sans serif font in those few places where it is required
%% note: the libertine package is required for this!
%% STEP 6
%% Microtype provides a number of adjustments for typesetting automatically, but if it's problematic for any reason, disable it
%% End of font setup
%% KK: A funny command for a DRAFT stamp for first pages
%% Make sure to adjust the box size and position for textpos if page geometry or fonts are modified
\begin{textblock*}{50mm}(100mm,25mm)% % 100mm,25mm
%% KK: A note for the first pages which are useful while working on the draft,
%% but should not be included in the camera-ready version for LUD Series since the publisher will produce their own
%% Make sure to adjust the box size and position for textpos if page geometry or fonts are modified
\newcommand{\overlaypagenote}[1][This page will be replaced by the publisher (for the books in LUD Series)]{%
%% Several useful (or not so useful) commands
\newcommand{\todo}[1]{\noindent\fcolorbox[rgb]{0.9,0,0}{1,1,0.8}{\parbox{0.97\columnwidth}{TODO: #1}}\newline}
%% Additional hyphenation and word breaking settings below, if necessary:
%% It is recommended to start working in sloppy mode, and once the draft is complete, switch either to fussy or custom settings
%% and go over the text to avoid really wide inter-word gaps as well as overflows:
%% kantlipsum is used purely to produce placeholder paragraphs with the \kant command for this example
%% Remove for actual documents
%% In case source code listings are used, uncomment the following:
%% If there are some issues with some section marks in the headers at the first pages of the respective sections,
%% see
%% Setup the hyperlinks behavior + the metadata for the produced PDF file
hidelinks=true, % Hide the boxes around hyperlinks
Title={Linn{\ae}us University Dissertation Example (LUD Series)},
Author={John Doe},
Subject={PhD Dissertation},
Keywords={keyword1; keyword2},
%------------------------HERE STARTS THE PRINTING --------------------------------
%% Don't be surprised by *back*matter here, it is done to avoid page numbering, etc.
%% As of February 2019, LNU Press actually produce their own cover page + halftitle page + title page + colophon (edition notice) page for the books published as part of the Linnaeus University Dissertation Series (
%% They also produce the abstract page and even print it as a separate leaflet ('spikblad') to be inserted in the book
%% Therefore, while the front matter page defined below might be useful while working on the thesis, it will not really be included in the final camera-ready version; several front matter pages would be necessary for the dissertations published outside of LUD Series, though (
%% Traditionally, the halftitle page should get numbered as Roman 'i' (
%% For the camera-ready version produced by LNU Press for LUD Series, the order seems to be the following (based on dissertations printed in December 2018):
%% p. i: halftitle (a blank page with the title of the thesis)
%% p. iii: title page (series number, title, author, publisher)
%% p. iv: colophon (edition notice, ISBN, publisher, printer)
%% p. v: abstract page produced by LNU Press (includes a bibliographical reference)
%% p. vii: here starts the content provided by the author (dedication in p. vii, author-produced abstract in p. ix, acknowledgments, and so on)
%% Start the ToC and add the corresponding lists
\renewcommand\contentsname{Table of Contents}
%% To squeeze one more line of contents in the ToC page, if neccessary, modify the length as below:
%% With regard to figure and table sizes, the following could be used (figbox simply provides a gray frame):
%% wide figure: \figbox{\includegraphics[width=0.975\linewidth]{images/zzz.pdf}}
%% narrow figure: \figbox{\includegraphics[width=0.66\linewidth]{images/zzz.pdf}} (well, might be different than 0.66 depending on the context)
%% sideways figure: \begin{sidewaysfigure} ... \figbox{\includegraphics[width=0.985\linewidth]{images/zzz.pdf}} (make sure to check the margins with geometry package option 'showframe' !)
%% subfigures: \begin{subfigure}{\linewidth} ... \figbox{\includegraphics[width=0.975\linewidth]{images/zzz.pdf}} (make sure configure space between subfigures and captions properly)
%% tables: if required, \begin{table}[t] ... \begin{minipage}{0.975\textwidth} ... \begin{tabular}{lll}
%% Also, note that percent signs at the end of some commands/lines might be important to avoid extra space
%% The list of listings is not tested!!
%% Add the listings package in case it is needed, too
% Add the list of publications
%---------------------HERE STARTS THE THESIS CONTENT-------------------------
%% Input chapters here
%% ...
%---------------------HERE STARTS THE APPENDIX -----------------------------------