Add files via upload

master v1.0.1
Kostiantyn Kucher 6 years ago committed by GitHub
parent 2703748418
commit aa2a634b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      README.pdf
  2. 71
      README.tex
  3. 16
      abstract.tex
  4. 14
      acknowledgments.tex
  5. 17
      background.tex
  6. 11
      conclusions.tex
  7. 10
      dedication.tex
  8. 41
      dissertation-example-lud.bbl
  9. BIN
      dissertation-example-lud.pdf
  10. 243
      dissertation-example-lud.tex
  11. 41
      dissertation-example-notlud.bbl
  12. BIN
      dissertation-example-notlud.pdf
  13. 240
      dissertation-example-notlud.tex
  14. 66
      example-bibliography.bib
  15. 29
      front-matter-lud.tex
  16. 60
      front-matter-notlud.tex
  17. BIN
      images/lnu.pdf
  18. 237
      introduction.tex
  19. 327
      lnudissertation.cls
  20. 43
      publications.tex
  21. 10
      related-work.tex

Binary file not shown.

@ -0,0 +1,71 @@
\documentclass[10pt,a4paper]{article}
\usepackage[a4paper, total={170mm,257mm}]{geometry}
\usepackage{hyperref}
\title{Unofficial \LaTeX\ class for PhD dissertations\\(and licentiate theses) at Linn{\ae}us University, Sweden\\v.1.0.1}
\author{Kostiantyn Kucher\\
\texttt{kostiantyn.kucher@\{lnu.se,gmail.com\}}
}
\hypersetup{
hidelinks=true, % Hide the boxes around hyperlinks
pdfinfo={
Title={Unofficial LaTeX class for PhD dissertations (and licentiate theses) at Linnaeus University, Sweden, v.1.0.1},
Author={Kostiantyn Kucher},
Subject={Dissertation Template Documentation},
}
}
\begin{document}
\maketitle
\section{Introduction}
This is a short documentation file for \texttt{lnudissertation}, a LaTeX template that I used for my PhD dissertation at the Department of Computer Science and Media Technology, LNU in 2019.
I started with the old \texttt{vxulicentiate} class developed by Robert Nyqvist in 2007; I also used some features from the other template (\texttt{actawex} / \texttt{awmonograph.clo}) developed by him and modified over the years by multiple PhD students at VXU/LNU; and then I customized the resulting template further.
To the best of my knowledge, there is still no official (or even recommended) LaTeX template for dissertations and licentiate theses at LNU as of March 2019, therefore, I hope my updated template is useful for some PhD students in the future.
I would argue that my template is a bit simpler, better documented with regard to the current publishing process at LNU (as of 2019), and hence easier for future users to start working with and customize.
Feel free to distribute, update, and create your own derivative templates based on this one.
\section{Limitations}
Before explaining the usage of the template, I should address its limitations:
\begin{itemize}
\item The template is designed to be used with \texttt{pdflatex}; other implementations\footnote{\url{https://www.overleaf.com/learn/latex/Articles/The_TeX_family_tree:_LaTeX,_pdfTeX,_XeTeX,_LuaTeX_and_ConTeXt}} have not been tested at all.
\item I was only interested in producing a \emph{monograph} dissertation; I think this template could be used for \emph{compilations}, too, but it does not currently support features such as title pages for individual papers (these could be implemented manually, or perhaps by using the \texttt{part} commands which I have not tested or used myself), individual bibliographies for papers/chapters, etc.
\item It is possible to use this template for the dissertations published outside of LUD Series (see below), but it does not really support generating front and back cover pages from LaTeX. The original \texttt{vxulicentiate} class has some commands for that, although I doubt that it would support generating the spine cover. In any case, I would recommend using external software for designing such cover pages instead.
\item Finally, there are no guarantees provided about this template, and the code is far from perfect.
\end{itemize}
\section{Contents and Usage}
The main file of this template is \texttt{lnudissertation.cls}, and it comes with a set of example files that cover two main scenarios:
\begin{itemize}
\item \texttt{dissertation-example-lud.tex} + \texttt{front-matter-lud.tex}: this is most likely the example that most PhD students would want to use.
It provides the code for a dissertation to be published as part of Linnaeus University Dissertation Series\footnote{\url{https://lnu.se/en/library/research-support/publish-with-lnu-press/checklistLUD/}}.
LNU Press takes care of cover pages as well as the front matter pages (half-title, title, etc.), and the author should basically only provide the body matter.
\texttt{lnudissertation} still creates a temporary title page, but it is just for convenience while working on the dissertation.
\item \texttt{dissertation-example-notlud.tex} + \texttt{front-matter-notlud.tex}: it is also possible to publish the dissertation outside of LUD Series\footnote{\url{https://lnu.se/en/library/research-support/publish-with-lnu-press/checklist-notLUD/}} with an external publisher.
In this case, the author must take care of the front matter pages (supported by \texttt{lnudissertation}) and even design the cover pages (not supported by this template).
\end{itemize}
\noindent In both cases, the examples include configuration of fonts, definition of some useful (and not so useful) commands, and configuration of metadata for PDF.
The content for the front matter and then the main body matter is then loaded from the corresponding files, and the bibliography is generated.
Examples of including figures, tables, and references of various types are provided, too.
\section{Tips and Tricks}
\begin{itemize}
\item It can be very helpful to use the \texttt{showframe} option of the template class (which is, in turn, passed to the \texttt{geometry} package) to see the frame of the text body area as well as the borders of header, footer, and margin notes areas.
Make sure to use this when creating large rotated figures or tables with long captions.
\item When printing my dissertation with LNU Press in March 2019, the printers (who, I believe, used Adobe InDesign for typesetting) encountered some issues with several vector figures that I had exported from LibreOffice and PowerPoint as PDF files.
The issues were related to visual artefacts in several areas where shadows, gradients, and transparency effects were present in the figures.
One option to fix such issues in this case is to create a copy of (several pages of) the dissertation with \emph{rasterized} images, e.g., by either exporting PNG images from the respective software and processing it with image processing applications to remove transparency, or converting PDF figures to PNG while removing transparency.
In any case, the lesson here is to check the figures and tables very carefully in the print proof copy.
\end{itemize}
\begin{center}
\textbf{Good luck with your dissertation/thesis!}%
\end{center}
\end{document}

@ -0,0 +1,16 @@
\begin{abstract}
% Abstract here
% 300--350 words (https://lnu.se/en/library/forskningsstod/publish-with-lnu-press/checklistLUD/)
\kant[1-3]
%% With the null, we avoid the space when starting a new paragraph, if necessary
%\null
\bigskip
\vfill
\noindent
\textbf{Keywords:}
keyword1, keyword2
\end{abstract}
\cleardoublepage

@ -0,0 +1,14 @@
\begin{acknowledgments}
\kant[4-5]
%% With the null, we avoid the space when starting a new paragraph, if necessary
%\null
%\bigskip
%\vfill
%\noindent V\"axj\"o, Sweden\\
%\noindent 2019\\
%\bigskip
\end{acknowledgments}
\cleardoublepage

@ -0,0 +1,17 @@
\chapter{Background}\label{ch:background}
\chaptertoc
\noindent \kant[16]
\section{Underlying Problems in Another Disciplines}\label{sec:background-underlying}
\kant[17-20]
\begin{figure}[t!]
\centering
%\figbox{\includegraphics[width=0.975\linewidth]{images/zzz.pdf}}%
\figbox{\rule{.1pt}{2cm} \rule[1cm]{2cm}{.1pt} \rule{.1pt}{2cm}}
\caption[Note the gap above]{Note the gap between the chapters in the lists of figures and tables.}%
\label{fig:background-example}%
\end{figure}

@ -0,0 +1,11 @@
\chapter[Conclusions and Future Work]{Conclusions and Future Work}\label{ch:conclusions}
\chaptertoc
\noindent \kant[27]
\section{Research Findings}\label{sec:conclusions-findings}
First of all, \ldots

@ -0,0 +1,10 @@
\null
\vfill
\noindent
\begin{minipage}{\textwidth}%
\raggedleft%
\emph{Dedicated to\ldots}%
\end{minipage}%
\vfill
\cleardoublepage

@ -0,0 +1,41 @@
\begin{thebibliography}{1}
\bibitem{Card1999}
Stuart~K. Card, Jock~D. Mackinlay, and Ben Shneiderman.
\newblock {\em Readings in Information Visualization: Using Vision to Think}.
\newblock Morgan Kaufmann, 1999.
\newblock URL: \url{https://dl.acm.org/citation.cfm?id=300679}.
\bibitem{ColorBrewer}
{ColorBrewer} 2.0 --- {C}olor advice for cartography, 2009.
\newblock Accessed February 4, 2019.
\newblock URL: \url{http://colorbrewer2.org/}.
\bibitem{Fekete2008}
Jean-Daniel Fekete, Jarke~J. van Wijk, John~T. Stasko, and Chris North.
\newblock The value of information visualization.
\newblock In Andreas Kerren, John~T. Stasko, Jean-Daniel Fekete, and Chris
North, editors, {\em Information Visualization: Human-Centered Issues and
Perspectives}, volume 4950 of {\em Lecture Notes in Computer Science}, pages
1--18. Springer Berlin Heidelberg, 2008.
\newblock \href {http://dx.doi.org/10.1007/978-3-540-70956-5_1}
{\path{doi:10.1007/978-3-540-70956-5_1}}.
\bibitem{Shneiderman1996}
Ben Shneiderman.
\newblock The eyes have it: A task by data type taxonomy for information
visualizations.
\newblock In {\em Proceedings of the IEEE Symposium on Visual Languages},
VL~'96, pages 336--343. IEEE, 1996.
\newblock \href {http://dx.doi.org/10.1109/VL.1996.545307}
{\path{doi:10.1109/VL.1996.545307}}.
\bibitem{VanWijk2006a}
Jarke~J. {Van Wijk}.
\newblock Bridging the gaps.
\newblock {\em IEEE Computer Graphics and Applications}, 26(6):6--9, November
2006.
\newblock \href {http://dx.doi.org/10.1109/MCG.2006.120}
{\path{doi:10.1109/MCG.2006.120}}.
\end{thebibliography}

Binary file not shown.

@ -0,0 +1,243 @@
\documentclass{lnudissertation}
%\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
%\RequirePackage[]{hyphsubst}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[swedish,english]{babel}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{enumerate}
%% Smarter management of references (e.g., to fix references like '[300, 15, 81, 1]')
\usepackage{cite}
%% subfigure is deprecated, and subfig has issues with hyperref
\usepackage{subcaption}
%% booktabs are used for professionally looking tables:
%% https://www.inf.ethz.ch/personal/markusp/teaching/guides/guide-tables.pdf
\usepackage{booktabs}
%% Used for sideways floats, which are probably necessary for this template, and rotation of custom stamps (see below)
\usepackage{rotating}
%% Used for custom stamps (see below)
\usepackage[absolute,overlay]{textpos}
\usepackage{pbox}
%% 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: http://www.tug.dk/FontCatalogue/biolinum/
\usepackage{libertine}
%%% 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)
%\usepackage[scaled=.984]{libertinegc}
%\usepackage{substitutefont}
%% STEP 3 (the main font)
%% New PX (a Palatino clone) is used as the main font set for serif, typewriter, and math fonts: http://www.tug.dk/FontCatalogue/newpx/
\usepackage[largesc,looser,scaled=.92]{newpxtext}
\usepackage[scaled=.92]{newpxmath}
\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 http://www.tug.dk/FontCatalogue/charterbt/
%% Libertinus Serif http://www.tug.dk/FontCatalogue/libertinusserif/
%% EB Garamond http://www.tug.dk/FontCatalogue/ebgaramond/
%%% STEP 4 (optional)
%% See the note about substitutefonts above
%\substitutefont{T2A}{\rmdefault}{LinuxLibertineT-TLF}
%%% KK: Since I had to use a different font for Cyrillic, it looks wider, hence the usage of scalebox to squeeze it horizontally
%\newcommand{\cyrillicbox}[1]{\scalebox{0.88}[1.0]{\textcyrillic{#1}}}
%% 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!
\renewcommand{\sfdefault}{LinuxBiolinumT-TLF}
%% STEP 6
%% Microtype provides a number of adjustments for typesetting automatically, but if it's problematic for any reason, disable it
\usepackage{microtype}
%% 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
\newcommand{\draftstamp}[1][DRAFT]{%
\begin{textblock*}{50mm}(100mm,25mm)% % 100mm,25mm
\setlength{\fboxsep}{2mm}%
\rotatebox{15}{%
\fbox{\Large%
\textbf{#1}%
}%
}%
\end{textblock*}%
}
%% 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)]{%
\begin{textblock*}{165mm}(0mm,230mm)%
\centering%
\small%
\emph{#1}%
\end{textblock*}%
}
%% Several useful (or not so useful) commands
\newcommand{\cit}[1]{``#1''}
\newcommand{\ignore}[1]{}
\newcommand{\todo}[1]{\noindent\fcolorbox[rgb]{0.9,0,0}{1,1,0.8}{\parbox{0.97\columnwidth}{TODO: #1}}\newline}
\newcommand{\figbox}[1]{%
{\colorlet{currentcolor}{.}%
{\color{lightgray}%
{\setlength{\fboxsep}{1pt}
\fbox{\color{currentcolor}#1}}}}%
}
%% Additional hyphenation and word breaking settings below, if necessary:
%\hyphenation{}
%% 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:
%% https://tex.stackexchange.com/q/241343
%% http://open-juve.blogspot.com/2015/09/latex-sloppy-and-fussy-line-breaking.html
%% https://latex.org/forum/viewtopic.php?t=21170
\sloppy
%\fussy
%% kantlipsum is used purely to produce placeholder paragraphs with the \kant command for this example
%% Remove for actual documents
\usepackage{kantlipsum}
%% In case source code listings are used, uncomment the following:
%\usepackage{listings}
%% If there are some issues with some section marks in the headers at the first pages of the respective sections,
%% see https://tex.stackexchange.com/a/94901
%% Setup the hyperlinks behavior + the metadata for the produced PDF file
\hypersetup{
hidelinks=true, % Hide the boxes around hyperlinks
pdfinfo={
Title={Linn{\ae}us University Dissertation Example (LUD Series)},
Author={John Doe},
Subject={PhD Dissertation},
Keywords={keyword1; keyword2},
}
}
%----------------------------------------------------------------------------------------------------
%------------------------HERE STARTS THE PRINTING --------------------------------
%----------------------------------------------------------------------------------------------------
\begin{document}
%% Don't be surprised by *back*matter here, it is done to avoid page numbering, etc.
\backmatter
%% 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 (https://lnu.se/en/library/research-support/publish-with-lnu-press/checklistLUD/)
%% 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 (https://lnu.se/en/library/research-support/publish-with-lnu-press/checklist-notLUD/)
%% Traditionally, the halftitle page should get numbered as Roman 'i' (https://en.wikipedia.org/wiki/Book_design)
%% 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)
\input{front-matter-lud}
\input{dedication}
\frontmatter
\input{abstract}
\input{acknowledgments}
%% Start the ToC and add the corresponding lists
\renewcommand\contentsname{Table of Contents}
\setcounter{tocdepth}{1}
\phantomsection
\addcontentsline{toc}{chapter}{\contentsname{}}
%% To squeeze one more line of contents in the ToC page, if neccessary, modify the length as below:
%\addtolength{\cftaftertoctitleskip}{-11pt}
\tableofcontents
\cleardoublepage
%% 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
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename{}}
\listoffigures
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\listtablename{}}
\listoftables
\cleardoublepage
%% The list of listings is not tested!!
%% Add the listings package in case it is needed, too
%\lstlistoflistings
% Add the list of publications
\input{publications}
\cleardoublepage
%----------------------------------------------------------------------------------------------------
%---------------------HERE STARTS THE THESIS CONTENT-------------------------
%----------------------------------------------------------------------------------------------------
\mainmatter
%% Input chapters here
\input{introduction}
\cleardoublepage
\input{background}
\cleardoublepage
\input{related-work}
\cleardoublepage
%% ...
\input{conclusions}
\cleardoublepage
%----------------------------------------------------------------------------------------------------
%---------------------HERE STARTS THE APPENDIX -----------------------------------
%----------------------------------------------------------------------------------------------------
%\addcontentsline{toc}{chapter}{Appendix}
%\appendix
%\input{appendix01.tex}
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plainurl}
{
\footnotesize
%\bibliography{bibliography-own,bibliography-main,bibliography-additional}
\bibliography{example-bibliography}
}
\backmatter
\cleardoublepage
\end{document}

@ -0,0 +1,41 @@
\begin{thebibliography}{1}
\bibitem{Card1999}
Stuart~K. Card, Jock~D. Mackinlay, and Ben Shneiderman.
\newblock {\em Readings in Information Visualization: Using Vision to Think}.
\newblock Morgan Kaufmann, 1999.
\newblock URL: \url{https://dl.acm.org/citation.cfm?id=300679}.
\bibitem{ColorBrewer}
{ColorBrewer} 2.0 --- {C}olor advice for cartography, 2009.
\newblock Accessed February 4, 2019.
\newblock URL: \url{http://colorbrewer2.org/}.
\bibitem{Fekete2008}
Jean-Daniel Fekete, Jarke~J. van Wijk, John~T. Stasko, and Chris North.
\newblock The value of information visualization.
\newblock In Andreas Kerren, John~T. Stasko, Jean-Daniel Fekete, and Chris
North, editors, {\em Information Visualization: Human-Centered Issues and
Perspectives}, volume 4950 of {\em Lecture Notes in Computer Science}, pages
1--18. Springer Berlin Heidelberg, 2008.
\newblock \href {http://dx.doi.org/10.1007/978-3-540-70956-5_1}
{\path{doi:10.1007/978-3-540-70956-5_1}}.
\bibitem{Shneiderman1996}
Ben Shneiderman.
\newblock The eyes have it: A task by data type taxonomy for information
visualizations.
\newblock In {\em Proceedings of the IEEE Symposium on Visual Languages},
VL~'96, pages 336--343. IEEE, 1996.
\newblock \href {http://dx.doi.org/10.1109/VL.1996.545307}
{\path{doi:10.1109/VL.1996.545307}}.
\bibitem{VanWijk2006a}
Jarke~J. {Van Wijk}.
\newblock Bridging the gaps.
\newblock {\em IEEE Computer Graphics and Applications}, 26(6):6--9, November
2006.
\newblock \href {http://dx.doi.org/10.1109/MCG.2006.120}
{\path{doi:10.1109/MCG.2006.120}}.
\end{thebibliography}

Binary file not shown.

@ -0,0 +1,240 @@
\documentclass[notlud]{lnudissertation}
%\documentclass[notlud,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
%\RequirePackage[]{hyphsubst}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[swedish,english]{babel}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{enumerate}
%% Smarter management of references (e.g., to fix references like '[300, 15, 81, 1]')
\usepackage{cite}
%% subfigure is deprecated, and subfig has issues with hyperref
\usepackage{subcaption}
%% booktabs are used for professionally looking tables:
%% https://www.inf.ethz.ch/personal/markusp/teaching/guides/guide-tables.pdf
\usepackage{booktabs}
%% Used for sideways floats, which are probably necessary for this template, and rotation of custom stamps (see below)
\usepackage{rotating}
%% Used for custom stamps (see below)
\usepackage[absolute,overlay]{textpos}
\usepackage{pbox}
%% 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: http://www.tug.dk/FontCatalogue/biolinum/
\usepackage{libertine}
%%% 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)
%\usepackage[scaled=.984]{libertinegc}
%\usepackage{substitutefont}
%% STEP 3 (the main font)
%% New PX (a Palatino clone) is used as the main font set for serif, typewriter, and math fonts: http://www.tug.dk/FontCatalogue/newpx/
\usepackage[largesc,looser,scaled=.92]{newpxtext}
\usepackage[scaled=.92]{newpxmath}
\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 http://www.tug.dk/FontCatalogue/charterbt/
%% Libertinus Serif http://www.tug.dk/FontCatalogue/libertinusserif/
%% EB Garamond http://www.tug.dk/FontCatalogue/ebgaramond/
%%% STEP 4 (optional)
%% See the note about substitutefonts above
%\substitutefont{T2A}{\rmdefault}{LinuxLibertineT-TLF}
%%% KK: Since I had to use a different font for Cyrillic, it looks wider, hence the usage of scalebox to squeeze it horizontally
%\newcommand{\cyrillicbox}[1]{\scalebox{0.88}[1.0]{\textcyrillic{#1}}}
%% 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!
\renewcommand{\sfdefault}{LinuxBiolinumT-TLF}
%% STEP 6
%% Microtype provides a number of adjustments for typesetting automatically, but if it's problematic for any reason, disable it
\usepackage{microtype}
%% 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
\newcommand{\draftstamp}[1][DRAFT]{%
\begin{textblock*}{50mm}(100mm,25mm)% % 100mm,25mm
\setlength{\fboxsep}{2mm}%
\rotatebox{15}{%
\fbox{\Large%
\textbf{#1}%
}%
}%
\end{textblock*}%
}
%% Several useful (or not so useful) commands
\newcommand{\cit}[1]{``#1''}
\newcommand{\ignore}[1]{}
\newcommand{\todo}[1]{\noindent\fcolorbox[rgb]{0.9,0,0}{1,1,0.8}{\parbox{0.97\columnwidth}{TODO: #1}}\newline}
\newcommand{\figbox}[1]{%
{\colorlet{currentcolor}{.}%
{\color{lightgray}%
{\setlength{\fboxsep}{1pt}
\fbox{\color{currentcolor}#1}}}}%
}
%% Additional hyphenation and word breaking settings below, if necessary:
%\hyphenation{}
%% 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:
%% https://tex.stackexchange.com/q/241343
%% http://open-juve.blogspot.com/2015/09/latex-sloppy-and-fussy-line-breaking.html
%% https://latex.org/forum/viewtopic.php?t=21170
\sloppy
%\fussy
%% kantlipsum is used purely to produce placeholder paragraphs with the \kant command for this example
%% Remove for actual documents
\usepackage{kantlipsum}
%% In case source code listings are used, uncomment the following:
%\usepackage{listings}
%% If there are some issues with some section marks in the headers at the first pages of the respective sections,
%% see https://tex.stackexchange.com/a/94901
%% Setup the hyperlinks behavior + the metadata for the produced PDF file
\hypersetup{
hidelinks=true, % Hide the boxes around hyperlinks
pdfinfo={
Title={Linn{\ae}us University Dissertation Example (non-LUD Series)},
Author={John Doe},
Subject={PhD Dissertation},
Keywords={keyword1; keyword2},
}
}
%----------------------------------------------------------------------------------------------------
%------------------------HERE STARTS THE PRINTING --------------------------------
%----------------------------------------------------------------------------------------------------
\begin{document}
%% Don't be surprised by *back*matter here, it is done to avoid page numbering, etc.
\backmatter
%% TODO: if necessary, generate a front cover page directly from Latex here
%% For relatively complex designs, it is probably a better idea to create cover pages *and the spine* in some external application
%% As of February 2019, LNU Press produce a separate leaflet ('spikblad') with a bibliographical reference and abstract to be inserted in the book, even for the books outside of LUD series (https://lnu.se/en/library/research-support/publish-with-lnu-press/checklist-notLUD/)
%% The front matter pages must be provided by the author in this case!
%% Traditionally, the halftitle page should get numbered as Roman 'i' (https://en.wikipedia.org/wiki/Book_design)
%% The order should be the following (you might need to modify this, if necessary...):
%% 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: dedication
%% p. vii: abstract
%% p. ix: acknowledgments
%% p. xi: table of contents, and so on
\input{front-matter-notlud}
\input{dedication}
\frontmatter
\input{abstract}
\input{acknowledgments}
%% Start the ToC and add the corresponding lists
\renewcommand\contentsname{Table of Contents}
\setcounter{tocdepth}{1}
\phantomsection
\addcontentsline{toc}{chapter}{\contentsname{}}
%% To squeeze one more line of contents in the ToC page, if neccessary, modify the length as below:
%\addtolength{\cftaftertoctitleskip}{-11pt}
\tableofcontents
\cleardoublepage
%% 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
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename{}}
\listoffigures
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\listtablename{}}
\listoftables
\cleardoublepage
%% The list of listings is not tested!!
%% Add the listings package in case it is needed, too
%\lstlistoflistings
% Add the list of publications
\input{publications}
\cleardoublepage
%----------------------------------------------------------------------------------------------------
%---------------------HERE STARTS THE THESIS CONTENT-------------------------
%----------------------------------------------------------------------------------------------------
\mainmatter
%% Input chapters here
\input{introduction}
\cleardoublepage
\input{background}
\cleardoublepage
\input{related-work}
\cleardoublepage
%% ...
\input{conclusions}
\cleardoublepage
%----------------------------------------------------------------------------------------------------
%---------------------HERE STARTS THE APPENDIX -----------------------------------
%----------------------------------------------------------------------------------------------------
%\addcontentsline{toc}{chapter}{Appendix}
%\appendix
%\input{appendix01.tex}
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plainurl}
{
\footnotesize
%\bibliography{bibliography-own,bibliography-main,bibliography-additional}
\bibliography{example-bibliography}
}
\backmatter
\cleardoublepage
%% TODO: if necessary, generate a back cover page directly from Latex here
\end{document}

@ -0,0 +1,66 @@
@COMMENT {--- Several examples of various BiBTeX entry types ---}
@COMMENT {--- Remember: NEVER trust the automatically generated entries from the publishers, e.g., IEEE --- always double check! ---}
@COMMENT {--- See https://www.ece.ucdavis.edu/~jowens/biberrors.html ---}
@COMMENT {--- Also, double check the capitalization of titles in the resulting bibliography, especially for titles with compound and complex sentences involving separators other than a colon! ---}
@book{Card1999,
title={Readings in Information Visualization: Using Vision to Think},
author={Card, Stuart K. and Mackinlay, Jock D. and Shneiderman, Ben},
isbn={9781558605336},
year={1999},
publisher={Morgan Kaufmann},
url = {https://dl.acm.org/citation.cfm?id=300679},
}
@Incollection{Fekete2008,
author={Fekete, Jean-Daniel and van Wijk, Jarke J. and Stasko, John T. and North, Chris},
editor={Kerren, Andreas and Stasko, John T. and Fekete, Jean-Daniel and North, Chris},
title={The Value of Information Visualization},
booktitle={Information Visualization: Human-Centered Issues and Perspectives},
series={Lecture Notes in Computer Science},
volume={4950},
year={2008},
publisher={Springer Berlin Heidelberg},
//address={Berlin, Heidelberg},
pages={1--18},
isbn={978-3-540-70956-5},
doi={10.1007/978-3-540-70956-5_1},
//url={http://dx.doi.org/10.1007/978-3-540-70956-5_1},
}
@ARTICLE{VanWijk2006a,
author={{Van Wijk}, Jarke J.},
journal={IEEE Computer Graphics and Applications},
title={Bridging the Gaps},
year={2006},
volume={26},
number={6},
pages={6--9},
keywords={data visualisation;user centred design;user interfaces;data visualization;user centered design;user interface;Visualization;Usability;User centered design;Roads;Scalability;Bridges;Process design;User interfaces;Books;Collaboration;visualization;scientific visualization;information visualization;visual analytics;cooperation;user-centered design},
doi={10.1109/MCG.2006.120},
ISSN={0272-1716},
month=nov,
}
@INPROCEEDINGS{Shneiderman1996,
author={Shneiderman, Ben},
booktitle={Proceedings of the IEEE Symposium on Visual Languages},
series={VL~'96},
location={Boulder, CO, USA},
title={The Eyes Have It: A Task by Data Type Taxonomy for Information Visualizations},
year={1996},
pages={336--343},
keywords={data visualisation;graphical user interfaces;visual programming;advanced graphical user interface design;data type taxonomy;information visualizations;multi dimensional data;network data;visual information seeking;Art;Data mining;Data visualization;Displays;Eyes;Information filtering;Information filters;Multimedia databases;Taxonomy;Visual databases},
doi={10.1109/VL.1996.545307},
ISSN={1049-2615},
publisher={IEEE},
//month={},
}
@misc{ColorBrewer,
key = {ColorBrewer},
title = {{ColorBrewer} 2.0 --- {C}olor Advice for Cartography},
year = {2009},
url = {http://colorbrewer2.org/},
note = {Accessed February 4, 2019},
}

@ -0,0 +1,29 @@
%% p. iii: title page (should be actually provided by LNU Press instead in the camera-ready version for LUD Series)
%% This one is simply for convenience when working on the dissertation
\begin{center}
%% Upper part of the page
\null\vspace{4.5cm}
\normalsize John Doe\\[1.5cm]
{ \Large \bfseries Linn{\ae}us University Dissertation Example\\[0.3cm](LUD Series)}%\\
%\large
\\[2cm]
Doctoral Dissertation\\[0.2cm]
Subject/Discipline\\[0.4cm]
20XX
\vfill
\draftstamp
%\draftstamp[PREPRINT]
%% Bottom of the page
%% The LNU logo image is copied from
%% https://medarbetare.lnu.se/medarbetare/stod-och-service/kommunikation-och-marknadsforing/designmanual/grundelement/logotyp/logotyp--symbol/
\includegraphics[scale=0.2]{images/lnu.pdf}%
\end{center}
\overlaypagenote
\cleardoublepage

@ -0,0 +1,60 @@
%% p. i: half-title
\begin{center}
\null\vspace{4.5cm}
{ \Large \bfseries Linn{\ae}us University Dissertation Example\\[0.3cm](non-LUD Series)}%\\
\end{center}
\draftstamp
%\draftstamp[PREPRINT]
\cleardoublepage
%% p. iii: title page
\begin{center}
%% Upper part of the page
\null\vspace{4.5cm}
\normalsize John Doe\\[1.5cm]
{ \Large \bfseries Linn{\ae}us University Dissertation Example\\[0.3cm](non-LUD Series)}%\\
%\large
\\[2cm]
Doctoral Dissertation\\[0.2cm]
Subject/Discipline\\[0.4cm]
20XX
\vfill
\draftstamp
%\draftstamp[PREPRINT]
%% Bottom of the page
%% The LNU logo image is copied from
%% https://medarbetare.lnu.se/medarbetare/stod-och-service/kommunikation-och-marknadsforing/designmanual/grundelement/logotyp/logotyp--symbol/
\includegraphics[scale=0.2]{images/lnu.pdf}%
\end{center}
%% Note: the following page should appear in verso, therefore don't use clear*double*page below
\clearpage
%% p. iv: colophon / edition notice
\null
\vfill
\begin{flushleft}
{\small PhD Dissertation Presented in Fulfillment of the Requirements for the Degree of Doctor of Philosophy in ??? at Linnaeus University, Month Day, 20XX.\\[0.6cm]
\textbf{Linn{\ae}us University Dissertation Example (non-LUD Series)}
\\[0.6cm]
John Doe\\[0.6cm]
Linnaeus University\\[0.1cm]
Department of ???\\[0.1cm]
SE-351 95 V\"axj\"o, Sweden, 20XX\\[0.1cm]
https://lnu.se/\\[0.6cm]
ISBN: 978-91-?????-??-? (print), 978-91-?????-??-? (pdf)\\[0.1cm]
Published by: ???, 351 95 V\"axj\"o\\[0.1cm]
Printed by: ???, 20XX}
\end{flushleft}
\draftstamp
%\draftstamp[PREPRINT]
\cleardoublepage

Binary file not shown.

@ -0,0 +1,237 @@
\chapter{Introduction}\label{ch:introduction}
\chaptertoc
\noindent \kant[7-8]
Also, use references to entries of several types here:
\begin{itemize}
\item a book~\cite{Card1999};
\item a book chapter with separate authors~\cite{Fekete2008};
\item a journal article~\cite{VanWijk2006a};
\item a conference paper~\cite{Shneiderman1996};
\item a URL link~\cite{ColorBrewer}; and
\item several references~\cite{Shneiderman1996,Card1999,VanWijk2006a,Fekete2008,ColorBrewer} used in arbitrary order~\cite{VanWijk2006a,ColorBrewer} to check if automatic sorting with \cit{cite} works.
\end{itemize}
\noindent Test a footnote here, too.\footnote{A footnote}.
Test the quotation environment with a URL link:
\begin{quotation}
\centering
\url{https://lnu.se/}
\end{quotation}
\noindent Test a quotation environment with a text quote:
\begin{quote}
\emph{\cit{A very smart and deep quote \dots}}
\end{quote}
\noindent Also test another footnote with a URL link.\footnote{\url{https://lnu.se/} (last accessed in February 2019)}
%% The way the section title and mark are defined is to force the correct section mark to appear at the correct page
%% See more details at https://tex.stackexchange.com/a/94901
%% This might not be necessary for all the cases, though
\section[Motivation for Our Problem]{Motivation for Our Research Problem%
\sectionmark{Motivation}%
}\label{sec:intro-motivation}
\sectionmark{Motivation}
\begin{figure}[t!]
\centering
%\figbox{\includegraphics[width=0.975\linewidth]{images/zzz.pdf}}%
\figbox{\rule{.1pt}{2cm} \rule[1cm]{2cm}{.1pt} \rule{.1pt}{2cm}}
\caption[Short caption for example figure]{Long figure caption.
Explain the contents of the figure here properly.}%
\label{fig:introduction-example}%
\end{figure}
\kant[9-15]
\begin{sidewaysfigure}
\centering
%% One might have to decrease the size of the sideways figure to fit the page margins
%\figbox{\includegraphics[width=0.93\linewidth]{images/zzz.png}}%
\figbox{\rule{.1pt}{5cm} \rule[2.5cm]{13cm}{.1pt} \rule{.1pt}{5cm}}
%% ... and to shrink space to fit the page margins
%\vspace{-2mm}
\caption[Sideways figure example]{A long caption for the sideways figure here.}%
\label{fig:introduction-example-sideways}%
%\vspace{-2mm}
\end{sidewaysfigure}
\begin{figure}[t!]
%\centering
\begin{subfigure}[t]{0.477\linewidth}
\centering
%\figbox{\includegraphics[width=\linewidth]{images/zzz.png}}%
\figbox{\rule{.1pt}{2cm} \rule[1cm]{2cm}{.1pt} \rule{.1pt}{2cm}}
\caption{}%
\end{subfigure}%
\hspace{3pt}
\begin{subfigure}[t]{0.4754\linewidth}
\centering
%\figbox{\includegraphics[width=\linewidth]{images/zzz.png}}%
\figbox{\rule{.1pt}{2cm} \rule[1cm]{2cm}{.1pt} \rule{.1pt}{2cm}}
\caption{}%
\end{subfigure}%
%\vspace{-2mm}
\caption[Short caption for a figure with subfigures]{A figure with subfigures with long captions.
(a) A dedicated caption could be provided directly in the subfigure code, but a long caption text arguably suits this area here better.
(b) The same applies to the second subfigure.
}%
\label{fig:intro-subfigures}%
\end{figure}
\subsection{Subsection Here}\label{subsec:intro-subsection}
\begin{table}[t!]
\caption[Short caption for a table]{An arbitrary table}%
\label{tab:introduction-table}%
%\renewcommand{\arraystretch}{1.2}
\begin{minipage}{0.975\textwidth}
\centering
\begin{tabular}{lll}
%% The header
\toprule
\parbox{0.26\textwidth}{\centering\textbf{Title}}
&
\parbox{0.32\textwidth}{\centering\textbf{Description}}
&
\parbox{0.33\textwidth}{\centering\textbf{Examples}} \\
\midrule
%% The body
\parbox[c][9mm]{0.26\textwidth}{Foo, bar,\\[-2pt]and baz}
&
\parbox[c]{0.32\textwidth}{ %
\scriptsize
Expression of foo and bar}
&
\parbox[c]{0.33\textwidth}{ %
\vspace{2pt}
\scriptsize
\emph{Example1}; \emph{Example2}
\vspace{2pt}} \\
\parbox[c][9mm]{0.26\textwidth}{Foo, bar,\\[-2pt]and baz}
&
\parbox[c]{0.32\textwidth}{ %
\scriptsize
Expression of foo and bar}
&
\parbox[c]{0.33\textwidth}{ %
\vspace{2pt}
\scriptsize
\emph{Example1}; \emph{Example2}
\vspace{2pt}} \\
%% The footer
\bottomrule
\end{tabular}%
\end{minipage}%
\bigskip
\raggedright
\footnotesize{\emph{Note:} Adjust the column widths appropriately.
And this is the area for long table caption notes, by the way.
}
\end{table}
\kant[28-31]
\begin{sidewaystable}
%\vspace{-4mm}
\caption[Short caption for a complex sideways table]{A complex sideways table consisting of several parts}
\label{tab:introduction-sideways-table}
\centering
\setlength{\tabcolsep}{2pt}
\renewcommand{\arraystretch}{1.2}
\setlength\doublerulesep{2mm}
\footnotesize
\begin{minipage}[t]{0.27\textwidth}
\begin{tabular}[t]{lr}
\toprule
\textbf{Group header} & \textbf{100}\\
\midrule
Foo & 75\\
Bar & 20\\
Baz & 5\\
\addlinespace
\addlinespace
\textbf{Group header} & \textbf{100}\\
\midrule
Foo & 75\\
Bar & 20\\
Baz & 5\\
\addlinespace
\addlinespace
\textbf{Group header} & \textbf{100}\\
\midrule
Foo & 75\\
Bar & 20\\
Baz & 5\\
\bottomrule
\end{tabular}
\end{minipage}
\hspace{1mm}
\begin{minipage}[t]{0.445\textwidth}
\begin{tabular}[t]{lr}
\toprule
\textbf{Group header} & \textbf{100}\\
\midrule
Foooooooooooooooooo & 75\\
Barrrrrrrrrrrrrrrrrrrrrrrrrrr & 20\\
Bazzzzzzzzzzzzzzzzzzz & 5\\
\addlinespace
\addlinespace
\textbf{Group header} & \textbf{100}\\
\midrule
Foooooooooooooooooo & 75\\
Barrrrrrrrrrrrrrrrrrrrrrrrrrr & 20\\
Bazzzzzzzzzzzzzzzzzzz & 5\\
\bottomrule
\end{tabular}
\end{minipage}
\hspace{1mm}
\begin{minipage}[t]{0.22\textwidth}
\begin{tabular}[t]{lr}
\toprule
\textbf{Group header} & \textbf{100}\\
\midrule
Foo & 75\\
Bar & 20\\
Baz & 5\\
\addlinespace
\addlinespace
\textbf{Group header} & \textbf{100}\\
\midrule
Foo & 75\\
Bar & 20\\
Baz & 5\\
\addlinespace
\addlinespace
\textbf{Group header} & \textbf{100}\\
\midrule
Foo & 75\\
Bar & 20\\
Baz & 5\\
\bottomrule
\end{tabular}
\end{minipage}
%\vspace{-5mm}
\bigskip
\raggedright
\footnotesize{\emph{Note:} Adjust the minipage widths appropriately.
}
\end{sidewaystable}
\subsubsection{Subsubsection Here}\label{subsubsec:intro-subsubsection}
\kant[32]
\paragraph{A Named Paragraph}
\kant[33]

@ -0,0 +1,327 @@
%%
%% An *unofficial* LaTeX class for PhD dissertations (and licentiate theses) at Linnaeus University, Sweden
%% Copyright (C) 2019 Kostiantyn Kucher <kostiantyn.kucher@{lnu.se,gmail.com}>
%% This class is provided "AS IS" without any warranties and it may be freely reproduced, distributed, modified, etc.
%%
%% Based on the vxulicentiate class (c) Robert Nyqvist, 2007 and partially the actawex class / awmonograph.clo (c) Robert Nyqvist, 2007 with later modifications by PhD students at VXU/LNU
%% Additionally, uses several images with LNU logos from
%% https://medarbetare.lnu.se/medarbetare/stod-och-service/kommunikation-och-marknadsforing/designmanual/grundelement/
%%
%% Please read the enclosed documentation file and see the examples.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{lnudissertation}[2019/03/05 v1.0.1 Unofficial LNU dissertation class]
\DeclareOption{twocolumn}
{\ClassError{lnudissertation}{Option `twocolumn' is not supported}{}}
\DeclareOption{oneside}
{\ClassError{lnudissertation}{Option `oneside' is not supported}{}}
\DeclareOption{openany}
{\ClassError{lnudissertation}{Option `openany' is not supported}{}}
\DeclareOption{11pt}
{\ClassError{lnudissertation}{Option `11pt' is not supported}{}}
\DeclareOption{12pt}
{\ClassError{lnudissertation}{Option `12pt' is not supported}{}}
\DeclareOption{a4paper}
{\ClassError{lnudissertation}{Option `a4paper' is not supported}}
\DeclareOption{a5paper}
{\ClassError{lnudissertation}{Option `a5paper' is not supported}}
\DeclareOption{b5paper}
{\ClassError{lnudissertation}{Option `b5paper' is not supported}{}}
\DeclareOption{letterpaper}
{\ClassError{lnudissertation}{Option `letterpaper' is not supported}{}}
\DeclareOption{legalpaper}
{\ClassError{lnudissertation}{Option `legalpaper' is not supported}{}}
\DeclareOption{executivepaper}
{\ClassError{lnudissertation}{Option `executivepaper' is not supported}{}}
\DeclareOption{landscape}
{\ClassError{lnudissertation}{Option `landscape' is not supported}{}}
\DeclareOption{notitlepage}
{\ClassError{lnudissertation}{Option `notitlepage' is not supported}{}}
\DeclareOption{titlepage}
{\ClassError{lnudissertation}{Option `titlepage' is not supported}{}}
%% Use the "showframe" option to take a look at the margins
\DeclareOption{showframe}
{\PassOptionsToPackage{showframe}{geometry}}
%% Use the "notlud" option for dissertations published outside of Linnaeus University Dissertation Series (https://lnu.se/en/library/research-support/publish-with-lnu-press/checklist-notLUD/) -> must provide their own complete front matter
\DeclareOption{notlud}
{\newcommand{\isnotludseries}{\relax}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\LoadClass[10pt,onecolumn,openright,twoside]{book}
%% Note: despite the code below, only pdflatex was tested with this class
\RequirePackage{ifpdf}
\ifpdf
\RequirePackage[pdftex]{graphicx,xcolor}
\pdfadjustspacing 1
\AtBeginDocument{%
\DeclareGraphicsExtensions{.mps,.pdf,.jpg,.png}%
\DeclareGraphicsRule{*}{mps}{*}{}%
}
\else
\RequirePackage[dvips]{graphicx,xcolor}
\AtBeginDocument{%
\DeclareGraphicsExtensions{.mps,.eps}%
\DeclareGraphicsRule{*}{eps}{*}{}%
}
\fi
%% Change the page geometry to 165x242 mm, the settings [currently] used by LNU Press
%% See "Checklist for Linnaeus University Dissertations Series" (https://lnu.se/en/library/forskningsstod/publish-with-lnu-press/checklistLUD/) -> "Cheat Sheet"
%% textwidth is also mentioned to be 115 mm there
%% inner and outer horizontal margins are decided automatically based on (paperwidth - textwidth),
%% but the proportion of inner margin is increased (4:5 compared to the default 2:3)
%% bottom margin is decreased a bit
%% (the current textheight is, consequently, around 180 mm)
%% lines are not set explicitly
%% "showframe" option is useful to take a look at the margins, and it will be triggered by the class option, if necessary
\RequirePackage{geometry}
\geometry{%
papersize={165mm,242mm},
textwidth=115mm,
hmarginratio={4:5},
top=25mm,
bottom=29mm,
headheight=12pt,
headsep=15pt,
footskip=30pt
}
%% doi is required to ensure proper handling of DOI links in the bibliography
\RequirePackage{doi}
%% ToC and caption modifications
\RequirePackage{tocloft}
\RequirePackage{etoc}
\RequirePackage[labelfont=bf]{caption}
\RequirePackage{fancyhdr}
\fancyfoot{}
\fancyhead{}
\fancyhead[RO]{\small\nouppercase\rightmark}
\fancyhead[LE]{\small\nouppercase\leftmark}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{\z@}
%\pagestyle{fancy}
%% Used for conditional tests below:
\RequirePackage{etoolbox}
%% Define commands for generating front and back cover pages for non-LUD books, if desired
\ifdefvoid{\isnotludseries}
{\relax}% For LUD books, do nothing
{
\relax
%% TODO
}%
%% Configure various parts of the book template
\renewcommand{\frontmatter}{%
\@mainmatterfalse%
\pagestyle{plain}%
\pagenumbering{roman}%
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
%% KK: according to my calculations, after all pages inserted by the publisher for LUD series,
%% the dedication page will get number 'vii' and the next recto (right-side) page with the abstract should get number 'ix'
%% For non-LUD books, the dedication page should get number 'v' and then the page with the abstract should get number 'vii'
\ifdefvoid{\isnotludseries}
{\setcounter{page}{9}}%
{\setcounter{page}{7}}%
}
\renewcommand{\mainmatter}{%
\cleardoublepage%
\pagestyle{headings}%
\markboth{}{}%
\@mainmattertrue%
\pagenumbering{arabic}%
\renewcommand{\thefootnote}{\arabic{footnote}}%
%% KK: note that the footnote counter is reset in every chapter by default
}
\renewcommand{\backmatter}{%
\@mainmatterfalse%
\pagestyle{empty}%
}
\def\cleardoublepage{%
\clearpage
\ifodd\c@page\else
\hbox{}\thispagestyle{empty}\newpage
\fi
}
\newenvironment{abstract}[1][Abstract]{%
\clearpage
\thispagestyle{plain}
\phantomsection%
\addcontentsline{toc}{chapter}{#1}%
\begin{center}
\Large\bfseries #1
\end{center}
\par%\vspace{.25\baselineskip}
\noindent\ignorespaces
}{}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{1}
\newenvironment{notoc_page}[1][Abstract]{%
\clearpage
\thispagestyle{plain}
\begin{center}
\Large\bfseries #1
\end{center}
\par%\vspace{.25\baselineskip}
\noindent\ignorespaces
}{}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{1}
\newenvironment{acknowledgments*}{%
\begin{center}%
\Large\bfseries\acknowledgmentsname
%\vspace{-1.5ex}\vspace{\z@}
\par%\vspace{.25\baselineskip}
\noindent\ignorespaces
\end{center}%
% % KK: uncomment the quotation and endquotation lines below if acknowledgments should be formatted in a narrow way
%\quotation
}{%
%\endquotation
}
\newenvironment{acknowledgments}{%
\phantomsection%
\addcontentsline{toc}{chapter}{\acknowledgmentsname}%
\begin{acknowledgments*}%
\thispagestyle{plain}%
}{%
\end{acknowledgments*}%
}
\newcommand{\acknowledgmentsname}{Acknowledgments}
%% KK: the whole "part" code is copied from vxulicentiate and is not tested!
\renewcommand{\