Skip to content

Commit 99e31d1

Browse files
committed
Move sources to latex
1 parent 1562a24 commit 99e31d1

28 files changed

+2677
-985
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
# Created by https://www.gitignore.io/api/tex,latex,macos
33

4+
## Document build folder
5+
build
6+
47
### LaTeX ###
58
## Core latex/pdflatex auxiliary files:
69
*.aux

3d-print/general-info.tex

Lines changed: 0 additions & 19 deletions
This file was deleted.

3d-print/octoprint.tex

Lines changed: 0 additions & 18 deletions
This file was deleted.

FITcover.cls

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
\NeedsTeXFormat{LaTeX2e}
2+
\ProvidesClass{FITcover}[2015/04/29 CTU FIT standard class for borders]
3+
4+
% created by Ondrej Guth <ondrej.guth@fit.cvut.cz>
5+
6+
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
7+
% options
8+
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
9+
\newif\if@thesistypedefined
10+
\DeclareOption{thesis=B}{\gdef\@thesistype{B}\@thesistypedefinedtrue}
11+
\DeclareOption{thesis=M}{\gdef\@thesistype{M}\@thesistypedefinedtrue}
12+
13+
\DeclareOption{czech}{
14+
\AtBeginDocument{\selectlanguage{czech}}
15+
\PassOptionsToPackage{\CurrentOption}{babel}
16+
\def\@lang{1}
17+
}
18+
\DeclareOption{english}{
19+
\AtBeginDocument{\selectlanguage{UKenglish}}
20+
\PassOptionsToPackage{UKenglish}{babel}
21+
\def\@lang{0}
22+
}
23+
24+
\newif\if@inverse
25+
\DeclareOption{inverse}{
26+
\@inversetrue
27+
}
28+
29+
\ProcessOptions
30+
31+
\ifx\@lang\undefined
32+
\ClassError{FITthesis}{Language not specified}{Add option czech for Czech language or option english for English language.}
33+
\fi
34+
35+
36+
\LoadClass[a4paper,20pt]{extarticle}[1996/10/08]
37+
\RequirePackage[a4paper,textwidth=171mm,textheight=230mm,rmargin=20mm,tmargin=35mm]{geometry}[2002/07/08]
38+
39+
\RequirePackage{babel}[2008/07/06]
40+
41+
\if@inverse
42+
\RequirePackage{color}
43+
\pagecolor{blue}
44+
\color{white}
45+
\fi
46+
47+
\if\@lang1
48+
\RequirePackage[IL2]{fontenc}
49+
\RequirePackage{lmodern}
50+
\else
51+
\if\@lang2
52+
\RequirePackage[IL2]{fontenc}
53+
\RequirePackage{lmodern}
54+
\else
55+
\AtBeginDocument{\selectlanguage{UKenglish}}
56+
\fi
57+
\fi
58+
59+
\RequirePackage{palatino}
60+
61+
\RequirePackage{graphicx}
62+
63+
64+
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
65+
66+
\newif\if@titledefined
67+
\DeclareRobustCommand{\title}[1]{
68+
\def\thetitle{#1}
69+
\@titledefinedtrue
70+
}
71+
72+
\newif\if@authordefined
73+
\DeclareRobustCommand{\author}[1]{
74+
\def\theauthor{#1}
75+
\@authordefinedtrue
76+
}
77+
78+
\DeclareRobustCommand{\thesistype}{\if@thesistypedefined\if\@thesistype B\if\@lang1{BAKAL{\' A}{\v R}SK{\' A} PR{\' A}CE}\else\if\@lang2{BAKAL{\' A}RSKA PR{\' A}CA}\else{BACHELOR'S THESIS}\fi\fi\else\if\@thesistype M
79+
\if\@lang1{DIPLOMOV{\' A} PR{\' A}CE}\else\if\@lang2{DIPLOMOV{\' A} PR{\' A}CA}\else{MASTER'S THESIS}\fi\fi\else\ClassError{FITthesis}{Thesis type not specified}{Add option thesis=B for bachelor's thesis or option thesis=M for master's thesis.}\fi\fi\else\ClassError{FITthesis}{Thesis type not specified}{Add option thesis=B for bachelor's thesis or option thesis=M for master's thesis.}\fi}
80+
81+
82+
83+
84+
85+
\DeclareRobustCommand{\universitytitle}{%
86+
\if\@lang1{%
87+
{\v C}ESK{\' E} VYSOK{\' E} U{\v C}EN{\' I} TECHNICK{\' E} V PRAZE%
88+
}\else\if\@lang2{%
89+
{\v C}ESK{\' E} VYSOK{\' E} U{\v C}EN{\' I} TECHNICK{\' E} V PRAZE%
90+
}\else{%
91+
CZECH TECHNICAL UNIVERSITY IN PRAGUE%
92+
}\fi\fi
93+
}
94+
95+
\DeclareRobustCommand{\facultytitle}{%
96+
\if\@lang1{%
97+
FAKULTA INFORMA{\v C}N{\' I}CH TECHNOLOGI{\' I}
98+
}\else\if\@lang2{
99+
FAKULTA INFORMA{\v C}N{\' I}CH TECHNOLOGI{\' I}
100+
}\else{
101+
FACULTY OF INFORMATION TECHNOLOGY
102+
}\fi\fi
103+
}
104+
105+
106+
\AtBeginDocument{
107+
\pagestyle{empty}
108+
109+
\begin{center}
110+
\universitytitle
111+
112+
\vspace{10mm}
113+
114+
\facultytitle
115+
116+
\vspace{3cm}
117+
\if@inverse
118+
\includegraphics[height=5cm]{template/graphics/cvut-logo-w}
119+
\else
120+
\includegraphics[height=5cm]{template/graphics/cvut-logo-bw}
121+
\fi
122+
123+
\vspace{3cm}
124+
125+
\if@titledefined\thetitle\else\ClassError{FITboards}{Thesis' title unspecified}{Specify title of this thesis using the \protect\title\space command.}\fi
126+
127+
\vfill
128+
129+
\thesistype
130+
\end{center}
131+
132+
\vspace{10mm}
133+
134+
\the\year{} \hfill \if@authordefined\theauthor\else\ClassError{FITboards}{Thesis' author unspecified}{Specify author of this thesis (i.e. your name) using the \protect\author\space command.}\fi
135+
}

0 commit comments

Comments
 (0)