diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/fithesis/style/mu/med.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/fithesis/style/mu/med.dtx | 184 |
1 files changed, 117 insertions, 67 deletions
diff --git a/Master/texmf-dist/source/latex/fithesis/style/mu/med.dtx b/Master/texmf-dist/source/latex/fithesis/style/mu/med.dtx index 812e4c7273d..aa514412e52 100644 --- a/Master/texmf-dist/source/latex/fithesis/style/mu/med.dtx +++ b/Master/texmf-dist/source/latex/fithesis/style/mu/med.dtx @@ -1,13 +1,21 @@ % \file{style/mu/fithesis-med.sty} +% \changes{v1.0.0}{2021/02/21}{Files were renamed after +% breaking changes in package loading after PR 438 in \LaTeXe. [VN]} +% \changes{v1.0.0}{2021/03/19}{Updated urls to show the most recent +% requirements and recommendations used in preparation of the +% template. [TV]} % This is the style file for the theses written at the Faculty of % Medicine at the Masaryk University in Brno. It has been prepared % in accordance with the formal requirements published at the -% website of the Department of Optometry and Orthoptics\footnote^^A -% {See \url{http://is.muni.cz/do/med/zpravyprac/Optometrie/NALE^^A -% ZITOSTI_ZAVERECNE_PRACE.doc}}. +% website of the faculty \footnote {See \url{https://is.muni.cz/do/^^A +% med/uredni_deska/pravni_normy/smernice_dekana/2020/smernice_lf_mu^^A +% _2_2020_-_pokyny_k_formalnim_nalezitostem_zaverecnych_bakalarskyc^^A +% h/Smernice_LF_MU_2-2020_-_Pokyny_k_formalnim_nalezitostem_zaverec^^A +% nych_bakalarskych_a_diplomovych_praci_vypracovanych_na_Lekarske_f^^A +% akulte_MU.pdf}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fithesis/style/mu/fithesis-med}[2018/06/11] +\ProvidesPackage{fithesis/style/mu/fithesis-mu-med}[2021/04/24] % \end{macrocode} % The file defines the color scheme of the respective faculty. Note % the the color definitions are in RGB, which makes the resulting @@ -19,14 +27,52 @@ tableOdd={HTML}{FFF5F6}, tableEven={HTML}{FFDEDF}} % \end{macrocode} -% The bibliography support is enabled. The |authoryear| citations +% The bibliography support is enabled. The |authortitle| citations % are used and the bibliography is sorted by year, name, and title. % \begin{macrocode} \thesis@bibliography@setup{% - style=iso-authoryear, + style=authortitle, sorting=ynt} \thesis@bibliography@load % \end{macrocode} +% The AMA citation style is defined using |authortitle| as the basis. +% The following code has been adapted from +% \url{https://tex.stackexchange.com/a/233423/70941}. +% \changes{v1.0.0}{2021/03/26}{^^A +% The Faculty of Medicine at the Masaryk University in Brno uses the +% AMA citation and reference style. [VN]} +% \begin{macrocode} +\ifthesis@bibliography@loaded@ + \DeclareNameAlias{sortname}{last-first} + \renewcommand*{\revsdnamepunct}{} + \DeclareFieldFormat[% + article,inbook,incollection,inproceedings,patent,thesis,unpublished]% + {title}{{#1\isdot}} + \renewbibmacro{in:}{} + \DeclareFieldFormat{pages}{#1} + \renewcommand*{\bibpagespunct}{\addcolon} + \DeclareFieldFormat{journaltitle}{#1\addperiod} + \DeclareFieldFormat{booktitle}{{#1}} + \DeclareFieldFormat{title}{{#1}} + \renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \usebibmacro{issue+date}% + \setunit{\addsemicolon\addspace}% + \usebibmacro{volume+number+eid}% + \setunit{\addcolon\space}% + \usebibmacro{issue}% + \newunit% + } + \renewbibmacro*{issue+date}{\printfield{year}} + \renewcommand*{\finalnamedelim}{\multinamedelim} +\fi +% \end{macrocode} % The file loads the following packages: % \begin{itemize} % \item\textsf{tikz} -- Used for dimension arithmetic. @@ -44,64 +90,60 @@ \thesis@require{setspace} \geometry{top=25mm,bottom=20mm,left=25mm,right=25mm,includeheadfoot} % \end{macrocode} -% \begin{macro}{\thesis@blocks@cover} -% The |\thesis@blocks@cover| macro typesets the thesis -% cover. -% \begin{macrocode} -\def\thesis@blocks@cover{% - \ifthesis@cover@ - \thesis@blocks@clear - \begin{alwayssingle} - \thispagestyle{empty} - \begin{center} - {\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\% - \thesis@titlePage@Large\thesis@@{facultyName}\\} - \vfill - {\bf\thesis@titlePage@Huge\thesis@@{typeName}} - \vfill - {\thesis@titlePage@large\thesis@place - \ \thesis@year\hfill\thesis@author} - \end{center} - \end{alwayssingle} - \fi} -% \end{macrocode} -% \end{macro} -% The style file redefines the title page content -% not to include the author's name and the title page footer -% to include both the author's and advisor's name, the field of -% study and the semester and place of the thesis defense in -% accordance with the requirements of the department. -% \begin{macrocode} -\def\thesis@blocks@titlePage@content{% - {\thesis@titlePage@Huge\bf\thesis@TeXtitle\\[0.3in]}% - {\thesis@titlePage@large{\sc\thesis@@{typeName}}\\}} -\def\thesis@blocks@titlePage@footer{% - {\thesis@titlePage@large - {% Calculate the width of the thesis author and advisor boxes - \let\@A\relax\newlength{\@A}\settowidth{\@A}{{% - \bf\thesis@@{advisorTitle}:}} - \let\@B\relax\newlength{\@B}\settowidth{\@B}{\thesis@advisor} - \let\@C\relax\newlength{\@C}\settowidth{\@C}{{% - \bf\thesis@@{authorTitle}:}} - \let\@D\relax\newlength{\@D}\settowidth{\@D}{\thesis@author} - \let\@E\relax\newlength{\@E}\settowidth{\@E}{{% - \bf\thesis@@{fieldTitle}:}} - \let\@F\relax\newlength{\@F}\settowidth{\@F}{\thesis@field@name} - \let\@left\relax\newlength{\@left}\pgfmathsetlength{\@left}{% - max(\@A,\@B)} - \let\@right\relax\newlength{\@right}\pgfmathsetlength{\@right}{% - max(\@C,\@D,\@E,\@F)} -% \end{macrocode} +% The style file configures the upper part of the title page headers +% to include the the name of the department and the study programme +% which are by default in the bottom part of the title page. Upon failure +% of the \textit{xpatchcmd}, \cs{thesis@xpatchError} is called. % \changes{v0.3.49}{2018/02/11}{Removed an extraneous \cs{vskip} in % the style files for the Masaryk University in Brno. [VN]} -% \begin{macrocode} - % Typeset the thesis author and advisor boxes - \begin{minipage}[t]{\@left} - {\bf\thesis@@{advisorTitle}:}\\\thesis@advisor - \end{minipage}\hfill\begin{minipage}[t]{\@right} - {\bf\thesis@@{authorTitle}:}\\\thesis@author - \\[1em]{\bf\thesis@@{fieldTitle}:}\\\thesis@field@name - \end{minipage}}\\[4em]\thesis@place, \thesis@@{semester}}} +% \changes{v1.0.0}{2021/02/26}{^^A +% The style files for the Faculty of Medicine +% at the Masaryk University in Brno +% no longer redefine the \cs{thesis@blocks@titlePage@footer} +% and \cs{thesis@blocks@titlePage@content} macros, which are no +% longer defined. [VN]} +% \changes{v1.0.0}{2021/03/22}{Added redefinition of the titlePage +% layout as per the faculty requirements. Department name and +% programme are in the upper part of the titlePage. [TV]} +% \changes{v1.0.0}{2021/04/23}{^^A +% The style files of the Faculty of Medicine at the Masary University +% in Brno no longer redefine the \cs{thesis@blocks@cover} macro. +% [TV]} +% \changes{v1.0.0}{2021/05/06}{Added conditional redefinition for the +% study field. [TV]} +% \begin{macrocode} +\thesis@blocks@titlePage@field@false + +\thesis@xpatch\thesis@blocks@titlePage{% + {\sf\thesis@titlePage@large\thesis@@{advisorTitle}: \thesis@advisor\par}% + \vspace{0.75cm}% + \ifthesis@blocks@titlePage@department@ + {\sf\thesis@titlePage@large\thesis@department@name\par}% + \fi + \ifthesis@blocks@titlePage@programme@ + \vspace{0.25cm}% + {\sf\thesis@titlePage@large\thesis@@{bib@programme}: + \thesis@programme\par}% + \fi + \ifthesis@blocks@titlePage@field@ + \vspace{0.25cm}% + {\sf\thesis@titlePage@large\thesis@@{fieldTitle}: + \thesis@field@name\par}% + \fi + \vfill +}{} + +\thesis@xpatch\thesis@blocks@titlePage{% + {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}% + \vfill +}{% + {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}% + \vspace{0.5cm}% + {\sf\thesis@titlePage@large\thesis@programme\par}% + \vspace{0.25cm}% + {\sf\thesis@titlePage@large\thesis@department@name\par}% + \vspace{1cm}% +} % \end{macrocode} % \begin{macro}{\thesis@blocks@frontMatter} % The |\thesis@blocks@frontMatter| macro sets up the style of the @@ -143,20 +185,28 @@ % All blocks within the autolayout preamble and postamble that are % not defined within this file are defined in the % \texttt{style/mu/fithesis-base.sty} file. +% \changes{v1.0.0}{2021/03/22}{Reorganised the blocks to fit the +% faculty's requirements. [TV]} +% \changes{v1.0.0}{2021/04/24}{^^A +% Change \cs{thesis@facultyLogo}, +% \cs{thesis@blocks@facultyLogo@monochrome}, and +% \cs{thesis@blocks@facultyLogo@color} to use the new logotype +% of the Masaryk University in Brno in the correct size and +% localization. Add \cs{thesis@blocks@seal}. [VN]} % \begin{macrocode} \def\thesis@blocks@preamble{% \thesis@blocks@coverMatter \thesis@blocks@cover \thesis@blocks@frontMatter \thesis@blocks@titlePage - \onehalfspacing - \thesis@blocks@clearRight + \thesis@blocks@seal + \thesis@blocks@declaration + \thesis@blocks@clear \thesis@blocks@abstract - \thesis@blocks@abstractEn \thesis@blocks@keywords + \thesis@blocks@clear + \thesis@blocks@abstractEn \thesis@blocks@keywordsEn - \thesis@blocks@bibEntry - \thesis@blocks@declaration \thesis@blocks@thanks \thesis@blocks@tables} \def\thesis@blocks@postamble{% |