diff --git a/Makefile b/Makefile index f2077d3eaff99170eee7681c7a4df2a665e06e53..9fdb41a937ed6f54fbe60bcab7044d2ee0c1bf1a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: all clean clean-all install CLASSFILES=fit1[012].clo fithesis.cls fithesis[23].cls -AUXFILES=example.aux example.log example.out example.toc example.lot example.lof fithesis.aux fithesis.log fithesis.toc fithesis.ind fithesis.idx fithesis.out fithesis.ilg +AUXFILES=example.aux example.log example.out example.toc example.lot example.lof fithesis.aux fithesis.log fithesis.toc fithesis.ind fithesis.idx fithesis.out fithesis.ilg fithesis.gls fithesis.glo PDFFILES=fithesis.pdf example.pdf LOGOFILES=loga/eco-logo.pdf loga/fi-logo.pdf loga/fsps-logo.pdf loga/law-logo.pdf loga/med-logo.pdf loga/ped-logo.pdf loga/phil-logo.pdf loga/sci-logo.pdf loga/color/eco-logo.pdf loga/color/fi-logo.pdf loga/color/fsps-logo.pdf loga/color/law-logo.pdf loga/color/med-logo.pdf loga/color/ped-logo.pdf loga/color/phil-logo.pdf loga/color/sci-logo.pdf loga/eco-logo.eps loga/fi-logo.eps loga/fsps-logo.eps loga/law-logo.eps loga/med-logo.eps loga/ped-logo.eps loga/phil-logo.eps loga/sci-logo.eps loga/color/eco-logo.eps loga/color/fi-logo.eps loga/color/fsps-logo.eps loga/color/law-logo.eps loga/color/med-logo.eps loga/color/ped-logo.eps loga/color/phil-logo.eps loga/color/sci-logo.eps SOURCEFILE=fithesis.dtx @@ -25,7 +25,8 @@ fithesis3.cls: fithesis.ins fithesis.dtx # This target typesets the technical documentation. fithesis.pdf: fithesis.dtx pdflatex $< - makeindex fithesis + makeindex -s gind.ist fithesis + makeindex -s gglo.ist -o fithesis.gls fithesis.glo pdflatex $< # This target typesets the example. @@ -35,8 +36,8 @@ example.pdf: example.tex fithesis3.cls # This pseudo-target installs any non-auxiliary files # into the directory provided as the "to" argument. -install: all - if [ -z "$(to)" ]; then echo "Usage: make to=DIRECTORY install"; exit 1; fi +install: + @if [ -z "$(to)" ]; then echo "Usage: make to=DIRECTORY install"; exit 1; fi mkdir --parents "$(to)" cp --parents --verbose $(INSTALLFILES) "$(to)" diff --git a/example.pdf b/example.pdf index 7ce0efe9edea9b082e21048406aac46f94ec0ca4..481ea0759f5e322a8660873016809623b96e1b46 100644 Binary files a/example.pdf and b/example.pdf differ diff --git a/fit10.clo b/fit10.clo index b98a852ded7a23ffc8917bd06539db04d70bb6ac..90c56a7f7655ecd55e153c7ce86b0f0b13360357 100644 --- a/fit10.clo +++ b/fit10.clo @@ -49,6 +49,8 @@ %% %% The names of the source files used are shown above. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ProvidesFile{fit10.clo}[2015/01/21 fithesis3 (size option)] \renewcommand{\normalsize}{\fontsize\@xpt{12}\selectfont% diff --git a/fit11.clo b/fit11.clo index 08b68911f07dbf75a6262eb58c44391a6574cda2..246661496c8f982b3c27ee609e706b395a99eb30 100644 --- a/fit11.clo +++ b/fit11.clo @@ -49,6 +49,8 @@ %% %% The names of the source files used are shown above. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ProvidesFile{fit11.clo}[2015/01/21 fithesis3 (size option)] \renewcommand{\normalsize}{\fontsize\@xipt{14}\selectfont% diff --git a/fit12.clo b/fit12.clo index ea6d7feaabcdd74c84b85072334966ba835b2b63..c81e431846c9815c02e2f8654117fb5d20be0c95 100644 --- a/fit12.clo +++ b/fit12.clo @@ -49,6 +49,8 @@ %% %% The names of the source files used are shown above. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ProvidesFile{fit12.clo}[2015/01/21 fithesis3 (size option)] \renewcommand{\normalsize}{\fontsize\@xiipt{14.5}\selectfont% diff --git a/fithesis.cls b/fithesis.cls index 1e8a49d16ffd0d55860db89d9eb94ce0794abc83..9ea43c7da3c816ee5c34b240fa0a08195292f4fa 100644 --- a/fithesis.cls +++ b/fithesis.cls @@ -49,6 +49,8 @@ %% %% The names of the source files used are shown above. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} \ProvidesClass{oldfithesis1}[2015/01/21 old fithesis will load fithesis3 version 0.3.5 MU thesis class] diff --git a/fithesis.pdf b/fithesis.pdf index 94a58300225700527fd1b63be0aac790b564f309..485ac5d2e11e5cf763cafd6f597a0ea5fc324fac 100644 Binary files a/fithesis.pdf and b/fithesis.pdf differ diff --git a/fithesis.raw.dtx b/fithesis.raw.dtx index 96e633ad478092e80603d4529e5e2278e70fd371..456f6a3c5f2a37d3363b7ce92116b92b2c17937c 100644 --- a/fithesis.raw.dtx +++ b/fithesis.raw.dtx @@ -24,70 +24,13 @@ % and the derived files fithesis3.cls, fithesis2.cls, fithesis.cls, % fit10.clo, fit11.clo, fit12.clo. % -% History: -% 2015/01/21 v0.3.5 Added information about the usage of fithesis1 and -% fithesis2 on the FI unix machines (backport of v0.2.16) [VN] -% Minor changes throughout the text, added a link -% to the the fithesis forums [PS] (backport of v0.2.15@r14:15) -% 2015/01/14 v0.3.4 Import the url package to allow for the use of -% \url{} within the documentation. (backport of v0.2.15@r13) [VN] -% 2015/01/14 v0.3.3 Small fixes (added \relax at \MainMatter), -% generating both fithesis.cls (obsolete, loading -% fithesis2.cls) and fithesis2.cls, minor doc edits, -% version numbering of .clo fixed, switch to utf8 -% and ensuring that .dtx compiles. Documentation -% adjusted to the current status quo, added link -% to discussion forum (backport of v0.2.14) [PS] -% 2015/01/13 v0.3.2 pdf metadata stamping added for \thesistitle -% and \thesisstudent [VN] -% 2015/01/09 v0.3.1 documentation now uses babel and cmap packages [VN] -% the entire file was transcoded into utf8 [VN] -% \thesiscolor was replaced by color class option [VN] -% added pdf metadata stamping support [VN] -% 2015/01/01 v0.3.0 fi logo is no longer special-cased (added eps and pdf) [VN] -% \thesislogopath added to set the logo directory path [VN] -% \thesiscolor added to enable colorful typo elements [VN] -% 2008--2011 fork fithesis2 by Mr. FilipÄŤĂk and Janoušek; -% cf. github -% 2008/07/27 v0.2.12 Licence change to the LPPL [JP] -% 2008/01/07 v0.2.11 fix missing fi-logo.mf [JP,PS] -% 2006/05/12 v0.2.10 fix EN name of Acknowledgement [JP] -% 2006/05/08 v0.2.9 add EN version of University name [JP] -% 2006/01/20 v0.2.8 add change of University name [JP] -% 2005/05/10 v0.2.7 escape all czech letters [JP] -% babel is used instead of stupid package czech [JP] -% \MainMatter should be placed after \tablesofcontents [PS] -% 2004/12/22 v0.2.6 fix : behind Advisor [JP] -% 2004/05/13 v0.2.5 add english abstract [JP] -% 2004/05/13 v0.2.4 fix SK declaration [Peter Cerensky, JP] -% 2004/05/13 v0.2.3 fix title spacing [PS, JP] -% 2004/05/12 v0.2.2 fix encoding bug [JP] -% 2004/05/11 v0.2.1 add subsubsection to toc [JP] -% 2004/05/03 v0.2 add sk lang [JP, Peter Cerensky] -% set default cls class to rapport3 [JP] -% 2004/04/01 v0.1g change of default size (12pt->11pt) [JP] -% 2004/01/24 v0.1f add documentation for hyperref [JP] -% 2004/01/07 v0.1e add Brno to MU title [JP] -% 2003/03/24 v0.1d removed def schapter from fit1*.clo [JP] -% 2003/02/21 v0.1c default values of \facultyname and \@thesissubtitle -% set for backward compatibility) [PS] -% 2003/02/14 v0.1b change of default size (11pt->12pt) [JP] -% 2003/02/12 v0.1a minor documentation changes (CZ only, sorry) [PS] -% 2003/02/11 v0.1 new release, documentation editing (CZ only, sorry) [PS] -% 2002 - changes by Jan PavloviÄŤ to allow fithesis being -% backend of docbook based system for thesis writing -% 1998 - bachelor project of Daniel Marek under supervision of Petr Sojka -% % TODO: % - commented source, in english -% - index support % - adding reference to docbook % % \begin{macrocode} %<*driver> \documentclass{ltxdoc} -\makeindex -\usepackage{makeidx} \usepackage[utf8]{inputenc} % this file uses UTF-8 \usepackage[english]{babel} \usepackage{tgpagella} @@ -95,9 +38,25 @@ \usepackage[T1]{fontenc} % use 8bit fonts \usepackage{csquot,mflogo} \usepackage{url} -\usepackage{hyperref} -\EnableCrossrefs \emergencystretch 2dd + +\CodelineIndex % ltxdoc class index +\EnableCrossrefs +\GlossaryPrologue{ + \section*{ZmÄ›ny} +} +\IndexPrologue{ + \section*{RejstĹ™Ăk} + ÄŚĂslice vysázenĂ© kurzĂvou odkazujĂ na stránku, na kterĂ© je pĹ™Ăslušná +poloĹľka popsána. PodtrĹľenĂ© ÄŤĂslice odkazujĂ na řádek v kĂłdu, na kterĂ©m +je poloĹľka definována. ÄŚĂslice v základnĂm Ĺ™ezu odkazujĂ na řádky kĂłdu, +na nichĹľ je poloĹľka pouĹľita. +} +\AtEndDocument{\PrintIndex} +\DoNotIndex{\def,\gdef,\hypersetup,\ifx,\fi,\True,\False,\\else,\\end,\\begin,\',\\\\,\bf,\footnoterule,\footnotesize,\large,\Large,\let,\newpage,\newcommand,\pagenumbering,\pagestyle,\par,\parindent,\relax,\setcounter,\small,\v,\vfil,\vfill,\vskip,\newenvironment,\chapter,\cleardoublepage,\clearpage,\null,\\if@twoside,\includegraphics} +\AtBeginDocument{\RecordChanges} +\AtEndDocument{\PrintChanges} + \begin{document} \DocInput{fithesis.dtx} \end{document} @@ -105,8 +64,68 @@ % \end{macrocode} % \fi % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \changes{v0.3.5} {2015/01/21}{Added support for change typesetting. +% Restructured the code to make it more amenable to literal programming. +% Added support for \cs{CodelineIndex} typesetting. Added information about +% the usage of \textsf{fithesis1} and \textsf{fithesis2} on the FI unix +% machines. (backport of v0.2.16) [VN]\\Minor changes throughout the text, +% added a link to the the fithesis forums [PS] (backport of v0.2.15@r14:15)} +% \changes{v0.3.4} {2015/01/14}{Import the url package to allow for the use of +% \cs{url} within the documentation. (backport of v0.2.15@r13) [VN]} +% \changes{v0.3.3} {2015/01/14}{Small fixes (added \cs{relax} at +% \cs{MainMatter}), generating both fithesis.cls (obsolete, loading +% \texttt{fithesis2.cls}) and \texttt{fithesis2.cls}, minor doc edits, +% version numbering of \texttt{.clo} fixed, switch to utf8 and ensuring that +% \texttt{.dtx} compiles. Documentation adjusted to the status quo, added +% link to discussion forum (backport of v0.2.14) [PS]} +% \changes{v0.3.2} {2015/01/13}{pdf metadata stamping added for +% \cs{thesistitle} and \cs{thesisstudent} [VN]} +% \changes{v0.3.1} {2015/01/09}{documentation now uses babel and cmap packages. +% the entire file was transcoded into utf8, \cs{thesiscolor} was replaced by +% color class option, added pdf metadata stamping support [VN]} +% \changes{v0.3.0} {2015/01/01}{fi logo is no longer special-cased (added eps +% and pdf), \cs{thesislogopath} added to set the logo directory path, +% \cs{thesiscolor} added to enable colorful typo elements [VN]} +% \changes{v0.2.12a}{2008--2011}{fork fithesis2 by Mr. FilipÄŤĂk and Janoušek; +% cf. \protect\url{https://github.com/liskin/fithesis}} +% \changes{v0.2.12} {2008/07/27}{Licence change to the LPPL [JP]} +% \changes{v0.2.11} {2008/01/07}{fix missing \texttt{fi-logo.mf} [JP,PS]} +% \changes{v0.2.10} {2006/05/12}{fix EN name of Acknowledgement [JP]} +% \changes{v0.2.9} {2006/05/08}{add EN version of University name [JP]} +% \changes{v0.2.8} {2006/01/20}{add change of University name [JP]} +% \changes{v0.2.7} {2005/05/10}{escape all czech letters [JP] +% babel is used instead of stupid package czech [JP] +% \cs{MainMatter} should be placed after \cs{tablesofcontents} [PS]} +% \changes{v0.2.6} {2004/12/22}{fix : behind Advisor [JP]} +% \changes{v0.2.5} {2004/05/13}{add english abstract [JP]} +% \changes{v0.2.4} {2004/05/13}{fix SK declaration [Peter Cerensky, JP]} +% \changes{v0.2.3} {2004/05/13}{fix title spacing [PS, JP]} +% \changes{v0.2.2} {2004/05/12}{fix encoding bug [JP]} +% \changes{v0.2.1} {2004/05/11}{add subsubsection to toc [JP]} +% \changes{v0.2.0} {2004/05/03}{add sk lang [JP, Peter Cerensky] +% set default cls class to \textsf{rapport3} [JP]} +% \changes{v0.1g} {2004/04/01}{change of default size (12pt->11pt) [JP]} +% \changes{v0.1f} {2004/01/24}{add documentation for hyperref [JP]} +% \changes{v0.1e} {2004/01/07}{add Brno to MU title [JP]} +% \changes{v0.1d} {2003/03/24}{removed def schapter from fit1*.clo [JP]} +% \changes{v0.1c} {2003/02/21}{default values of \cs{facultyname} and +% \\\cs{@thesissubtitle} set for backward compatibility) [PS]} +% \changes{v0.1b} {2003/02/14}{change of default size (11pt->12pt) [JP]} +% \changes{v0.1a} {2003/02/12}{minor documentation changes (CZ only, +% sorry) [PS]} +% \changes{v0.1} {2003/02/11}{new release, documentation editing (CZ only, +% sorry) [PS]} +% \changes{v0.0a} {2002}{changes by Jan PavloviÄŤ to allow fithesis being +% backend of docbook based system for thesis writing} +% \changes{v0.0} {1998}{bachelor project of Daniel Marek under +% supervision of Petr Sojka} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % \newcommand{\bs}{\char`\\} -% \newcommand{\prikaz}[1]{\texttt{\bs #1}\index{#1@\texttt{\bs#1}}} +% \newcommand{\prikaz}[1]{\texttt{\bs #1}} % \newcommand{\fit}{\textsf{fithesis3}} % \newcommand{\itm}[1]{\noindent{\bf #1}} % \title{Sada maker \fit\ pro sazbu závÄ›reÄŤnĂ˝ch pracĂ MU} @@ -174,6 +193,7 @@ % \iffalse % \begin{macrocode} %<*class> + \NeedsTeXFormat{LaTeX2e} \ProvidesClass{fithesis3}[%%%date%%% fithesis3 version %%%version%%% MU thesis class] @@ -352,122 +372,214 @@ \def\@thesislang{cs} \def\@thesissubtitle{Diplomov\'{a} pr\'{a}ce} -\def\@thesislogopath{loga} % The loga directory by default +\def\@thesislogopath{loga/} % The loga directory by default \def\titlefont{\fontsize\@xxvpt{30}\selectfont} +% \end{macrocode} +% \fi +% +% \section{Popis jednotlivĂ˝ch maker} +% NásledujĂcĂ makra sloužà k vloĹľenĂ základnĂch ĂşdajĹŻ potĹ™ebnĂ˝ch +% k~vysazenĂ titulnĂ strany. Na titulnĂ stranu se kromÄ› názvu +% práce, jmĂ©na studenta a roku vypracovánĂ vysadĂ takĂ© logo fakulty. +% +% \DescribeMacro{\thesistitle} +% Makro umoĹľnĂ vloĹľit název práce, u dvouřádkovĂ˝ch +% ÄŤi vĂceřádkovĂ˝ch názvĹŻ se standardnÄ› oddÄ›lĂ jednotlivĂ© části +% pĹ™Ăkazem $\backslash$$\backslash$ s volitelnĂ˝m parametrem +% meziřádkovĂ©ho prokladu. +% \begin{macrocode} \def\thesistitle#1{ \hypersetup{pdftitle={#1}} \gdef\@thesistitle{#1} } +% \end{macrocode} +% +% \DescribeMacro{\thesisstudent} +% Makro umoĹľnĂ pomocĂ svĂ©ho jedinĂ©ho parametru vloĹľit jmĂ©no studenta. +% \begin{macrocode} \def\thesisstudent#1{ \hypersetup{pdfauthor={#1}} \gdef\@thesisstudent{#1} } +% \end{macrocode} +% +% \DescribeMacro{\thesisyear} +% Makro umoĹľnĂ vloĹľit rok vypracovánĂ práce. +% \begin{macrocode} \def\thesisyear#1{\gdef\@thesisyear{#1}} -\def\thesisplaceyear{Brno, \@thesisyear} +\def\@thesisplaceyear{Brno, \@thesisyear} +% \end{macrocode} +% +% \DescribeMacro{\thesissubtitle} +% Makro umoĹľnĂ vloĹľit název typu práce, napĹ™. bakalářská práce +% diplomová práce atd. +% \begin{macrocode} \def\thesissubtitle#1{\gdef\@thesissubtitle{#1}} -\def\thesislogopath#1{\gdef\@thesislogopath{#1}} +% \end{macrocode} +% +% \DescribeMacro{\thesislogopath} +% Makro umoĹľnĂ stanovit cestu k adresáři s logy fakult. +% ImplicitnĂ hodnota je \texttt{loga/} pro práce psanĂ© pod MU +% a prázdnĂ˝ Ĺ™etÄ›zec pro práce psanĂ© mimo MU. +% \begin{macrocode} +\def\thesislogopath#1{\gdef\@thesislogopath{#1/}} +% \end{macrocode} +% +% \DescribeMacro{\thesisuniversity} +% Makro umoĹľnĂ stanovit pod jakou univerzitou byla práce napsána. +% Má vĂ˝znam jen v pĹ™ĂpadÄ›, Ĺľe práce nenĂ psaná pod MU. +% \begin{macrocode} \def\thesisuniversity#1{\gdef\@thesisuniversity{#1}} +% \end{macrocode} +% +% \DescribeMacro{\thesislogo} +% Makro umoĹľnĂ stanovit soubor (bez pĹ™Ăpony) loga fakulty pod +% jakou byla práce napsaná. +% Má vĂ˝znam jen v~pĹ™ĂpadÄ›, Ĺľe práce nenĂ psaná pod MU. +% \begin{macrocode} \def\thesislogo#1{\gdef\@thesislogo{#1}} +% \end{macrocode} +% +% \DescribeMacro{\thesisadvisor} +% Makro umoĹľnĂ vloĹľit jmĂ©no vedoucĂho práce. +% \begin{macrocode} \def\thesisadvisor#1{\gdef\@thesisadvisor{#1}} -\def\thesisfaculty#1{\gdef\@thesisfaculty{#1} -\def\@slash{/} -\def\@facultylogo{\@thesislogopath\ifx\@thesiscolor\True% - \@slash color% -\fi\@slash\@thesisfaculty-logo} -\ifx\@thesisfaculty\Fi - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Informatics} - \def\universityname{Masaryk University} - \else \def\facultyname{Fakulta informatiky} - \fi - \else \ifx\@thesisfaculty\Sci - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Science} - \def\universityname{Masaryk University} - \else \def\facultyname{P\v{r}\'{i}rodov\v{e}deck\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Law - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Law} - \def\universityname{Masaryk University} - \else \def\facultyname{Pr\'{a}vnick\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Eco - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Economics and Administration} - \def\universityname{Masaryk University} - \else \def\facultyname{Ekonomicko-spr\'{a}vn\'{i} fakulta} - \fi - \else \ifx\@thesisfaculty\Fss - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Social Studies} - \def\universityname{Masaryk University} - \else \def\facultyname{Fakulta soci\'{a}ln\'{i}ch studi\'{i}} - \fi - \else \ifx\@thesisfaculty\Med - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Medicine} - \def\universityname{Masaryk University} - \else \def\facultyname{L\'{e}ka\v{r}sk\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Ped - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Education} - \def\universityname{Masaryk University} - \else \def\facultyname{Pedagogick\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Phil - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Arts} - \def\universityname{Masaryk University} - \else \def\facultyname{Filozofick\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Fsps +% \end{macrocode} +% +% \DescribeMacro{\thesisfaculty} +% Makro umoĹľnĂ stanovit pod jakou fakultou byla práce napsána. Podle toho +% se takĂ© vložà patĹ™iÄŤnĂ© logo a název fakulty na titulnĂ stránku. +% Jsou podporovány tyto fakulty MU: +% \begin{itemize} +% \item Fakulta informatiky -- fi +% \item PĹ™ĂrodovÄ›decká fakulta -- sci, +% \item Právnická fakulta -- law, +% \item Ekonomicko-správnĂ fakulta -- eco, +% \item Fakulta sociálnĂch studiĂ -- fss, +% \item LĂ©kaĹ™ská fakulta -- med, +% \item Pedagogická fakulta -- ped, +% \item Filozofická fakulta -- phil +% \end{itemize} +% napĹ™Ăklad: \prikaz{thesisfaculty\{fi\}}. +% Lze pouĹľĂt i vlastnĂ název, pokud práce nenĂ psaná pod +% žádnou z~výše uvedenĂ˝ch fakult MU, pak je nutnĂ© zadat +% i název univerzity \prikaz{thesisuniversity\{\}}, +% jmĂ©no souboru loga fakulty (bez pĹ™Ăpony) +% \prikaz{thesislogo\{\}} a tĂ©Ĺľ do makra +% \prikaz{thesisyear\{\}} sĂdlo danĂ© univerzity +% (pro MU toto nenĂ tĹ™eba). +% \begin{macrocode} +\def\thesisfaculty#1{ + \gdef\@thesisfaculty{#1} + \def\@slash{/} + \def\@facultylogo{\@thesislogopath\ifx\@thesiscolor\True% + color\@slash% + \fi\@thesisfaculty-logo} + \ifx\@thesisfaculty\Fi \ifx\@thesislang\Langen - \def\facultyname{Faculty of Sports Studies} + \def\facultyname{Faculty of Informatics} \def\universityname{Masaryk University} - \else \def\facultyname{Fakulta sportovn\'{i}ch studi\'{i}} - \fi - \else - \def\facultyname{\@thesisfaculty} - \def\universityname{\@thesisuniversity} - \def\@thesislogopath{.} % The current directory by default - \def\@facultylogo{\@thesislogopath/\@thesislogo} - \def\thesisplaceyear{\@thesisyear} + \else \def\facultyname{Fakulta informatiky} + \fi + \else \ifx\@thesisfaculty\Sci + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Science} + \def\universityname{Masaryk University} + \else \def\facultyname{P\v{r}\'{i}rodov\v{e}deck\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Law + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Law} + \def\universityname{Masaryk University} + \else \def\facultyname{Pr\'{a}vnick\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Eco + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Economics and Administration} + \def\universityname{Masaryk University} + \else \def\facultyname{Ekonomicko-spr\'{a}vn\'{i} fakulta} + \fi + \else \ifx\@thesisfaculty\Fss + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Social Studies} + \def\universityname{Masaryk University} + \else \def\facultyname{Fakulta soci\'{a}ln\'{i}ch studi\'{i}} + \fi + \else \ifx\@thesisfaculty\Med + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Medicine} + \def\universityname{Masaryk University} + \else \def\facultyname{L\'{e}ka\v{r}sk\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Ped + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Education} + \def\universityname{Masaryk University} + \else \def\facultyname{Pedagogick\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Phil + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Arts} + \def\universityname{Masaryk University} + \else \def\facultyname{Filozofick\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Fsps + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Sports Studies} + \def\universityname{Masaryk University} + \else \def\facultyname{Fakulta sportovn\'{i}ch studi\'{i}} + \fi + \else + \def\facultyname{\@thesisfaculty} + \def\universityname{\@thesisuniversity} + \def\@thesislogopath{} % Zero directory by default + \def\@facultylogo{\@thesislogopath/\@thesislogo} + \fi + \fi \fi \fi \fi \fi \fi \fi - \fi \fi -\fi } +% \end{macrocode} +% +% \iffalse +% \begin{macrocode} \newif\if@restonecol - \def\alwayssingle{% -\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi} + \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi} \def\endalwayssingle{\if@restonecol\twocolumn\fi} -%</class> +\newif\ifwoman\womanfalse +\def\@w{\ifwoman a\else\fi} + % \end{macrocode} % \fi % -% \iffalse +% \DescribeMacro{\thesiswoman} +% Makro umoĹľnĂ vloĹľit pohlavĂ studenta. Volby jsou: true, false. +% (nahrazuje pouĹľitĂ pĹ™epĂnaÄŤe \prikaz{ifwoman}). % \begin{macrocode} -%<*class> - -\newif\ifwoman\womanfalse -\def\@w{\ifwoman{a}\else\fi} \def\thesiswoman#1{\gdef\@thesiswoman{#1} -\ifx\@thesiswoman\True\def\@w{a}\else\def\@w{}\fi} - + \ifx\@thesiswoman\True\womantrue\else\womanfalse\fi} +% \end{macrocode} +% +% \DescribeMacro{\thesislang} +% Makro umoĹľnĂ stanovit jazyk, ve kterĂ©m je práce napsána. V~souÄŤasnĂ© +% dobÄ› jsou podporovány varianty cs nebo cz, sk a en. Jazyk je tĹ™eba +% stanovit pĹ™ed pouĹľitĂm pĹ™Ăkazu \prikaz{thesisfaculty}, jinak dojde +% k vysázenĂ jmĂ©na fakulty v ÄŤeštinÄ›. +% \begin{macrocode} \def\thesislang#1{\gdef\@thesislang{#1}% \ifx\@thesislang\Langcz\gdef\@thesislang{cs}\fi} - +% \end{macrocode} +% \iffalse +% \begin{macrocode} \def\DeclarationTextcs{% Prohla\v{s}uji, \v{z}e tato \expandafter\lowecasewrapper\@thesissubtitle{} je m\'{y}m p\r{u}vodn\'{i}m autorsk\'{y}m @@ -576,216 +688,47 @@ \fi \fi} \@thesisadvisor} -\def\FrontMatter{% -\pagestyle{plain} -\parindent 1.5em -\setcounter{page}{1} -\pagenumbering{roman}} - -\newcommand{\ThesisTitlePage}{% -\begin{alwayssingle} -\thispagestyle{empty} -\begin{center} -{\sc \universityname\\ \facultyname} -\vskip 1.4em - -\includegraphics[width=40mm]{\@facultylogo}\\[0.4in] - -\let\footnotesize\small -\let\footnoterule\relax{} -{\titlefont\bf\@thesistitle\par\vfil}\vskip 0.8in -{\sc \@thesissubtitle}\\[0.3in] -{\Large\bf\@thesisstudent} -\par\vfill -{\large \thesisplaceyear} -\end{center} -\end{alwayssingle} -\newpage} - -\newenvironment{ThesisDeclaration}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\DeclarationTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\DeclarationTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\DeclarationTitleen} - \else \chapter*{\DeclarationTitlecs} - \fi - \fi -\fi} -{\par\vfil -\end{alwayssingle} -\newpage} - -\newenvironment{ThesisThanks}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\ThanksTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\ThanksTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\ThanksTitleen} - \else \chapter*{\ThanksTitlecs} - \fi - \fi -\fi} -{\par\vfill -\end{alwayssingle} -\newpage} - -\newenvironment{ThesisAbstract}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\AbstractTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\AbstractTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\AbstractTitleen} - \else \chapter*{\AbstractTitlecs} - \fi - \fi -\fi} -{\par\vfil\null -\end{alwayssingle} -\newpage} - -\newenvironment{ThesisAbstracten}{% -\begin{alwayssingle} -\chapter*{\AbstractTitleen} -} -{\par\vfil\null -\end{alwayssingle} -\newpage} - -\newenvironment{ThesisKeyWords}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\KeyWordsTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\KeyWordsTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\KeyWordsTitleen} - \else \chapter*{\KeyWordsTitlecs} - \fi - \fi -\fi} -{\par\vfill -\end{alwayssingle} -\newpage} - -\def\MainMatter{% -\if@twoside - \clearpage - \thispagestyle{empty} - \cleardoublepage -\else - \clearpage -\fi -\setcounter{page}{1} -\pagenumbering{arabic} -\pagestyle{thesisheadings} -\parindent 1.5em\relax} - -%</class> % \end{macrocode} % \fi % -% \section{Popis jednotlivĂ˝ch maker} -% NásledujĂcĂ makra sloužà k vloĹľenĂ základnĂch ĂşdajĹŻ potĹ™ebnĂ˝ch -% k~vysazenĂ titulnĂ strany. Na titulnĂ stranu se kromÄ› názvu -% práce, jmĂ©na studenta a roku vypracovánĂ vysadĂ takĂ© logo fakulty. -% -% \begin{macro}{\thesistitle} -% Makro umoĹľnĂ vloĹľit název práce, u dvouřádkovĂ˝ch -% ÄŤi vĂceřádkovĂ˝ch názvĹŻ se standardnÄ› oddÄ›lĂ jednotlivĂ© části -% pĹ™Ăkazem $\backslash$$\backslash$ s volitelnĂ˝m parametrem -% meziřádkovĂ©ho prokladu. -% \end{macro} -% -% \begin{macro}{\thesissubtitle} -% Makro umoĹľnĂ vloĹľit název typu práce, napĹ™. bakalářská práce -% diplomová práce atd. -% \end{macro} -% -% \begin{macro}{\thesisstudent} -% Makro umoĹľnĂ pomocĂ svĂ©ho jedinĂ©ho parametru vloĹľit jmĂ©no studenta. -% \end{macro} -% -% \begin{macro}{\thesiswoman} -% Makro umoĹľnĂ vloĹľit pohlavĂ studenta, volby jsou: true, false -% (nahrazuje pouĹľitĂ pĹ™epĂnaÄŤe \prikaz{ifwoman}). -% \end{macro} -% -% \begin{macro}{\thesisfaculty} -% Makro umoĹľnĂ stanovit pod jakou fakultou byla práce napsána. Podle toho -% se takĂ© vložà patĹ™iÄŤnĂ© logo a název fakulty na titulnĂ stránku. -% Jsou podporovány tyto fakulty MU: -% \begin{itemize} -% \item Fakulta informatiky -- fi -% \item PĹ™ĂrodovÄ›decká fakulta -- sci, -% \item Právnická fakulta -- law, -% \item Ekonomicko-správnĂ fakulta -- eco, -% \item Fakulta sociálnĂch studiĂ -- fss, -% \item LĂ©kaĹ™ská fakulta -- med, -% \item Pedagogická fakulta -- ped, -% \item Filozofická fakulta -- phil -% \end{itemize} -% napĹ™Ăklad: \prikaz{thesisfaculty\{fi\}}. -% Lze pouĹľĂt i vlastnĂ název, pokud práce nenĂ psaná pod -% žádnou z~výše uvedenĂ˝ch fakult MU, pak je nutnĂ© zadat -% i název univerzity \prikaz{thesisuniversity\{\}}, -% jmĂ©no souboru loga fakulty (bez pĹ™Ăpony) -% \prikaz{thesislogo\{\}} a tĂ©Ĺľ do makra -% \prikaz{thesisyear\{\}} sĂdlo danĂ© univerzity -% (pro MU toto nenĂ tĹ™eba). -% \end{macro} -% -% \begin{macro}{\thesisyear} -% Makro umoĹľnĂ vloĹľit rok vypracovánĂ práce. -% \end{macro} -% -% \begin{macro}{\thesisadvisor} -% Makro umoĹľnĂ vloĹľit jmĂ©no vedoucĂho práce. -% \end{macro} -% -% \begin{macro}{\thesisuniversity} -% Makro umoĹľnĂ stanovit pod jakou univerzitou byla práce napsána. -% Má vĂ˝znam jen v pĹ™ĂpadÄ›, Ĺľe práce nenĂ psaná pod MU. -% \end{macro} -% -% \begin{macro}{\thesislogopath} -% Makro umoĹľnĂ stanovit cestu k adresáři s logy fakult. ImplicitnĂ hodnota -% je \texttt{loga/} pro práce psanĂ© pod MU a \texttt{./} pro práce psanĂ© mimo MU. -% \end{macro} -% -% \begin{macro}{\thesislogo} -% Makro umoĹľnĂ stanovit soubor (bez pĹ™Ăpony) loga fakulty pod -% jakou byla práce napsaná. -% Má vĂ˝znam jen v~pĹ™ĂpadÄ›, Ĺľe práce nenĂ psaná pod MU. -% \end{macro} -% -% \begin{macro}{\thesislang} -% Makro umoĹľnĂ stanovit jazyk, ve kterĂ©m je práce napsána. V~souÄŤasnĂ© -% dobÄ› jsou podporovány varianty cs nebo cz, sk a en. Jazyk je tĹ™eba -% stanovit pĹ™ed pouĹľitĂm pĹ™Ăkazu \prikaz{thesisfaculty}, jinak dojde -% k vysázenĂ jmĂ©na fakulty v ÄŤeštinÄ›. -% \end{macro} -% -% \begin{macro}{\ThesisTitlePage} -% TitulnĂ strana práce se vysadĂ pĹ™Ăkazem -% \prikaz{ThesisTitlePage} a vyuĹľije pĹ™edem zadanĂ˝ch Ăşdaje -% názvu práce a jmĂ©na studenta a roku vypracovánĂ. -% \end{macro} -% -% \begin{macro}{\FrontMatter} +% \DescribeMacro{\FrontMatter} % Toto makro se vložà na začátek dokumentu (nejlĂ©pe za pĹ™Ăkaz % \prikaz{begin\{document\}}). % PrvnĂ strany dokumentu obsahujĂcĂch prohlášenĂ, abstrakt a klĂÄŤová % slova se nastavĂ na Ĺ™ĂmskĂ© ÄŤĂslovánĂ. U~dalšĂch stran vÄŤetnÄ› % obsahu a následujĂcĂch kapitol se pomocĂ makra \prikaz{MainMatter} % nastavĂ arabskĂ© ÄŤĂslovánĂ. -% \end{macro} +% \begin{macrocode} +\def\FrontMatter{% + \pagestyle{plain} + \parindent 1.5em + \setcounter{page}{1} + \pagenumbering{roman}} +% \end{macrocode} +% +% \DescribeMacro{\ThesisTitlePage} +% TitulnĂ strana práce se vysadĂ pĹ™Ăkazem +% \prikaz{ThesisTitlePage} a vyuĹľije pĹ™edem zadanĂ© Ăşdaje +% názvu práce, jmĂ©na studenta a roku vypracovánĂ. +% \begin{macrocode} +\newcommand{\ThesisTitlePage}{% + \begin{alwayssingle} + \thispagestyle{empty} + \begin{center} + {\sc \universityname\\ \facultyname} + \vskip 1.4em + \includegraphics[width=40mm]{\@facultylogo}\\[0.4in] + \let\footnotesize\small + \let\footnoterule\relax{} + {\titlefont\bf\@thesistitle\par\vfil}\vskip 0.8in + {\sc \@thesissubtitle}\\[0.3in] + {\Large\bf\@thesisstudent} + \par\vfill + {\large \@thesisplaceyear} + \end{center} + \end{alwayssingle} + \newpage} +% \end{macrocode} % % \subsubsection*{PovinnĂ© části diplomovĂ© práce} % NásledujĂcĂ makra jsou potĹ™ebná k vysazenĂ povinnĂ˝ch částĂ diplomovĂ© @@ -799,7 +742,7 @@ % \textit{obsah diplomovĂ© práce\/} jiĹľ sázĂ pomocĂ % standardnĂch \LaTeX ovĂ˝ch pĹ™ĂkazĹŻ. % -% \begin{macro}{ThesisDeclaration} +% \DescribeMacro{ThesisDeclaration} % ProstĹ™edĂ \texttt{ThesisDeclaration} vysadĂ stránku % s~prohlášenĂm o samostatnĂ©m vypracovánĂ % diplomovĂ© práce. Text tohoto prohlášenĂ mĹŻĹľe uĹľivatel pĹ™edefinovat @@ -814,39 +757,129 @@ % \end{quote} % Dále se vložà makro \prikaz{AdvisorName}, kterĂ© vysázĂ % Ăşdaje o vedoucĂm práce. -% \end{macro} +% \begin{macrocode} +\newenvironment{ThesisDeclaration}{% + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\DeclarationTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\DeclarationTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\DeclarationTitleen} + \else \chapter*{\DeclarationTitlecs} + \fi + \fi + \fi} + {\par\vfil + \end{alwayssingle} + \newpage} +% \end{macrocode} % -% \begin{macro}{ThesisThanks} +% \DescribeMacro{ThesisThanks} % Toto prostĹ™edĂ umoĹľnĂ vysadit \textit{podÄ›kovánĂ\/}. -% \end{macro} -% \begin{macro}{ThesisAbstract} +% \begin{macrocode} +\newenvironment{ThesisThanks}{% + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\ThanksTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\ThanksTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\ThanksTitleen} + \else \chapter*{\ThanksTitlecs} + \fi + \fi + \fi} + {\par\vfill + \end{alwayssingle} + \newpage} +% \end{macrocode} +% +% \DescribeMacro{ThesisAbstract} % \textit{ShrnutĂ\/} diplomovĂ© práce je moĹľno vysadit pomocĂ % prostĹ™edĂ \texttt{ThesisAbstract}. ShrnutĂ by mÄ›lo % zabĂrat prostor nejvýše jednĂ© strany. -% \end{macro} +% \begin{macrocode} +\newenvironment{ThesisAbstract}{% + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\AbstractTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\AbstractTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\AbstractTitleen} + \else \chapter*{\AbstractTitlecs} + \fi + \fi + \fi} + {\par\vfil\null + \end{alwayssingle} + \newpage} +% \end{macrocode} % -% \begin{macro}{ThesisAbstracten} +% \DescribeMacro{ThesisAbstracten} % \textit{Abstract\/} diplomovĂ© práce v~angliÄŤtinÄ› je % moĹľno vysadit pomocĂ prostĹ™edĂ \texttt{ThesisAbstracten}. % Abstract by mÄ›l zabĂrat prostor nejvýše jednĂ© strany. -% \end{macro} +% \begin{macrocode} +\newenvironment{ThesisAbstracten}{% + \begin{alwayssingle} + \chapter*{\AbstractTitleen} + } + {\par\vfil\null + \end{alwayssingle} + \newpage} +% \end{macrocode} % -% \begin{macro}{ThesisKeyWords} +% \DescribeMacro{ThesisKeywords} % \textit{KlĂÄŤová slova\/} oddÄ›lená čárkami se vepĂšà % do prostĹ™edĂ \texttt{ThesisKeyWords}. -% \end{macro} +% \begin{macrocode} +\newenvironment{ThesisKeyWords}{% + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\KeyWordsTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\KeyWordsTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\KeyWordsTitleen} + \else \chapter*{\KeyWordsTitlecs} + \fi + \fi + \fi} + {\par\vfill + \end{alwayssingle} + \newpage} +% \end{macrocode} % -% \begin{macro}{\MainMatter} +% \DescribeMacro{MainMatter} % Makro \prikaz{MainMatter} nastavĂ kromÄ› arabskĂ©ho ÄŤĂslovánĂ stránek % takĂ© implicitnĂ styl stránky pro sazbu následujĂcĂch kapitol. V~tomto % stylu se do hlaviÄŤky stránky vkládá název aktuálnĂ kapitoly a od % ostatnĂho textu se záhlavĂ oddÄ›lĂ horizontálnĂ ÄŤarou. -% \end{macro} +% \begin{macrocode} +\def\MainMatter{% +\if@twoside + \clearpage + \thispagestyle{empty} + \cleardoublepage +\else + \clearpage +\fi +\setcounter{page}{1} +\pagenumbering{arabic} +\pagestyle{thesisheadings} +\parindent 1.5em\relax} +% \end{macrocode} +% \iffalse +%</class> +% \fi % % Dalšà text diplomovĂ© práce (obsah, Ăşvod, jednotlivĂ© kapitoly a části, % popĹ™ĂpadÄ› závÄ›r, literatura ÄŤi dodatky) se jiĹľ sázĂ standardnĂmi % pĹ™Ăkazy. Následuje zjednodušenĂ˝ ukázkovĂ˝ pĹ™Ăklad % \textit{kostry} diplomovĂ© práce. +% % \begin{verbatim} % \documentclass[12pt,oneside]{fithesis3} % \usepackage[english]{babel} % Multilingual support @@ -905,7 +938,6 @@ % \end{document} % \end{verbatim} % \newpage -% \printindex % \iffalse % \begin{macrocode} %<*class> diff --git a/fithesis.raw.sh b/fithesis.raw.sh index f9d26b127cdf20a1a4b461e0694be54d9be5c058..20704b7ee7fb66c00faf5c8afce2d561411fac45 100755 --- a/fithesis.raw.sh +++ b/fithesis.raw.sh @@ -1,16 +1,18 @@ #!/bin/sh -# This file reads the following sequence of lines from $1: +# This script finds the latest occurance of a \changes command (sorted by +# the version number) in "$1" and parses the VERSION and DATE out of it: # -# % History: -# % ????/??/?? v?.??.?? (...) +# \changes{vVERSION}{DATE} (important: must be on the same line) # # It then takes $1, replaces every occurance of %%%date%%% with ????/??/??, # every occurance of %%%version%%% with ?.??.?? and every occurance of # %%%year%%% with ???? and stores the result in $2. -LINE="$(head -n $(($(fgrep -n '% History:' "$1" | sed s/:.*//) + 1)) "$1" | tail -n 1)" -DATE="$(echo "$LINE" | sed 's#% \(..../../..\).*#\1#')" -YEAR="$(echo "$DATE" | head -c 4)" -VERSION="$(echo "$LINE" | sed 's#% ..../../.. v\([^ ]*\).*#\1#')" -echo "Generating file $2 for [$DATE fithesis3 version $VERSION MU thesis class]" -< "$1" sed s#%%%date%%%#$DATE#g\;s/%%%year%%%/$YEAR/g\;s/%%%version%%%/$VERSION/g > "$2" +REGEX='.*\(\\changes\s*{v\([^}]*\)}\s*{\([^}]*\)}\).*' +LINE="$(grep "$REGEX" "$1" | sed s/"$REGEX"/\\1/ | sort -Vr | head -n 1)" +VERS="$(printf '%s' "$LINE" | sed s/"$REGEX"/\\2/)" +DATE="$(printf '%s' "$LINE" | sed s/"$REGEX"/\\3/)" +YEAR="$(printf '%s' "$DATE" | head -c 4)" + +echo "Generating file $2 for [$DATE fithesis3 version $VERS MU thesis class]" +< "$1" sed s#%%%date%%%#$DATE#g\;s/%%%year%%%/$YEAR/g\;s/%%%version%%%/$VERS/g > "$2" diff --git a/fithesis2.cls b/fithesis2.cls index 8db8b3a86ef6c484bb5ed4c592d593d568747838..4260a8369151963e139e6ce9c1bc72718b3deb11 100644 --- a/fithesis2.cls +++ b/fithesis2.cls @@ -49,6 +49,8 @@ %% %% The names of the source files used are shown above. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} \ProvidesClass{oldfithesis2}[2015/01/21 old fithesis2 will load fithesis3 version 0.3.5 MU thesis class] diff --git a/fithesis3.cls b/fithesis3.cls index 0bc08567e9bfc9336c990a742ac223453cd4a6f1..cae22ee194f097d2b84667ecb750afce4fe5ea2c 100644 --- a/fithesis3.cls +++ b/fithesis3.cls @@ -49,6 +49,9 @@ %% %% The names of the source files used are shown above. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \NeedsTeXFormat{LaTeX2e} \ProvidesClass{fithesis3}[2015/01/21 fithesis3 version 0.3.5 MU thesis class] @@ -172,7 +175,7 @@ \def\@thesislang{cs} \def\@thesissubtitle{Diplomov\'{a} pr\'{a}ce} -\def\@thesislogopath{loga} % The loga directory by default +\def\@thesislogopath{loga/} % The loga directory by default \def\titlefont{\fontsize\@xxvpt{30}\selectfont} \def\thesistitle#1{ @@ -184,103 +187,100 @@ \gdef\@thesisstudent{#1} } \def\thesisyear#1{\gdef\@thesisyear{#1}} -\def\thesisplaceyear{Brno, \@thesisyear} +\def\@thesisplaceyear{Brno, \@thesisyear} \def\thesissubtitle#1{\gdef\@thesissubtitle{#1}} -\def\thesislogopath#1{\gdef\@thesislogopath{#1}} +\def\thesislogopath#1{\gdef\@thesislogopath{#1/}} \def\thesisuniversity#1{\gdef\@thesisuniversity{#1}} \def\thesislogo#1{\gdef\@thesislogo{#1}} \def\thesisadvisor#1{\gdef\@thesisadvisor{#1}} -\def\thesisfaculty#1{\gdef\@thesisfaculty{#1} -\def\@slash{/} -\def\@facultylogo{\@thesislogopath\ifx\@thesiscolor\True% - \@slash color% -\fi\@slash\@thesisfaculty-logo} -\ifx\@thesisfaculty\Fi - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Informatics} - \def\universityname{Masaryk University} - \else \def\facultyname{Fakulta informatiky} - \fi - \else \ifx\@thesisfaculty\Sci - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Science} - \def\universityname{Masaryk University} - \else \def\facultyname{P\v{r}\'{i}rodov\v{e}deck\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Law - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Law} - \def\universityname{Masaryk University} - \else \def\facultyname{Pr\'{a}vnick\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Eco - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Economics and Administration} - \def\universityname{Masaryk University} - \else \def\facultyname{Ekonomicko-spr\'{a}vn\'{i} fakulta} - \fi - \else \ifx\@thesisfaculty\Fss - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Social Studies} - \def\universityname{Masaryk University} - \else \def\facultyname{Fakulta soci\'{a}ln\'{i}ch studi\'{i}} - \fi - \else \ifx\@thesisfaculty\Med - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Medicine} - \def\universityname{Masaryk University} - \else \def\facultyname{L\'{e}ka\v{r}sk\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Ped - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Education} - \def\universityname{Masaryk University} - \else \def\facultyname{Pedagogick\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Phil - \ifx\@thesislang\Langen - \def\facultyname{Faculty of Arts} - \def\universityname{Masaryk University} - \else \def\facultyname{Filozofick\'{a} fakulta} - \fi - \else \ifx\@thesisfaculty\Fsps +\def\thesisfaculty#1{ + \gdef\@thesisfaculty{#1} + \def\@slash{/} + \def\@facultylogo{\@thesislogopath\ifx\@thesiscolor\True% + color\@slash% + \fi\@thesisfaculty-logo} + \ifx\@thesisfaculty\Fi \ifx\@thesislang\Langen - \def\facultyname{Faculty of Sports Studies} + \def\facultyname{Faculty of Informatics} \def\universityname{Masaryk University} - \else \def\facultyname{Fakulta sportovn\'{i}ch studi\'{i}} - \fi - \else - \def\facultyname{\@thesisfaculty} - \def\universityname{\@thesisuniversity} - \def\@thesislogopath{.} % The current directory by default - \def\@facultylogo{\@thesislogopath/\@thesislogo} - \def\thesisplaceyear{\@thesisyear} + \else \def\facultyname{Fakulta informatiky} + \fi + \else \ifx\@thesisfaculty\Sci + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Science} + \def\universityname{Masaryk University} + \else \def\facultyname{P\v{r}\'{i}rodov\v{e}deck\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Law + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Law} + \def\universityname{Masaryk University} + \else \def\facultyname{Pr\'{a}vnick\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Eco + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Economics and Administration} + \def\universityname{Masaryk University} + \else \def\facultyname{Ekonomicko-spr\'{a}vn\'{i} fakulta} + \fi + \else \ifx\@thesisfaculty\Fss + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Social Studies} + \def\universityname{Masaryk University} + \else \def\facultyname{Fakulta soci\'{a}ln\'{i}ch studi\'{i}} + \fi + \else \ifx\@thesisfaculty\Med + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Medicine} + \def\universityname{Masaryk University} + \else \def\facultyname{L\'{e}ka\v{r}sk\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Ped + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Education} + \def\universityname{Masaryk University} + \else \def\facultyname{Pedagogick\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Phil + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Arts} + \def\universityname{Masaryk University} + \else \def\facultyname{Filozofick\'{a} fakulta} + \fi + \else \ifx\@thesisfaculty\Fsps + \ifx\@thesislang\Langen + \def\facultyname{Faculty of Sports Studies} + \def\universityname{Masaryk University} + \else \def\facultyname{Fakulta sportovn\'{i}ch studi\'{i}} + \fi + \else + \def\facultyname{\@thesisfaculty} + \def\universityname{\@thesisuniversity} + \def\@thesislogopath{} % Zero directory by default + \def\@facultylogo{\@thesislogopath/\@thesislogo} + \fi + \fi \fi \fi \fi \fi \fi \fi - \fi \fi -\fi } \newif\if@restonecol - \def\alwayssingle{% -\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi} + \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi} \def\endalwayssingle{\if@restonecol\twocolumn\fi} - \newif\ifwoman\womanfalse -\def\@w{\ifwoman{a}\else\fi} -\def\thesiswoman#1{\gdef\@thesiswoman{#1} -\ifx\@thesiswoman\True\def\@w{a}\else\def\@w{}\fi} +\def\@w{\ifwoman a\else\fi} +\def\thesiswoman#1{\gdef\@thesiswoman{#1} + \ifx\@thesiswoman\True\womantrue\else\womanfalse\fi} \def\thesislang#1{\gdef\@thesislang{#1}% \ifx\@thesislang\Langcz\gdef\@thesislang{cs}\fi} - \def\DeclarationTextcs{% Prohla\v{s}uji, \v{z}e tato \expandafter\lowecasewrapper\@thesissubtitle{} je m\'{y}m p\r{u}vodn\'{i}m autorsk\'{y}m @@ -389,103 +389,94 @@ Advisor: \fi} \@thesisadvisor} \def\FrontMatter{% -\pagestyle{plain} -\parindent 1.5em -\setcounter{page}{1} -\pagenumbering{roman}} - + \pagestyle{plain} + \parindent 1.5em + \setcounter{page}{1} + \pagenumbering{roman}} \newcommand{\ThesisTitlePage}{% -\begin{alwayssingle} -\thispagestyle{empty} -\begin{center} -{\sc \universityname\\ \facultyname} -\vskip 1.4em - -\includegraphics[width=40mm]{\@facultylogo}\\[0.4in] - -\let\footnotesize\small -\let\footnoterule\relax{} -{\titlefont\bf\@thesistitle\par\vfil}\vskip 0.8in -{\sc \@thesissubtitle}\\[0.3in] -{\Large\bf\@thesisstudent} -\par\vfill -{\large \thesisplaceyear} -\end{center} -\end{alwayssingle} -\newpage} - + \begin{alwayssingle} + \thispagestyle{empty} + \begin{center} + {\sc \universityname\\ \facultyname} + \vskip 1.4em + \includegraphics[width=40mm]{\@facultylogo}\\[0.4in] + \let\footnotesize\small + \let\footnoterule\relax{} + {\titlefont\bf\@thesistitle\par\vfil}\vskip 0.8in + {\sc \@thesissubtitle}\\[0.3in] + {\Large\bf\@thesisstudent} + \par\vfill + {\large \@thesisplaceyear} + \end{center} + \end{alwayssingle} + \newpage} \newenvironment{ThesisDeclaration}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\DeclarationTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\DeclarationTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\DeclarationTitleen} - \else \chapter*{\DeclarationTitlecs} - \fi - \fi -\fi} -{\par\vfil -\end{alwayssingle} -\newpage} - + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\DeclarationTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\DeclarationTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\DeclarationTitleen} + \else \chapter*{\DeclarationTitlecs} + \fi + \fi + \fi} + {\par\vfil + \end{alwayssingle} + \newpage} \newenvironment{ThesisThanks}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\ThanksTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\ThanksTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\ThanksTitleen} - \else \chapter*{\ThanksTitlecs} - \fi - \fi -\fi} -{\par\vfill -\end{alwayssingle} -\newpage} - + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\ThanksTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\ThanksTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\ThanksTitleen} + \else \chapter*{\ThanksTitlecs} + \fi + \fi + \fi} + {\par\vfill + \end{alwayssingle} + \newpage} \newenvironment{ThesisAbstract}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\AbstractTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\AbstractTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\AbstractTitleen} - \else \chapter*{\AbstractTitlecs} - \fi - \fi -\fi} -{\par\vfil\null -\end{alwayssingle} -\newpage} - + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\AbstractTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\AbstractTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\AbstractTitleen} + \else \chapter*{\AbstractTitlecs} + \fi + \fi + \fi} + {\par\vfil\null + \end{alwayssingle} + \newpage} \newenvironment{ThesisAbstracten}{% -\begin{alwayssingle} -\chapter*{\AbstractTitleen} -} -{\par\vfil\null -\end{alwayssingle} -\newpage} - + \begin{alwayssingle} + \chapter*{\AbstractTitleen} + } + {\par\vfil\null + \end{alwayssingle} + \newpage} \newenvironment{ThesisKeyWords}{% -\begin{alwayssingle} -\ifx\@thesislang\Langcs - \chapter*{\KeyWordsTitlecs} - \else \ifx\@thesislang\Langsk - \chapter*{\KeyWordsTitlesk} - \else \ifx\@thesislang\Langen - \chapter*{\KeyWordsTitleen} - \else \chapter*{\KeyWordsTitlecs} - \fi - \fi -\fi} -{\par\vfill -\end{alwayssingle} -\newpage} - + \begin{alwayssingle} + \ifx\@thesislang\Langcs + \chapter*{\KeyWordsTitlecs} + \else \ifx\@thesislang\Langsk + \chapter*{\KeyWordsTitlesk} + \else \ifx\@thesislang\Langen + \chapter*{\KeyWordsTitleen} + \else \chapter*{\KeyWordsTitlecs} + \fi + \fi + \fi} + {\par\vfill + \end{alwayssingle} + \newpage} \def\MainMatter{% \if@twoside \clearpage @@ -499,7 +490,6 @@ Advisor: \pagestyle{thesisheadings} \parindent 1.5em\relax} - \renewcommand*\l@part[2]{% \ifnum \c@tocdepth >-2\relax \addpenalty{-\@highpenalty}%