Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BSc MSc LaTeX template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
unitartucs-thesis-templates
BSc MSc LaTeX template
Commits
524d11c9
Commit
524d11c9
authored
3 months ago
by
Simmo Saan
Browse files
Options
Downloads
Patches
Plain Diff
Reorganize class
parent
5ecb5d2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unitartucs/thesis.cls
+21
-29
21 additions, 29 deletions
unitartucs/thesis.cls
with
21 additions
and
29 deletions
unitartucs/thesis.cls
+
21
−
29
View file @
524d11c9
...
...
@@ -3,10 +3,18 @@
% Üldine vormistus
\LoadClass
[12pt]
{
article
}
\usepackage
[a4paper,margin=25.4mm]
{
geometry
}
\usepackage
{
parskip
}
% Taandrea asemel lõiguvahe
\usepackage
{
xcolor
}
% Tüpograafia
\usepackage
{
parskip
}
% Taandrea asemel lõiguvahe
\widowpenalty
=10000
\clubpenalty
=10000
\hyphenpenalty
=10000
\hbadness
=10000
\sloppy
\usepackage
{
microtype
}
% Keeleline tugi
\AddToHook
{
package/inputenc/before
}{
\usepackage
{
fvextra
}
...
...
@@ -78,6 +86,9 @@
\setcounter
{
tocdepth
}{
3
}
% Sisukorras kuni \subsubsection
% Joonised
\RequirePackage
[labelsep=period]
{
caption
}
% Punkt pealdiste sildi lõpus
\captionsetup
{
justification=centering
}
% Mitmerealise sildi viimane rida keskel mitte vasakul.
\usepackage
{
wrapfig
}
\usepackage
[export]
{
adjustbox
}
...
...
@@ -97,12 +108,15 @@
fontsize=
\footnotesize
,
}
% Jalus
% Joonealused märkused
\addtolength
{
\skip\footins
}{
40pt plus 5pt
}
\renewcommand
{
\footnoterule
}{
%
\kern
0pt
\hrule
width 145pt height 0.01pt
\kern
12pt
}
\usepackage
[marginal]
{
footmisc
}
\setlength
{
\footnotemargin
}{
4pt
}
% Üldised teksti seadistused
...
...
@@ -117,22 +131,7 @@
\newcommand\link
[1]
{
\textcolor
{
linkGreen
}{
\uline
{
\burl
{
#1
}}}}
\usepackage
[marginal]
{
footmisc
}
\setlength
{
\footnotemargin
}{
4pt
}
\RequirePackage
[labelsep=period]
{
caption
}
%Punkt pealdiste sildi lõpus
\captionsetup
{
justification=centering
}
% Mitmerealise sildi viimane rida keskel mitte vasakul.
\widowpenalty
=10000
\clubpenalty
=10000
\hyphenpenalty
=10000
\hbadness
=10000
\sloppy
\usepackage
{
microtype
}
\addtolength
{
\skip\footins
}{
40pt plus 5pt
}
% Tekstimuutujatega seotud seadistused
% Meta-andmete defineerimine
\newcommand\supervisor
[1]
{
\renewcommand\@
supervisor
{
#1
}}
\newcommand\@
supervisor
{
\@
latex@error
{
No
\noexpand\supervisor
given
}
\@
ehc
}
...
...
@@ -142,18 +141,13 @@
\newcommand\thesis
[1]
{
\renewcommand\@
thesis
{
#1
}}
\newcommand\@
thesis
{
\@
latex@error
{
No
\noexpand\thesis
given
}
\@
ehc
}
\newcommand\titleOtherLanguage
[1]
{
\renewcommand\@
titleOtherLanguage
{
#1
}}
\newcommand\@
titleOtherLanguage
{
\@
latex@error
{
No
\noexpand\titleOtherLanguage
given
}
\@
ehc
}
\newcommand\keywords
[1]
{
\renewcommand\@
keywords
{
#1
}}
\newcommand\@
keywords
{
\@
latex@error
{
No
\noexpand\keywords
given
}
\@
ehc
}
% Tiitelleht
\newcounter
{
@supervisori
}
\newcounter
{
@supervisors
}
%% Tiitellehe vormistus %%
\renewcommand*
{
\maketitle
}{
\setbox
0=
\vbox
{
\setcounter
{
@supervisors
}{
1
}
\newcommand*
{
\degree
}
[1]
{}
\renewcommand*
{
\and
}{
\stepcounter
{
@supervisors
}}
\@
supervisor
}
%
\thispagestyle
{
empty
}
...
...
@@ -206,9 +200,7 @@
\centerline
{
\large
Tartu
{
\@
date
}}
}
%% Infolehe vormistus %%
% Infoleht
\newenvironment
{
@info
}
[1]
{
\noindent\textbf
{
\large
#1
}
\vspace*
{
1ex
}
% TODO: why 3ex only in one language in old template?
...
...
@@ -235,9 +227,9 @@
\newenvironment
{
info
}{
\begin{@info}
{
\@
title
}}{
\end{@info}
}
\newenvironment
{
otherinfo
}
[2]
{
\begin{otherlanguage}
{
#1
}
\begin{@info}
{
#2
}}{
\end{@info}\end{otherlanguage}
}
% Lingid ja meta-andmed
% Lingid ja
PDF-i
meta-andmed
\AtEndPreamble
{
\usepackage
[hidelinks
,pdfusetitle
]
{
hyperref
}
% hyperref-i peab laadima viimasena
\usepackage
[hidelinks]
{
hyperref
}
% hyperref-i peab laadima viimasena
\urlstyle
{
same
}
% Lingid sama fondiga nagu tekst
% hyperref-i adapteerimine lisatud subsubsubsection-i jaoks
\newcommand*
{
\toclevel
@subsubsubsection
}{
4
}
...
...
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