From a77a4522f9aa2caa6bf10c084ae30e15447d833f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Guth?= <ondrej.guth@fit.cvut.cz> Date: Wed, 9 Aug 2023 13:33:38 +0200 Subject: [PATCH] issue 20: electronic/print optimization driven by the class option `oneside` --- ctufit-thesis.cls | 30 ++++++++++++++-------------- ctufit-thesis.tex | 50 ++++++++++++++++++++++++++--------------------- text/medium.tex | 4 ++-- text/text.tex | 6 +++--- 4 files changed, 48 insertions(+), 42 deletions(-) diff --git a/ctufit-thesis.cls b/ctufit-thesis.cls index 00dd917..38b3be0 100644 --- a/ctufit-thesis.cls +++ b/ctufit-thesis.cls @@ -51,11 +51,11 @@ \PassOptionsToPackage{english,main=slovak}{babel} \def\@ctufitlang{S} } -\ExecuteOptions{unicode,twoside} -\ProcessOptions +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} +\ExecuteOptions{unicode} +\ProcessOptions\relax % main declarations, loading files - \LoadClass[a4paper]{book}[2020/04/10] \RequirePackage{babel}[2021/03/03] \RequirePackage[bottom=4cm,footskip=4em]{geometry}[2020/01/02] %page layout @@ -67,19 +67,19 @@ \RequirePackage{titlesec}[2019/10/16] \ifdefined\@ctufitthesisblackandwhite -\definecolor{decoration}{RGB}{0, 0, 0} %CTU blue -\definecolor{heading}{RGB}{0, 0, 0} -\definecolor{headbackgroundgray}{RGB}{208, 208, 208} %light blue -\definecolor{backgroundgray}{RGB}{240, 240, 240} %CTU light blue -\definecolor{headgray}{rgb}{0.50,0.50,0.50} -\definecolor{enumgray}{RGB}{0, 0, 0} %CTU blue + \definecolor{decoration}{RGB}{0, 0, 0} %CTU blue + \definecolor{heading}{RGB}{0, 0, 0} + \definecolor{headbackgroundgray}{RGB}{208, 208, 208} %light blue + \definecolor{backgroundgray}{RGB}{240, 240, 240} %CTU light blue + \definecolor{headgray}{rgb}{0.50,0.50,0.50} + \definecolor{enumgray}{RGB}{0, 0, 0} %CTU blue \else - \definecolor{decoration}{RGB}{0, 122, 195} %CTU blue - \definecolor{heading}{RGB}{0, 122, 195} - \definecolor{headbackgroundgray}{RGB}{199, 219, 241} %light blue - \definecolor{backgroundgray}{RGB}{199, 219, 241} %CTU light blue - \definecolor{headgray}{rgb}{0.50,0.50,0.51} - \definecolor{enumgray}{RGB}{0, 122, 195} %CTU blue + \definecolor{decoration}{RGB}{0, 122, 195} %CTU blue + \definecolor{heading}{RGB}{0, 122, 195} + \definecolor{headbackgroundgray}{RGB}{199, 219, 241} %light blue + \definecolor{backgroundgray}{RGB}{199, 219, 241} %CTU light blue + \definecolor{headgray}{rgb}{0.50,0.50,0.51} + \definecolor{enumgray}{RGB}{0, 122, 195} %CTU blue \fi % colors end diff --git a/ctufit-thesis.tex b/ctufit-thesis.tex index ffbca40..7f39045 100644 --- a/ctufit-thesis.tex +++ b/ctufit-thesis.tex @@ -24,13 +24,19 @@ %% %% +% arara: pdflatex +% arara: biber +% arara: pdflatex +% arara: pdflatex + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % CLASS OPTIONS % language: czech/english/slovak % thesis type: bachelor/master/dissertation % colour: bw for black&white OR no option for default colour scheme +% electronic or printed: oneside/twoside (default) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\documentclass[czech,bachelor,unicode]{ctufit-thesis} +\documentclass[czech,bachelor,unicode,oneside]{ctufit-thesis} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FILL IN THIS INFORMATION @@ -176,27 +182,27 @@ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hen % OR REMOVE ENTIRELY (upon agreement with your supervisor) % (appropriate to remove in most theses) %%%%%%%%%%%%%%%%%%% -\begin{summarypage} -\section*{Summary section} - -\lipsum[1][1-8] - -\section*{Summary section} - -\lipsum[2][1-6] - -\section*{Summary section} - -\lipsum[3] - -\section*{Summary section} - -\lipsum[2] - -\section*{Summary section} - -\lipsum[1][1-8] Lorem lorem lorem. -\end{summarypage} +% \begin{summarypage} +% \section*{Summary section} +% +% \lipsum[1][1-8] +% +% \section*{Summary section} +% +% \lipsum[2][1-6] +% +% \section*{Summary section} +% +% \lipsum[3] +% +% \section*{Summary section} +% +% \lipsum[2] +% +% \section*{Summary section} +% +% \lipsum[1][1-8] Lorem lorem lorem. +% \end{summarypage} %%%%%%%%%%%%%%%%%%% % SUMMARY END %%%%%%%%%%%%%%%%%%% diff --git a/text/medium.tex b/text/medium.tex index 7416a4f..4b55839 100644 --- a/text/medium.tex +++ b/text/medium.tex @@ -1,5 +1,5 @@ -\chapter{Obsah pĹ™iloĹľenĂ©ho mĂ©dia} - +\chapter{Obsah elektronickĂ© pĹ™Ălohy} +% Concents of the attachment \dirtree{% .1 readme.txt\DTcomment{struÄŤnĂ˝ popis obsahu mĂ©dia}. diff --git a/text/text.tex b/text/text.tex index 2681ae3..c296f66 100644 --- a/text/text.tex +++ b/text/text.tex @@ -251,9 +251,9 @@ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos \lipsum[1-2] -\subsection{Class aptent taciti sociosqu} - -\lipsum[4-5] +% \subsection{Class aptent taciti sociosqu} +% +% \lipsum[4-5] %--------------------------------------------------------------- \chapter{Lorem ipsum} -- GitLab