From aefe535c383b2364d97715f0cf4d2c0d483a3d09 Mon Sep 17 00:00:00 2001
From: Ondrej Guth <ondrej.guth@fit.cvut.cz>
Date: Tue, 12 Oct 2021 12:24:50 +0200
Subject: [PATCH] theorems, definitions, etc. moved from class to demo document

---
 ctufit-thesis.cls | 20 ++++----------------
 ctufit-thesis.tex | 17 +++++++++++++++++
 2 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/ctufit-thesis.cls b/ctufit-thesis.cls
index 7752880..cf6b03d 100644
--- a/ctufit-thesis.cls
+++ b/ctufit-thesis.cls
@@ -140,6 +140,8 @@
 
 \DeclareRobustCommand{\thectufitlollabel}{\if\@ctufitlang C{Seznam v{\'y}pis{\r u} k{\'o}du}\else\if\@ctufitlang S{Zoznam v{\'y}pisov k{\'o}du}\else{List of code listings}\fi\fi}
 
+\DeclareRobustCommand{\thectufitdeclarationlabel{\if\@ctufitlang C{Prohlášení}\else\if\@ctufitlang E{Declaration}\else{Vyhlásenie}\fi\fi}}
+
 
 \DeclareRobustCommand{\thectufitcopyrighttext}{\if\@ctufitlang C{Tato pr{\' a}ce vznikla jako {\v s}koln{\' i} d{\' i}lo na {\v C}esk{\' e}m vysok{\' e}m u{\v c}en{\' i} technick{\' e}m v~Praze, Fakult{\v e} informa{\v c}n{\' i}ch technologi{\' i}. Pr{\' a}ce je chr{\' a}n{\v e}na pr{\' a}vn{\' i}mi p{\v r}edpisy a mezin{\' a}rodn{\' i}mi {\' u}mluvami o~pr{\' a}vu autorsk{\' e}m a pr{\' a}vech souvisej{\' i}c{\' i}ch s~pr{\' a}vem autorsk{\' y}m. K~jej\'\i{}mu u\v zit\'\i{}, s~v\'yjimkou bez\'uplatn\'ych z\'akonn\'ych licenc\'\i{} a nad r\'amec opr\'avn\v en\'\i{} uveden\'ych v~Prohl\'a\v sen\'\i{} na p\v redchoz\'\i{} stran\v e, je nezbytn\'y souhlas autora.}\else\if\@ctufitlang S{T\'ato pr\'aca vznikla ako \v skolsk\'e dielo na  FIT \v CVUT v Prahe. Pr\'aca je chr\'anen\'a medzin\'arodn\'ymi predpismi a zmluvami o autorskom pr\'ave a pr\'avach s\'uvisiacich s autorsk\'ym pr\'avom. Na jej vyu\v zitie, s~v\'ynimkou bezplatn\'ych z\'akonn\'ych licenci\'\i, je nutn\'y s\'uhlas autora.}\else{This thesis is school work as defined by Copyright Act of the Czech Republic. It has been submitted at Czech Technical University in Prague, Faculty of Information Technology. The thesis is protected by the Copyright Act and its usage without author's permission is prohibited (with exceptions defined by the Copyright Act).}\fi\fi}
 
@@ -341,11 +343,11 @@
 % acknowledgment page END
 
 % declaration page
-\newenvironment{declarationpage}{\frontchapternotprinted{\if\@ctufitlang C{Prohlášení}\else\if\@ctufitlang E{Declaration}\else{Vyhlásenie}\fi\fi}
+\newenvironment{declarationpage}{\frontchapternotprinted{\thectufitdeclarationlabel}
 ~
 \vfill
 
-  {{\frontchapterfont\begin{flushright}{\color{heading}\if\@ctufitlang C{Prohlášení}\else\if\@ctufitlang E{Declaration}\else{Vyhlásenie}\fi\fi}\end{flushright}}}%
+  {{\frontchapterfont\begin{flushright}{\color{heading}\thectufitdeclarationlabel}\end{flushright}}}%
   \bigskip
   \noindent\ignorespaces
 }{\vskip 1cm
@@ -439,20 +441,6 @@
 }{%
   \popQED\endtrivlist%\@endpefalse
 }
-\theoremstyle{plain}
-\newtheorem{theorem}{Věta}
-\newtheorem{lemma}[theorem]{TvrzenĂ­}
-\newtheorem{corollary}[theorem]{DĹŻsledek}
-\newtheorem{proposition}[theorem]{Návrh}
-\newtheorem{definition}[theorem]{Definice}
-\theoremstyle{definition}
-\newtheorem{example}[theorem]{Příklad}
-\theoremstyle{remark}
-\newtheorem{note}[theorem]{Poznámka}
-\newtheorem*{note*}{Poznámka}
-\newtheorem{remark}[theorem]{Pozorování}
-\newtheorem*{remark*}{Pozorování}
-\numberwithin{theorem}{chapter}
 % theorems, proofs, definitions, etc. end
 
 \DeclareRobustCommand{\printabstractpage}{%
diff --git a/ctufit-thesis.tex b/ctufit-thesis.tex
index 84afee6..3bfa200 100644
--- a/ctufit-thesis.tex
+++ b/ctufit-thesis.tex
@@ -92,6 +92,23 @@
 \addbibresource{text/bib-database.bib}
 \usepackage{listings} % typesetting of sources
 % \usepackage{minted} % typesetting of sources
+
+%theorems, definitions, etc.
+\theoremstyle{plain}
+\newtheorem{theorem}{Věta}
+\newtheorem{lemma}[theorem]{TvrzenĂ­}
+\newtheorem{corollary}[theorem]{DĹŻsledek}
+\newtheorem{proposition}[theorem]{Návrh}
+\newtheorem{definition}[theorem]{Definice}
+\theoremstyle{definition}
+\newtheorem{example}[theorem]{Příklad}
+\theoremstyle{remark}
+\newtheorem{note}[theorem]{Poznámka}
+\newtheorem*{note*}{Poznámka}
+\newtheorem{remark}[theorem]{Pozorování}
+\newtheorem*{remark*}{Pozorování}
+\numberwithin{theorem}{chapter}
+%theorems, definitions, etc. END
 %%%%%%%%%%%%%%%%%%%%%%
 % DEMO CONTENTS SETTINGS END
 %%%%%%%%%%%%%%%%%%%%%%
-- 
GitLab