-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupsimple.sty
108 lines (93 loc) · 2.18 KB
/
upsimple.sty
1
2
3
4
5
6
7
8
9
10
11
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{upsimple}[2012/09/09 UP Simple Style]
\PackageWarningNoLine{upsimple}{You are using upsimple style 0.55.}
\usepackage{upbase}
\usepackage[
paper=a4paper,
driver=pdftex,
top=3.0cm,
bottom=2.5cm,
width=1.05\textwidth]{geometry}
\SetupKeyvalOptions {
family=up,
prefix=up@
}
\DeclareStringOption[\null]{custompicture}[\null]
\DeclareStringOption[Abstrakt]{titleanot}[Abstrakt]
\DeclareStringOption[Tituln\'i strana]{titlebookmarktitlepage}[Tituln\'i strana]
\ProcessKeyvalOptions*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% anot implementation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\upanot#1{\gdef\@upanot{#1}}
\def\upmakeanot{
\thispagestyle{empty}
\null\vfill
\hypertarget{up:anotation}{}
\bookmark[
rellevel=1,
keeplevel,
dest=up:anotation
]{\up@titleanot}
\begin{center}
\textbf{\up@titleanot}
\end{center}
\emph{\@upanot}
\vfill\null
\clearpage
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% titlepage heading
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\uppapertype#1{\gdef\@uppapertype{#1}}
%\def\@uppapertype{TYP PR\'ACE}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% titlepage implementation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% hacking wrong page numbering
\let\oldsetcounter=\setcounter
\renewcommand\setcounter[2]{%
\def\tempa{#1}%
\def\tempb{page}%
\ifx\tempa\tempb\else\oldsetcounter{#1}{#2}\fi}
\def\uptitle#1{\gdef\@uptitle{#1}}
\def\upsubtitle#1{\gdef\@upsubtitle{#1}}
\def\upyear#1{\gdef\@upyear{#1}}
\def\upauthor#1{\gdef\@upauthor{#1}}
\def\upmaketitle{
\hypertarget{up:thesis}{}
\bookmark[dest=up:thesis]{\@uptitle \ (\@uppapertype)}
\setcounter{page}{1}
\begin{titlepage}
\hypertarget{up:title}{}
\bookmark[
rellevel=1,
keeplevel,
dest=up:title
]{\up@titlebookmarktitlepage}
\begin{center}
{\large P\v R\'IRODOV\v EDECK\'A FAKULTA UNIVERZITY PALACK\'EHO \par
KATEDRA INFORMATIKY \par}
\vfill
{\LARGE\bfseries{\@uppapertype} \\}
\vfill
{\Large \@uptitle \\[1em]\@upsubtitle}
\vspace{3em}
\centering
\includegraphics[width=2.5cm]{\uplogoname}
\ifthenelse{\equal{\null}{\up@custompicture}} {
\relax
} {
\includegraphics[width=2.5cm]{\up@custompicture}
}
\vfill
\@upyear
\hfill
\begin{tabular}{l}
\@upauthor
\end{tabular}
\end{center}
\clearpage
\end{titlepage}
}
\endinput