Commit 4fd90d12 authored by Vít Novotný's avatar Vít Novotný
Browse files

Added the `\thesis@backend` tunable to enhance the open-closed

quality of the class and to fully decouple the logic from the backend.
parent c82fe378
Loading
Loading
Loading
Loading
+14 −4
Original line number Original line Diff line number Diff line
@@ -238,8 +238,20 @@
% \tableofcontents
% \tableofcontents
%
%
% \section{Required classes and packages}
% \section{Required classes and packages}
% The class loads the \texttt{rapport3} base class and the
% \begin{macro}{\thesis@backend}
% following packages: \begin{itemize}
% The class requires the class specified in |\thesis@backend|,
% whose default value is |[a4paper]{rapport3}|. If a different
% base class is desired, it can be specified by redefining
% |\thesis@backend| prior to loading the \textsf{fithesis3} class.
%    \begin{macrocode}
\ProvidesClass{fithesis3}[\thesis@version]
\ifx\thesis@backend\undefined
  \def\thesis@backend{[a4paper]{rapport3}}
\fi\expandafter\LoadClass\thesis@backend
%    \end{macrocode}
% \end{macro}
% The class also requires the following packages:
% \begin{itemize}
%   \item\textsf{keyval} -- Adds support for parsing
%   \item\textsf{keyval} -- Adds support for parsing
%     comma-delimited lists of key-value pairs.
%     comma-delimited lists of key-value pairs.
%   \item\textsf{etoolbox} -- Adds support for expanding
%   \item\textsf{etoolbox} -- Adds support for expanding
@@ -257,8 +269,6 @@
% \ref{sec:thesis@load}). Other packages may be required by the
% \ref{sec:thesis@load}). Other packages may be required by the
% style files (see Section \ref{sec:style-files}) you are using.
% style files (see Section \ref{sec:style-files}) you are using.
%    \begin{macrocode}
%    \begin{macrocode}
\ProvidesClass{fithesis3}[\thesis@version]
\LoadClass[a4paper]{rapport3}
\RequirePackage{keyval}
\RequirePackage{keyval}
\RequirePackage{etoolbox}
\RequirePackage{etoolbox}
\RequirePackage{ifxetex}
\RequirePackage{ifxetex}