Commit cadd3a9d authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Renamed `pages@frontMatter` to `pages@preamble`,added `pages@postamble`.

Renaming was necessary, `fithesis3.cls` has no notion of front matter.
parent 9937ad59
Loading
Loading
Loading
Loading
+41 −24
Original line number Original line Diff line number Diff line
@@ -1285,17 +1285,25 @@
    \thesis@autofalse
    \thesis@autofalse
  \fi}
  \fi}
%    \end{macrocode}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@pages@frontMatter}
% \end{macro}\begin{macro}{\thesis@pages@preamble}
% The \cs{thesis@pages@frontMatter} macro contains the last page
% The \cs{thesis@pages@preamble} macro contains the last page
% number within the front matter of the document. During the
% number within the preamble of the document. During the first
% first \TeX{} compilation, the macro expands to ??.
% \TeX{} compilation, the macro expands to ??.
% \changes{v0.3.45}{2017/05/24}{Defined the
% \changes{v0.3.45}{2017/05/24}{Defined the
%   \cs{thesis@pages@frontMatter} macro in
%   \cs{thesis@pages@preamble} and \cs{thesis@pages@postamble}
%   \texttt{style/mu/fithesis-base.sty}. The patch was submitted
%   macros in \texttt{style/mu/fithesis-base.sty}. The patch was
%   by Juraj Pálenik. [VN]}
%   submitted by Juraj Pálenik. [VN]}
% \begin{macrocode}
% \begin{macrocode}
\ifx\thesis@pages@frontMatter\undefined
\ifx\thesis@pages@preamble\undefined
  \def\thesis@pages@frontMatter{??}\fi
  \def\thesis@pages@preamble{??}\fi
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@pages@postamble}
% The \cs{thesis@pages@postamble} macro contains the last page
% number prior to the postamble of the document. During the first
% \TeX{} compilation, the macro expands to ??.
% \begin{macrocode}
\ifx\thesis@pages@postamble\undefined
  \def\thesis@pages@postamble{??}\fi
%    \end{macrocode}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% The \DescribeMacro{\thesis@preamble}|\thesis@preamble|
% The \DescribeMacro{\thesis@preamble}|\thesis@preamble|
@@ -1306,34 +1314,43 @@
% \DescribeMacro{\thesis@blocks@preamble}|\thesis@blocks@preamble|
% \DescribeMacro{\thesis@blocks@preamble}|\thesis@blocks@preamble|
% or
% or
% \DescribeMacro{\thesis@blocks@postamble}|\thesis@blocks@postamble|
% \DescribeMacro{\thesis@blocks@postamble}|\thesis@blocks@postamble|
% macros, respectively.
% macros, respectively; the latter two macros are to be redefined
% by the loaded style files.
%
%
% Before leaving the group, the |\thesis@preamble| macro defines
% After expanding |\thesis@blocks@preamble| inside a \TeX{} group,
% the \cs{thesis@pages@frontMatter} macro, writes the definition
% the |\thesis@preamble| macro defines the
% to the auxiliary file, and  clears the page. After leaving the
% \cs{thesis@pages@preamble} macro, writes the definition to the
% group, th |\thesis@preamble| sets up the style of the main
% auxiliary file, and  clears the page. After leaving the group,
% matter by expanding the
% the |\thesis@preamble| sets up the style of the main matter by
% expanding the
% \DescribeMacro{\thesis@blocks@mainMatter}|\thesis@blocks@mainMatter|
% \DescribeMacro{\thesis@blocks@mainMatter}|\thesis@blocks@mainMatter|
% macro. All the aforementioned |@block@| macros are defined as
% macro.
% |\relax| and are subject to redefinition by the loaded style
% files.
%    \begin{macrocode}
%    \begin{macrocode}
\def\thesis@preamble{%
\def\thesis@preamble{%
  {\thesis@selectLocale{\thesis@locale}%
  {\thesis@selectLocale{\thesis@locale}%
  \thesis@blocks@preamble
  \thesis@blocks@preamble
  \gdef\thesis@pages@frontMatter{\thepage}
  \gdef\thesis@pages@preamble{\thepage}
  \write\@auxout{\noexpand\gdef\noexpand
  \write\@auxout{\noexpand\gdef\noexpand
    \thesis@pages@frontMatter{\thepage}}
    \thesis@pages@preamble{\thepage}}
  \clearpage}
  \clearpage}
  \thesis@blocks@mainMatter}
  \thesis@blocks@mainMatter}


