Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
liuthesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ola Leifler
liuthesis
Commits
78aa7f11
Commit
78aa7f11
authored
8 years ago
by
Ola Leifler
Browse files
Options
Downloads
Patches
Plain Diff
Initial change to layout
parent
9cb87e9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
demothesis.tex
+5
-3
5 additions, 3 deletions
demothesis.tex
liuthesis.cls
+107
-51
107 additions, 51 deletions
liuthesis.cls
with
112 additions
and
54 deletions
demothesis.tex
+
5
−
3
View file @
78aa7f11
...
...
@@ -7,9 +7,9 @@
%% Created: Thu Oct 14 12:52:20 2010 (CEST)
%% Version: $Id$
%% Version:
%% Last-Updated: Thu
Dec
1
7
1
6:28:11
201
5
(+0
1
00)
%% Last-Updated: Thu
May
1
2
1
0:53:30
201
6
(+0
2
00)
%% By: Ola Leifler
%% Update #:
74
%% Update #:
90
%% URL:
%% Keywords:
%% Compatibility:
...
...
@@ -42,6 +42,8 @@
\supervisor
{
Min handledare
}
\examiner
{
Min examinator
}
\titleenglish
{
A very very long title -- with some subtitle as well
}
\thesissubject
{
Datateknik
}
\publicationyear
{
15
}
\currentyearthesisnumber
{
001
}
\dateofpublication
{
2015-05-08
}
...
...
@@ -62,7 +64,7 @@
\include
{
conclusion
}
\printbibliography
% Demonstrates the use of included publications, for graduate-level theses
\if
msc
\if
student
\else
\includearticle
{
scigen
}
\includearticletex
{
scigen
}
...
...
This diff is collapsed.
Click to expand it.
liuthesis.cls
+
107
−
51
View file @
78aa7f11
...
...
@@ -6,9 +6,9 @@
%% Maintainer:
%% Created: Fri Mar 20 08:25:23 2009 (CET)
%% Version:
%% Last-Updated: T
ue Jan 12 15:07:04
2016 (+0
1
00)
%% Last-Updated: T
hu May 12 11:12:29
2016 (+0
2
00)
%% By: Ola Leifler
%% Update #:
951
%% Update #:
1018
%% URL:
%% Keywords:
%% Compatibility:
...
...
@@ -46,8 +46,8 @@
%%
%%% Code:
\NeedsTeXFormat
{
LaTeX2e
}
\ProvidesClass
{
liuthesis
}
[201
0/10/19 PHD
Thesis class for LiU]
\typeout
{
PHD T
hesis class for LiU by Ola Leifler - v 1.
02
}
\ProvidesClass
{
liuthesis
}
[201
6/03/10
Thesis class for LiU]
\typeout
{
Undergraduate and graduate t
hesis 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
}}
...
...
@@ -87,6 +87,12 @@
% Undergrad specific
\createvariable
{
area
}
\createvariable
{
level
}
\createvariable
{
thesistypename
}
\createvariable
{
thesiscredits
}
\createvariable
{
thesissubject
}
\createvariable
{
subtitleswedish
}
\createvariable
{
subtitleenglish
}
\newif\ifdedication
\dedicationfalse
...
...
@@ -105,8 +111,8 @@
% \phdtrue
\newif\iflic
\licfalse
\newif\if
msc
\
msc
true
\newif\if
student
\
student
true
\DeclareOption
{
hu
}{
%
\hutrue
...
...
@@ -144,21 +150,34 @@
}
\DeclareOption
{
msc
}{
%
\
msc
true
\
student
true
\phdfalse
\licfalse
\level
{
A
}
\gdef\@
thesistypename
{
avancerad nivå
}
\thesiscredits
{
30
}
\PassOptionsToClass
{
oneside
}{
memoir
}
}
\DeclareOption
{
bachelor
}{
%
\studenttrue
\phdfalse
\licfalse
\level
{
G
}
\gdef\@
thesistypename
{
grundnivå
}
\thesiscredits
{
16
}
\PassOptionsToClass
{
oneside
}{
memoir
}
}
\DeclareOption
{
lic
}{
%
\lictrue
\phdfalse
\
msc
false
\
student
false
}
\DeclareOption
{
phd
}{
%
\licfalse
\
msc
false
\
student
false
\phdtrue
}
...
...
@@ -481,47 +500,84 @@
\iflic
\newcommand
{
\isrn
}{
LIU-
\@
facultyshort
{}
-Lic-
{}
-
\@
publicationyear:
\@
currentyearthesisnumber
}
\fi
\if
msc
\if
student
\newcommand
{
\isrn
}{
LIU-
\@
departmentshort
{}
/
\@
area
{}
-EX-
\@
level
{}
-
{}
-
\@
publicationyear/
\@
currentyearthesisnumber-
{}
-SE
}
\fi
\if
msc
\renewcommand
{
\maketitle
}
{
\copypagestyle
{
titlestyle
}{
plain
}
\makeevenfoot
{
titlestyle
}{
\ifxetex\fontspec
{
Times
}
\fi
Linköpings
universitet
\\
SE-581 83 Linköping, Sweden
}{}{
\ifxetex\fontspec
{
Times
}
\fi
Linköpings universitet
\\
581 83 Linköping
}
\makeoddfoot
{
titlestyle
}{
\ifxetex\fontspec
{
Times
}
\fi
Linköpings
universitet
\\
SE-581 83 Linköping, Sweden
}{}{
\ifxetex\fontspec
{
Times
}
\fi
Linköpings universitet
\\
581 83 Linköping
}
\thispagestyle
{
titlestyle
}
{
\centering
\
ifxetex\fontspec
{
Times
}
\fi
\fontsize
{
2
7
pt
}{
27
pt
}
\selectfont
\@
department
\\
\
fontsize
{
18pt
}{
18pt
}
\selectfont
\
@
departmentenglish
\\
[2\baselineskip]
Examensarbete
\\
[\baselineskip]
\fontsize
{
24pt
}{
24pt
}
\selectfont
{
\bfseries\swedishenglish
{
\@
titleswedish
}{
\@
titleenglish
}}
\
\
[\baselineskip]
\
fontsize
{
12pt
}{
12pt
}
\selectfont\swedishenglish
{
av
}{
by
}
\
\
[1.5\baselineskip]
\
fontsize
{
24pt
}{
24pt
}
\selectfont
{
\bfseries\@
author
}
\
vfill
\fontsize
{
18pt
}{
18pt
}
\selectfont\isrn
\vfill
\@
dateofpublication
\vfill
\
c
en
tering
{
\includegraphics
[width=1.1\textwidth]
{
titelsid-sv
}
}
\\
[.5\baselineskip]
\if
student
\renewcommand
*
\maketitle
{
%
{
\ifxetex\fontspec
{
Calibri
}
\fi
\vspace*
{
-22mm
}
%
\hspace*
{
-10mm
}
%
%
\noindent\parbox[l][0pt][t]{0pt}{%
%
\begin{minipage}[t][\paperheight-5mm][t]{\paperwidth-15mm}%
{
\raggedleft
%
\sffamily
%
\begin{large}
%
Linköpings universitet
|
\@
department
\par
Examensarbete på
\@
thesistypename,
\@
thesiscredits hp |
\@
thesissubject
\par
%
20
\@
publicationyear
\
|
\isrn\par
%
\end{large}
}
%
\
vspace*
{
50mm
}
%
{
\fontsize
{
2
5
pt
}{
30
pt
}
\selectfont
\@
titleswedish
\par
}
%
--
{
\fontsize
{
13pt
}{
15pt
}
\selectfont\@
subtitleswedish
\par
}
%
\
hrulefill
{}
\
\
{}
{
\fontspec
{
Calibri Italic
}{
\fontsize
{
13pt
}{
15pt
}
\selectfont\@
titleenglish
\par
}
%
--
{
\fontsize
{
13pt
}{
15pt
}
\selectfont\@
subtitleenglish
\par
}}
%
\
vspace*
{
10mm
}
%
\
begin{LARGE}
\textbf
{
\@
author
}
\par
\end{LARGE}
%
\
vfill
{}
\
includegraphics
[width=85mm]
{
liu
_
primary
_
black
_
sv
}
\hfill
{
}
\
parbox
{
0.2
\textwidth
}{
%
Linköpings universitet
\\
SE--581 83 Linköping
\\
013-28 10 00,
\href
{
http://www.liu.se
}{
www.liu.se
}}
%
\en
d{minipage
}
% }%
}
}
}
% \renewcommand{\maketitle}{
% \copypagestyle{titlestyle}{plain}
% \makeevenfoot{titlestyle}{\ifxetex\fontspec{Times}\fi Linköpings
% universitet\\
% SE-581 83 Linköping, Sweden
% }{}{\ifxetex\fontspec{Times}\fi Linköpings universitet\\
% 581 83 Linköping}
% \makeoddfoot{titlestyle}{\ifxetex\fontspec{Times}\fi Linköpings
% universitet\\
% SE-581 83 Linköping, Sweden
% }{}{\ifxetex\fontspec{Times}\fi Linköpings universitet\\
% 581 83 Linköping}
% \thispagestyle{titlestyle}
% {\centering
% \ifxetex\fontspec{Times}\fi
% \fontsize{27pt}{27pt}\selectfont
% \@department\\
% \fontsize{18pt}{18pt}\selectfont
% \@departmentenglish\\[2\baselineskip]
% Examensarbete
% \\[\baselineskip]
% \fontsize{24pt}{24pt}\selectfont{\bfseries\swedishenglish{\@titleswedish}{\@titleenglish}}
% \\[\baselineskip]
% \fontsize{12pt}{12pt}\selectfont\swedishenglish{av}{by}
% \\[1.5\baselineskip]
% \fontsize{24pt}{24pt}\selectfont{\bfseries\@author}
% \vfill
% \fontsize{18pt}{18pt}\selectfont\isrn
% \vfill
% \@dateofpublication
% \vfill
% \centering{\includegraphics[width=1.1\textwidth]{titelsid-sv}}
% \\[.5\baselineskip]
% }
% }
\else
\renewcommand
{
\maketitle
}{
{
\center
...
...
@@ -611,7 +667,7 @@
\clearpage
}
% Intro page for MSC theses
\if
msc
\if
student
\newcommand
{
\makeinsidepage
}{
\thispagestyle
{
empty
}
{
\ifxetex\fontspec
{
Times
}
\fi\selectfont
...
...
@@ -679,7 +735,7 @@ Examinator: \@examiner}
% Tryckmaterialets storlek
\setstocksize
{
297mm
}{
210mm
}
%
\if
msc
\if
student
\settrimmedsize
{
290mm
}{
205mm
}{
*
}
\settypeblocksize
{
*
}{
34pc
}{
1.618
}
% golden ratio
\else
...
...
@@ -697,7 +753,7 @@ Examinator: \@examiner}
% Beskär runt om: Centrera tryckytan på pappret
\settrims
{
0.5
\trimtop
}{
0.5
\trimedge
}
% Inner margin 2cm
\if
msc
\if
student
\setlrmargins
{
*
}{
*
}{
1
}
\else
\setlrmargins
{
*
}{
55pt
}{
*
}
...
...
@@ -739,7 +795,7 @@ Examinator: \@examiner}
\newpage
\end{adjustwidth}
\if
msc
\if
student
\makeinsidepage
\else
\pagestyle
{
plain
}
...
...
@@ -863,7 +919,7 @@ Examinator: \@examiner}
\put
(7,114)
{
\@
author
}
%%% Enbart för lic
\iflic
{
\put
(34,178)
{
\scriptsize
$
\times
$}}
\fi
\if
msc
{
\put
(34,174)
{
\scriptsize
$
\times
$}}
\fi
\if
student
{
\put
(34,174)
{
\scriptsize
$
\times
$}}
\fi
%%% Språk
\swedishenglish
{
\put
(0.98,178.25)
{
\scriptsize
$
\times
$}}{
\put
(1,174)
{
\scriptsize
$
\times
$}}
...
...
@@ -873,7 +929,7 @@ Examinator: \@examiner}
\pagestyle
{
plain
}
}
\if
msc
\if
student
\AtEndDocument
{
\cleartorecto
%
\thispagestyle
{
empty
}
\includepdf
[pagecommand={\begin{tikzpicture}[remember picture,overlay]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment