Newer
Older
%%% liuthesis.cls ---
%%
%% Filename: liuthesis.cls
%% Description:
%% Author: Ola Leifler
%% Maintainer:
%% Created: Fri Mar 20 08:25:23 2009 (CET)
%% Version:
%% Last-Updated: Wed Apr 26 11:57:50 2017 (+0200)
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%% URL:
%% Keywords:
%% Compatibility:
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%% Commentary:
%%
%% Read the README instead...
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%% Change log:
%%
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% This program is free software; you can redistribute it and/or
%% modify it under the terms of the GNU General Public License as
%% published by the Free Software Foundation; either version 3, or
%% (at your option) any later version.
%%
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
%% General Public License for more details.
%%
%% You should have received a copy of the GNU General Public License
%% along with this program; see the file COPYING. If not, write to
%% the Free Software Foundation, Inc., 51 Franklin Street, Fifth
%% Floor, Boston, MA 02110-1301, USA.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%% Code:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{liuthesis} [2017/04/20 Thesis class for LiU]
\typeout{Undergraduate and graduate thesis class for LiU by Ola Leifler - v 1.1}
\def\createvariable#1{%
\expandafter\def\csname #1\endcsname{\expandafter\gdef\csname @#1\endcsname}
\csname #1\endcsname{\texttt{\textbackslash #1}}
}
% \def\createconditionalvariable#1{
% \expandafter\newif\csname if#1\endcsname
% \csname #1 false\endcsname
% \def\csname#1\endcsname
% }
\RequirePackage{xkeyval}
\RequirePackage{ifxetex}
\ifxetex
\else
\RequirePackage[utf8]{inputenc}
\fi
\RequirePackage[absolute]{textpos}
% For conditionally including lists of tables and figures
\RequirePackage[figure,table]{totalcount}
Ola Leifler
committed
\createvariable{edition}
\createvariable{presentationroom}
\createvariable{presentationbuilding}
\createvariable{presentationcampus}
\createvariable{presentationdate}
\createvariable{presentationdateenglish}
\createvariable{presentationtime}
\createvariable{thesislanguage}
\createvariable{faculty}
\createvariable{issn}
\createvariable{degreeprefix}
Ola Leifler
committed
\createvariable{degreesuffix}
\createvariable{exhibittext}
Ola Leifler
committed
\createvariable{exhibittextswedish}
\createvariable{opponenttitle}
\createvariable{opponentname}
\createvariable{opponentuniversity}
\createvariable{opponentcountry}
\createvariable{thesisnumber}
\createvariable{currentyearthesisnumber}
\createvariable{supportedby}
\createvariable{publicationyear}
\createvariable{publicationmonth}
\createvariable{isbn}
\createvariable{supervisor}
\createvariable{examiner}
\createvariable{titleenglish}
\createvariable{titleswedish}
\createvariable{keywords}
Ola Leifler
committed
\createvariable{keywordsswedish}
\createvariable{department}
\createvariable{departmentenglish}
\createvariable{departmentshort}
\createvariable{division}
\createvariable{divisionshort}
\createvariable{dateofpublication}
\createvariable{publicationseries}
% Undergrad specific
\createvariable{area}
\createvariable{level}
Erik Hansson
committed
\createvariable{thesistypenameswedish}
\createvariable{thesistypenameenglish}
\createvariable{thesiscredits}
\createvariable{thesissubject}
Ola Leifler
committed
\createvariable{thesissubjectenglish}
\newif\ifsubtitleswedish
\subtitleswedishfalse
\def\subtitleswedish#1{\subtitleswedishtrue\gdef\@subtitleswedish{#1}}
\newif\ifsubtitleenglish
\subtitleenglishfalse
\def\subtitleenglish#1{\subtitleenglishtrue\gdef\@subtitleenglish{#1}}
\newif\ifdedication
\dedicationfalse
\def\dedication#1{\dedicationtrue\gdef\@dedication{#1}}
\newif\ifexternalsupervisor
\externalsupervisorfalse
\def\externalsupervisor#1{\externalsupervisortrue\gdef\@externalsupervisor{#1}}
\createvariable{divanumber}
% Include the abstract
Ola Leifler
committed
\gdef\@sammanfattning{\input{sammanfattning.tex}}
\gdef\@acknowledgments{\input{acknowledgments.tex}}
\newif\iflith
\lithtrue
\newif\ifhu
\newif\iffilfak
\newif\ifphd
\newif\iflic
\licfalse
Erik Hansson
committed
\newif\ifprinterfriendly
\printerfriendlyfalse
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
\DeclareOption{hu}{%
\hutrue
\lithfalse
\filfakfalse
\faculty{Faculty of Health Sciences}
\gdef\@facultyshort{HU}
\gdef\@facultyshortlogo{hu}
\publicationseries{Linköping University Medical Dissertations}
\degreeprefix{medicine}
}
\DeclareOption{lith}{%
\lithtrue
\hufalse
\filfakfalse
\faculty{Institute of Technology}
\publicationseries{Linköping Studies in Science and Technology}
\degreeprefix{teknologie}
\gdef\@facultyshort{Tek}
\gdef\@facultyshortlogo{lith}
\gdef\@area{LITH}
}
\DeclareOption{filfak}{%
\filfaktrue
\lithfalse
\hufalse
\faculty{Philosophical faculty}
\gdef\@facultyshort{FilFak}
\gdef\@facultyshortlogo{filfak}
Ola Leifler
committed
\publicationseries{Linköping Studies in Arts and Sciences}
\degreeprefix{filosofie}
% \gdef\@area{FFK-UP}
}
\DeclareOption{msc}{%
Erik Hansson
committed
\gdef\@thesistypenameenglish{Master}
\gdef\@thesistypenameswedish{avancerad nivå}
\thesiscredits{30}
\PassOptionsToClass{oneside}{memoir}
}
\DeclareOption{bachelor}{%
\studenttrue
\phdfalse
\licfalse
\level{G}
Erik Hansson
committed
\gdef\@thesistypenameenglish{Bachelor}
\gdef\@thesistypenameswedish{grundnivå}
\PassOptionsToClass{oneside}{memoir}
}
\DeclareOption{lic}{%
\lictrue
\phdfalse
}
\DeclareOption{phd}{%
\licfalse
Erik Hansson
committed
\DeclareOption{printerfriendly}{%
\printerfriendlytrue
\DeclareOption{swedish}{%
\thesislanguage{swedish}
}
\DeclareOption{english}{%
\thesislanguage{english}
}
\newif\ifexhibitpage
\exhibitpagefalse
\DeclareOption{exhibitpage}{%
\exhibitpagetrue
Ola Leifler
committed
\PassOptionsToClass{oneside}{memoir}
}
% % % Add the necessary biblatex options to the class options
% \DeclareOptionX{biblatexoptions}{%
% \gdef\@biblatexoptions{#1}
% \PassOptionsToPackage{\@biblatexoptions}{biblatex}
% }
% \DeclareOptionX{memoiroptions}{%
% \PassOptionsToClass{#1}{memoir}
% }
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
\ExecuteOptions{english,phd,lith,a4paper}
\ProcessOptions*
Ola Leifler
committed
%% There is a special exception to the rule that publication series
%% are defined by the faculty, and that is the philosophical faculty
%% that uses a special series for licentiate theses
\iflic
\iffilfak
\publicationseries{Faculty of Arts and Sciences}
\fi
\fi
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
\LoadClass{memoir}
\RequirePackage{color}
\RequirePackage[svgnames]{xcolor}
\RequirePackage{pdfpages}
\RequirePackage{tikz}
\RequirePackage{pbox}
\RequirePackage{ifthen}
\RequirePackage{geometry}
\RequirePackage[pdfusetitle]{hyperref}
% Set up input encoding and font handling
\ifxetex
\RequirePackage[MnSymbol]{mathspec}
\RequirePackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\else
\RequirePackage{graphicx}
\RequirePackage{palatino}
\RequirePackage{amssymb}
\RequirePackage{amsmath}
\RequirePackage{mathabx}
\RequirePackage{mathpazo}
\RequirePackage[T1]{fontenc}
\fi
\ifphd
\gdef\@degreetype{\@degreeprefix {} doktorsexamen}
Ola Leifler
committed
\gdef\@degreetypeenglish{Doctor of \@degreesuffix}
\else
\iflic
\gdef\@degreetype{\@degreeprefix {} licentiatexamen}
Ola Leifler
committed
\gdef\@degreetypeenglish{Licentiate degree in \@degreesuffix}
\fi
\fi
\iflith
\iflic
\issn{0280-7971}
\fi
\ifphd
\issn{0345-7524}
\fi
\fi
Ola Leifler
committed
% We use the same series for lic and PhD at Filfak/HU
Ola Leifler
committed
% \ifphd
Ola Leifler
committed
% \fi
% \iflic
% \typeout{Please define the ISSN by issuing a \textbackslash issn command}
% \issn{\textbackslash\texttt{issn}}
% \fi
Ola Leifler
committed
% \ifphd
Ola Leifler
committed
% \fi
% \iflic
% \typeout{Please define the ISSN by issuing a \textbackslash issn command}
% \issn{\textbackslash\texttt{issn}}
% \fi
\fi
\newcommand{\swedishenglish}[2]{
\ifthenelse{\equal{\@thesislanguage}{swedish}}{#1}{#2}
}
\RequirePackage{csquotes}
\ifxetex
\RequirePackage{polyglossia}
\swedishenglish{
\setmainlanguage{swedish}
\setotherlanguages{english}
}{
\setmainlanguage{english}
}
\else
\swedishenglish{
\RequirePackage[swedish,english]{babel}
}{
\RequirePackage[english,swedish]{babel}
}
\fi
%% Include articles
\RequirePackage{calc}
\RequirePackage{ragged2e}
\newlength{\marginboxlength}
\setlength{\marginboxlength}{\paperwidth}
\addtolength{\marginboxlength}{-\textwidth}
\addtolength{\marginboxlength}{-\spinemargin}
\addtolength{\marginboxlength}{-2mm}
\definecolor{nicered}{rgb}{.647,.129,.149}
\newsavebox{\feline@article}
\newcommand\feline@article@marker[1][4cm]{%
\sbox\feline@article{%
\resizebox{!}{#1}{\fboxsep=1pt%
\colorbox{nicered}{\color{white}\bfseries\thearticle\phantom{.}}%
}}%
\rotatebox{90}{%
\resizebox{%
\heightof{\usebox{\feline@article}}+\depthof{\usebox{\feline@article}}}%
{!}{{\scshape \MakeUppercase Paper}}}\quad%
\raisebox{\depthof{\usebox{\feline@article}}}{\usebox{\feline@article}}%
}
\newcommand\feline@chm[1][4cm]{%
\sbox\feline@article{\feline@article@marker[#1]}%
\makebox[0pt][l]{% aka \rlap
\makebox[\spinemargin][r]{
\usebox\feline@article
}
}
}
\newcounter{article}
\setcounter{article}{0}
\renewcommand{\thearticle}{\Roman{article}}
\includepdfset{pages=-}
\setlength{\TPVertModule}{2cm}
\setlength{\TPHorizModule}{\paperwidth - 4.3cm}
\newcommand{\papermark}{Paper \thearticle}
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
\newcommand{\includearticle}[2][pages=-]{%
\@twosidetrue
\refstepcounter{article}%
\cleartorecto%
\thispagestyle{empty}
\mbox{}%
\vspace*{\fill}
\begin{center}%
{\hfill \feline@chm[2.5cm]\\[2\baselineskip]}
{\fullcite{#2}}
\end{center}%
\vspace*{\fill}%
\cleartorecto%
\label{art:#2}%
\addcontentsline{toc}{chapter}{\papermark}%
\includepdf[#1]{#2}%
}
\newenvironment{papers}{
\makeevenhead{ruled}{\papermark}{}{}
\renewcommand*{\thechapter}{\thearticle}
\newlength{\numberheight}
\makechapterstyle{paperstyle}{%
\setlength{\afterchapskip}{40pt}
\setlength{\numberheight}{10mm}
\renewcommand*{\chapterheadstart}{\vspace*{40pt}}
\renewcommand*{\afterchapternum}{\par\nobreak\vskip 25pt}
\renewcommand*{\chapnamefont}{\normalfont\LARGE\flushright}
\renewcommand*{\chapnumfont}{\normalfont\HUGE}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\bfseries\flushright}
\renewcommand*{\printchaptername}{%
}
\renewcommand*{\chapternamenum}{}
\renewcommand*{\printchapternum}{%
}%
\makeoddfoot{plain}{}{}{\thepage}}
\renewcommand{\@chapapp}{\papermark}
\chapterstyle{paperstyle}
}{}
\newcommand{\includearticletex}[1]{%
\stepcounter{article}%
\cleartorecto%
\thispagestyle{empty}
\mbox{}%
\vspace*{\fill}
\begin{center}%
{\hfill \feline@chm[2.5cm]\\[2\baselineskip]}
{\fullcite{#1}}
\end{center}%
\vspace*{\fill}%
\clearpage{}
\chapter[\papermark][\papermark]{\citetitle{#1}}
\label{art:#1}
\input{papers/#1}%
}
\ifx\pdfoutput\undefined
\else
\pdfoutput=1
\DeclareGraphicsExtensions{.pdf,.jpg,.png}
\fi
\graphicspath{{figures/}}
Ola Leifler
committed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% font selection, based on availability %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\tryfonts#1#2{
\ifxetex
\def\primaryfont{"#1"} % first preferred font
\def\secondaryfont{"#2"} % if first font not avaliable
\count255=\interactionmode
\batchmode
\font\bodyfont=\primaryfont\space at 10pt
Ola Leifler
committed
\ifx\bodyfont\nullfont
\font\bodyfont=\secondaryfont\space at 10pt
\ifx\bodyfont\nullfont
\errorstopmode
\errmessage{Neither #1 or #2 fonts installed, quitting..}
\else
\fontspec{#2}
\setmainfont{#2}
\fi
Ola Leifler
committed
\else
\fontspec{#1}
\setmainfont{#1}
Ola Leifler
committed
\fi
\interactionmode=\count255
Ola Leifler
committed
\else
\typeout{ **** Please use XeTeX and install Calibri for correct typesetting ***}
Ola Leifler
committed
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% The exhibit page %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ola Leifler
committed
\newcommand{\exhibitpagelith}{%
\copypagestyle{exhibitpagestyle}{plain}
\makeevenfoot{exhibitpagestyle}{ISBN \@isbn}{}{ISSN \@issn}
\makeoddfoot{exhibitpagestyle}{ISBN \@isbn}{}{ISSN \@issn}
\thispagestyle{exhibitpagestyle}
\begin{center}
{\footnotesize \@publicationseries}\\
Ola Leifler
committed
{\footnotesize \ifphd Dissertations,\else Licentiate Thesis\fi {} No. \@thesisnumber}\\[15mm]
{\Large\bfseries\swedishenglish{\@titleswedish}{\@titleenglish}}\\[5mm]
by\\[5mm]
{\Large\bfseries\@author}
\vfill
Ola Leifler
committed
{\small\textbf{Akademisk avhandling}\\
som för framläggande av \@degreetype{} i \@thesissubject{}
vid Linköpings universitet kommer att offentligt försvaras i sal
\@presentationroom, hus \@presentationbuilding, universitetsområde
\@presentationcampus, \@presentationdate{} kl. \@presentationtime}\\[2\baselineskip]
\textbf{Fakultetsopponent}\\
Ola Leifler
committed
\@opponenttitle{} \@opponentname\\
\@opponentuniversity\\
\@opponentcountry
Ola Leifler
committed
\includegraphics[width=35mm]{liu_primary_black_en}
\\[15mm]
Ola Leifler
committed
\@departmentenglish\\
Ola Leifler
committed
SE--581 83 Linköping\\[5mm]
Linköping \@publicationyear\\
\vspace*{1mm}
\end{center}
\clearpage{}
\tryfonts{Calibri}{Carlito}
Ola Leifler
committed
\small \textbf{Abstract}\\
\@abstract
\vfill
\footnotesize
\begin{flushleft}
Keywords: \@keywords\\[3mm]
\@supportedby\mbox{}\\[3mm]
URL: \texttt{http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-\@divanumber/}\\[3mm]
\end{flushleft}
}
\newcommand{\exhibitpagefilfak}{%
\begin{center}
Ola Leifler
committed
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
\@publicationseries{} No. \@thesisnumber\\[3\baselineskip]
{\Large\@titleswedish\\
\@subtitleswedish}\\[5mm]\fi
\small
{\bfseries\@author}\\[5mm]
{\bfseries Akademisk avhandling}\\
som för framläggande av \@degreetype{} i \@thesissubject{}
vid Filosofiska fakulteten kommer att offentligt försvaras i sal
\@presentationroom, hus \@presentationbuilding, universitetsområde
\@presentationcampus, \@presentationdate{} kl. \@presentationtime\\[2\baselineskip]
{\bfseries Sammanfattning}\\
\@exhibittextswedish\\[6mm]
\vfill
\begin{flushleft}
Nyckelord: \@keywordsswedish\\[3mm]
\end{flushleft}
\includegraphics[width=35mm]{liu_primary_black_sv}\\
\@department\\
Linköpings universitet, 581 83 Linköping\\[5mm]
ISBN \@isbn{} ISSN \@issn
\clearpage{}
\normalsize
{\@publicationseries{} No. \@thesisnumber}\\[3\baselineskip]
{\Large\@titleenglish\\
\@subtitleenglish}\\[5mm]
\small
{\bfseries\@author}\\[5mm]
{\textbf{Academic dissertation}\\
Academic dissertation for the Degree of \@degreetypeenglish{} in \@thesissubjectenglish{}
at the Faculty of Arts and Sciences to be publicly defended on
\@presentationdateenglish{} at \@presentationtime{} in room
\@presentationroom, building \@presentationbuilding, campus
\@presentationcampus{} by \@author}
\\[2\baselineskip]
{\bfseries Abstract}\\
\@abstract
\vfill
\begin{flushleft}
Keywords: \@keywords\\[3mm]
\end{flushleft}
\includegraphics[width=35mm]{liu_primary_black_en} \\
\@departmentenglish\\
Linköping University, SE--581 83 Linköping\\[5mm]
ISBN \@isbn{} ISSN \@issn
\end{center}
\clearpage{}
}
\newcommand{\gettitle}{\swedishenglish{\@titleswedish}{\@titleenglish}}
\iflic
\newcommand{\isrn}{LIU-\@facultyshort{}-Lic-{}-\@publicationyear:\@currentyearthesisnumber}
\fi
\newcommand{\isrn}{LIU-\@departmentshort{}/\@area{}-EX-\@level{}-{}-\@publicationyear/\@currentyearthesisnumber-{}-SE}
\fi
\newcommand\makeundergraduatetitle{%
Erik Hansson
committed
\swedishenglish{%
\begin{large}%
Linköpings universitet | \@department\par
Erik Hansson
committed
Examensarbete på \@thesistypenameswedish, \@thesiscredits hp | \@thesissubject\par%
Erik Hansson
committed
\end{large}%
}{%
\begin{large}%
Linköping University | \@departmentenglish\par
\@thesistypenameenglish{} thesis, \@thesiscredits{} ECTS | \@thesissubject\par%
Erik Hansson
committed
20\@publicationyear\ | \isrn\par%
\end{large}%
}%
}%
Erik Hansson
committed
\swedishenglish{%
\hspace*{36mm}%
}{%
\hspace*{38mm}%
}%
\newlength{\thesiswidth}%
\swedishenglish{%
\setlength{\thesiswidth}{\paperwidth-86mm}%
}{%
\setlength{\thesiswidth}{\paperwidth-88mm}%
}%
\begin{minipage}[t]{\thesiswidth}
{\fontsize{25pt}{30pt}\selectfont\swedishenglish{\@titleswedish}{\@titleenglish}\par}%
\swedishenglish{\ifsubtitleswedish}{\ifsubtitleenglish} -- {\fontsize{13pt}{15pt}\selectfont\swedishenglish{\@subtitleswedish}{\@subtitleenglish}\par}\fi%
{\tryfonts{Calibri}{Carlito}{%
\fontsize{13pt}{15pt}\selectfont%
\textit{\swedishenglish{\@titleenglish}{\@titleswedish}}\par}%
\swedishenglish{\ifsubtitleenglish}{\ifsubtitleswedish}--
{\fontsize{13pt}{15pt}\textit{\selectfont\swedishenglish{\@subtitleenglish}{\@subtitleswedish}}\par}
{\tryfonts{Calibri}{Carlito}\fontsize{12pt}{13pt}\selectfont\textbf{\@author}\par
}%
\vspace*{10mm}%
{\tryfonts{Calibri}{Carlito}\fontsize{10pt}{11pt}\selectfont
\parbox{\textwidth}{\swedishenglish{Handledare}{Supervisor}: \@supervisor\\
\swedishenglish{Examinator}{Examiner}: \@examiner\\[2\baselineskip]
\ifexternalsupervisor \swedishenglish{Extern
handledare}{External supervisor}: \@externalsupervisor\fi}}%
\end{minipage}
\vfill{}
\begin{textblock*}{\textwidth}(2cm,\paperheight-4cm)
\swedishenglish{\gdef\@langlogo{sv}}{\gdef\@langlogo{en}}
\parbox{0.4\textwidth}{\includegraphics[width=85mm]{liu_primary_black_\@langlogo}}%
\hspace*{32mm}
\parbox{0.5\textwidth}{\raggedleft%
\vspace*{4mm}
Linköpings universitet\\
SE--581 83 Linköping\\
\swedishenglish{013-28 10 00}{+46 13 28 10 00}, \href{http://www.liu.se}{www.liu.se}}
\end{textblock*}
\newcommand{\makegraduatetitle}{
{\center
{\footnotesize\centerline\@publicationseries{}%\\
Ola Leifler
committed
\ifphd
Dissertations,
\else
Licentiate Thesis
\fi No. \@thesisnumber}\\[25mm]
{\LARGE\bfseries\gettitle}\\[20mm]
{\Large\bfseries\@author}\\
\vfill
\swedishenglish{\gdef\@langlogo{sv}}{\gdef\@langlogo{en}}
\includegraphics[width=35mm]{liu_primary_black_\@langlogo}
\\[12mm]
{\footnotesize
\swedishenglish{%
\iflic
Framlagd vid \@faculty{} vid Linköpings universitet%\\
som del av fordringarna för \@degreetype%\\[6mm]
\fi
\@department%\\
Linköping universitet%\\
Ola Leifler
committed
581 83 Linköping%
}{%
Linköping University\\
Ola Leifler
committed
\@departmentenglish\\
Ola Leifler
committed
SE-581 83 Linköping, Sweden\\
}
\vspace*{5mm}
Linköping \@publicationyear\\
}
}
}
\ifstudent
\renewcommand{\maketitle}{\makeundergraduatetitle}
\else
\renewcommand{\maketitle}{\makegraduatetitle}
Ola Leifler
committed
\newcommand{\abstractpages}{%
\ifphd
Ola Leifler
committed
\setlength\parskip{8pt}\centerline{POPULÄRVETENSKAPLIG SAMMANFATTNING}
Ola Leifler
committed
\footnotesize{\@sammanfattning}
\swedishenglish
{
}
{
\selectlanguage{english}
}
Ola Leifler
committed
\fi
\newpage
\vspace*{6mm}
{ \setlength{\parindent}{0mm}
\setlength\parskip{8pt}\centerline{ABSTRACT}
Ola Leifler
committed
\footnotesize{\@abstract}
\newcommand{\makepermissionpage}{
\mbox{}
Ola Leifler
committed
\iffilfak
\ifphd
\hspace{-\parindent}
At the Faculty of Arts and Sciences at Linköping University,
research and doctoral studies are carried out within broad problem
areas. Research is organized in interdisciplinary research
environments and doctoral studies mainly in graduate
schools. Jointly, they publish the series Linköping Studies in Arts
and Sciences. This thesis comes from \@division{} at the \@departmentenglish.
\fi
\fi
\iflic
\vfill
\begin{center}
{\small
This is a Swedish Licentiate’s Thesis\\[2\baselineskip]
Swedish postgraduate education leads to a doctor’s degree and/or a
licentiate’s degree.\\
A doctor’s degree comprises 240 ECTS credits
(4 years of full-time studies).\\
A licentiate’s degree comprises 120 ECTS credits.}
\end{center}
\fi
\vfill
\begin{flushleft}
Ola Leifler
committed
Edition \@edition\\[5mm]
\copyright{} \@author, \@publicationyear\\
ISBN \@isbn\\
ISSN \@issn\\
{\footnotesize URL \texttt{http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-\@divanumber/}}\\[1cm]
Published articles have been reprinted with permission from the
respective
copyright holder.\\
% Paper III \copyright{} XXX\\
Typeset using \ifxetex\XeTeX\else\LaTeX\fi\\[1cm]
Printed by LiU-Tryck, Linköping \@publicationyear
\end{flushleft}
\clearpage}
% Intro page for MSC theses
\newcommand{\makeinsidepage}{
\thispagestyle{empty}
{\tryfonts{Calibri}{Carlito}\selectfont
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
\vspace*{2cm}
\section*{Upphovsrätt}
\label{sec:upphovsratt}
Detta dokument hålls tillgängligt på Internet – eller dess framtida ersättare – under 25 år från
publiceringsdatum under förutsättning att inga extraordinära omständigheter uppstår.
Tillgång till dokumentet innebär tillstånd för var och en att läsa, ladda ner, skriva ut enstaka kopior för
enskilt bruk och att använda det oförändrat för ickekommersiell forskning och för undervisning.
Överföring av upphovsrätten vid en senare tidpunkt kan inte upphäva detta tillstånd. All annan
användning av dokumentet kräver upphovsmannens medgivande. För att garantera äktheten, säkerheten
och tillgängligheten finns lösningar av teknisk och administrativ art.
Upphovsmannens ideella rätt innefattar rätt att bli nämnd som upphovsman i den omfattning som god
sed kräver vid användning av dokumentet på ovan beskrivna sätt samt skydd mot att dokumentet ändras
eller presenteras i sådan form eller i sådant sammanhang som är kränkande för upphovsmannenslitterära
eller konstnärliga anseende eller egenart.
För ytterligare information om Linköping University Electronic Press se förlagets hemsida
\href{http://www.ep.liu.se/}{http://www.ep.liu.se/}.
\vspace*{2cm}
\section*{Copyright}
\label{sec:copyright}
The publishers will keep this document online on the Internet – or its possible replacement – for a period
of 25 years starting from the date of publication barring exceptional circumstances.
The online availability of the document implies permanent permission for anyone to read, to
download, or to print out single copies for his/hers own use and to use it unchanged for non-commercial
research and educational purpose. Subsequent transfers of copyright cannot revoke this permission. All
other uses of the document are conditional upon the consent of the copyright owner. The publisher has
taken technical and administrative measures to assure authenticity, security and accessibility.
According to intellectual property law the author has the right to be mentioned when his/her work is
accessed as described above and to be protected against infringement.
For additional information about the Linköping University Electronic Press and its procedures for
publication and for assurance of document integrity, please refer to its www home page:
\href{http://www.ep.liu.se/}{http://www.ep.liu.se/}.
\vfill{}
\copyright{} \@author
\vfill{}
Ola Leifler
committed
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
\newcommand{\makededicationpage}{
\mbox{}
\vfill
\begin{center}
\@dedication\\
\end{center}
\vfill
}
%%%%%%%%%%%%%%%%%
%
% Page size and layout
%
%%%%%%%%%%%%%%%%%
\clubpenalty=10000
\widowpenalty=10000
\raggedbottom
\midsloppy
\newlength{\mylen} % a length
\newcommand{\alphabet}{abcdefghijklmnopqrstuvwxyzåäö} % the lowercase
% alphabet
\begingroup
% keep font change local
% font specification e.g.,
% \Large\sffamily
\settowidth{\mylen}{\alphabet}
% The length of this alphabet is
% \the\mylen.
\typeout{The length of the alphabet is \the\mylen}
% put in log file
% end the grouping
\endgroup
% Tryckmaterialets storlek
\setstocksize{297mm}{210mm}
\settrimmedsize{290mm}{205mm}{*}
\settypeblocksize{*}{34pc}{1.618} % golden ratio
Ola Leifler
committed
% S5 report size
\settrimmedsize {242mm}{165mm}{*}
Ola Leifler
committed
\settypeblocksize{*}{28pc}{1.618}
\newcommand{\resetlayout}{
\setlength{\trimtop}{\stockheight} % \trimtop = \stockheight - \paperheight
\addtolength{\trimtop}{-\paperheight} %
\setlength{\trimedge}{\stockwidth} % \trimedge = \stockwidth - \paperwidth
\addtolength{\trimedge}{-\paperwidth} %
% Beskär endast höger- och nederkanten på respektive papper
% \settrims{0pt}{0pt}
% Beskär runt om: Centrera tryckytan på pappret
\settrims{0.5\trimtop}{0.5\trimedge}
% Inner margin 2cm
Erik Hansson
committed
\ifprinterfriendly
\renewcommand{\clearforchapter}{\cleartooddpage}
\fi
Ola Leifler
committed
\ifstudent
Ola Leifler
committed
\else
\setlrmargins{*}{*}{1.5}
Ola Leifler
committed
\fi
% Övre marginal 2cm, den undre automatiskt beräknad
\setulmargins{2cm}{*}{*}
}
%
% Common layout settings
% Variables and page layout
\linespread{1.05}
\typeout{******** LiU thesis layout ********}
\typeoutlayout
\typeout{******** Standard memoir layout ********}
\typeoutstandardlayout
%% Load user settings from the file settings.tex
\AtBeginDocument{%
Ola Leifler
committed
\resetlayout
\checkandfixthelayout
\pagestyle{empty}
\ifexhibitpage
Ola Leifler
committed
\iflith
\exhibitpagelith
\else
\exhibitpagefilfak
\fi
\end{document}%
\endinput%
\fi
\pagenumbering{roman}
\begin{adjustwidth}{-1cm}{-1cm}
\maketitle
\newpage
\end{adjustwidth}
\makeinsidepage
\else
\pagestyle{plain}
\makepermissionpage
\fi
\ifdedication
\makededicationpage
\fi
\cleartorecto%
\swedishenglish{\addcontentsline{toc}{chapter}{Sammanfattning}}
{\addcontentsline{toc}{chapter}{Abstract}}
Ola Leifler
committed
\clearpage
\ifstudent
\begin{abstract}
\@abstract
\end{abstract}
\else
Ola Leifler
committed
\abstractpages
Ola Leifler
committed
\clearpage
Ola Leifler
committed
\@acknowledgments
\swedishenglish{\addcontentsline{toc}{chapter}{Författarens tack}}
{\addcontentsline{toc}{chapter}{Acknowledgments}}
{\pagestyle{plain}\tableofcontents\relax\clearpage}
\iftotalfigures {\pagestyle{plain}\listoffigures\relax\clearpage}\fi
\iftotaltables {\pagestyle{plain}\listoftables\relax\clearpage}\fi
Erik Hansson
committed
\ifprinterfriendly
\cleartooddpage
\else
\cleartorecto
Erik Hansson
committed
\fi
\pagenumbering{arabic}
\pagestyle{ruled}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% liuthesis.cls ends here