\def\thesis@postamble{{%
\let\thesis@blocks@preamble\relax
  \thesis@selectLocale{\thesis@locale}%
\let\thesis@blocks@mainMatter\relax
% \end{macro}
% Before expanding |\thesis@blocks@postamble| inside a \TeX{}
% group, the |\thesis@postamble| macro defines the
% \cs{thesis@pages@postamble} macro, writes the definition to the
% auxiliary file, and  clears the page.
%    \begin{macrocode}
\def\thesis@postamble{%
  \gdef\thesis@pages@postamble{\thepage}
  \write\@auxout{\noexpand\gdef\noexpand
    \thesis@pages@postamble{\thepage}}
  {\thesis@selectLocale{\thesis@locale}%
  \thesis@blocks@postamble}}
  \thesis@blocks@postamble}}


\let\thesis@blocks@preamble\relax
\let\thesis@blocks@postamble\relax
\let\thesis@blocks@postamble\relax
\let\thesis@blocks@mainMatter\relax
%    \end{macrocode}
%    \end{macrocode}
% \end{macro} ^^A The nested \ifthesis@auto macro definition
% \end{macro} ^^A The nested \ifthesis@auto macro definition
% \subsubsection{The \texttt{extra} key}
% \subsubsection{The \texttt{extra} key}
+3 −3
Original line number Original line Diff line number Diff line
@@ -182,7 +182,7 @@
      \textbf{\thesis@@{bib@academicYear}:}
      \textbf{\thesis@@{bib@academicYear}:}
        & \thesis@academicYear \\
        & \thesis@academicYear \\
      \textbf{\thesis@@{bib@pages}:}
      \textbf{\thesis@@{bib@pages}:}
        & \thesis@pages@frontMatter{} + \thesis@pages \\
        & \thesis@pages@preamble{} + \thesis@pages \\
      \textbf{\thesis@@{bib@keywords}:}
      \textbf{\thesis@@{bib@keywords}:}
        & \thesis@TeXkeywords \\
        & \thesis@TeXkeywords \\
    \end{thesis@newtable@old}}
    \end{thesis@newtable@old}}
@@ -251,7 +251,7 @@
          \textbf{\thesis@english@bib@academicYear:}
          \textbf{\thesis@english@bib@academicYear:}
            & \thesis@academicYear \\
            & \thesis@academicYear \\
          \textbf{\thesis@english@bib@pages:}
          \textbf{\thesis@english@bib@pages:}
            & \thesis@pages@frontMatter{} + \thesis@pages \\
            & \thesis@pages@preamble{} + \thesis@pages \\
          \textbf{\thesis@english@bib@keywords:}
          \textbf{\thesis@english@bib@keywords:}
            & \thesis@TeXkeywordsEn \\
            & \thesis@TeXkeywordsEn \\
        \end{thesis@newtable@old}}
        \end{thesis@newtable@old}}
@@ -411,7 +411,7 @@
          \textbf{\thesis@czech@bib@academicYear:}
          \textbf{\thesis@czech@bib@academicYear:}
            & \thesis@academicYear \\
            & \thesis@academicYear \\
          \textbf{\thesis@czech@bib@pages:}
          \textbf{\thesis@czech@bib@pages:}
            & \thesis@pages@frontMatter{} + \thesis@pages \\
            & \thesis@pages@preamble{} + \thesis@pages \\
          \textbf{\thesis@czech@bib@keywords:}
          \textbf{\thesis@czech@bib@keywords:}
            & \thesis@extra@TeXkeywordsCs \\
            & \thesis@extra@TeXkeywordsCs \\
        \end{thesis@newtable@old}}
        \end{thesis@newtable@old}}