Add font-selection, complie .cls

Signed-off-by: Adrian C. Hinrichs's avatarAdrian C. Hinrichs <adrian.hinrichs@rwth-aachen.de>
parent 531067ac
......@@ -37,7 +37,7 @@
%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
%% SOFTWARE.
\def\fileversion{v3.0}
\def\filedate{2017/12/26}
\def\filedate{2018/11/10}
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesClass{homeworkassignment}[\filedate\space\fileversion]
\RequirePackage{suffix}
......@@ -50,8 +50,10 @@
\RequirePackage{etoolbox}
\RequirePackage{array}
\RequirePackage{xparse}
\RequirePackage{gillius2}
\RequirePackage{ifxetex}
\RequirePackage{wasysym}
\RequirePackage{adjustbox}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{ family=hwa,
prefix=hwa@ }
......@@ -180,6 +182,14 @@
\pagestyle{followingpage}
\renewcommand{\theequation}{\Roman{equation}}
\allowdisplaybreaks
\ifthenelse{\boolean{xetex}}{
\RequirePackage{fontenc}
\setsansfont{Gillius ADF}
}{
\RequirePackage{gillius2}
}
\newcommand{\hwa@pointboxsize}{3em}
\newcommand{\hwa@kurs}{?\GetTranslation{subject}?} % To store the value
\newcommand{\subject}[1]{\renewcommand{\hwa@kurs}{#1}}
......@@ -335,6 +345,9 @@
\DeclareMathOperator{\Sol}{Sol}
\DeclareMathOperator{\Bin}{Bin}
\DeclareMathOperator{\charakteristik}{char}
\DeclareMathOperator{\fo}{fo}
\DeclareMathOperator{\first}{fi}
\DeclareMathOperator{\fa}{fa}
\newcommand{\diff}[1]{\ensuremath{\frac{d}{d#1}}}
\newcommand{\partdiff}[1]{\ensuremath{\frac{\partial}{\partial#1}}}
......@@ -371,10 +384,12 @@
\begin{table}[hb]
\centering
\large
\expandafter\tabular\expandafter{\hwa@gradingtbl@defs ||p{\hwa@pointboxsize}|}\hline
\hwa@gradingtbl@lineOne $\Sigma$ \\\hline\small
\hwa@gradingtbl@lineTwo \IfNoValueTF{#1}{~}{\vfill\hfill/#1}\vspace{.15cm}\\\hline
\endtabular
\begin{adjustbox}{max width=\linewidth}
\expandafter\tabular\expandafter{\hwa@gradingtbl@defs ||p{\hwa@pointboxsize}|}\hline
\hwa@gradingtbl@lineOne \(\Sigma\) \\\hline\small
\hwa@gradingtbl@lineTwo \IfNoValueTF{#1}{~}{\vfill\hfill/#1}\vspace{.15cm}\\\hline
\endtabular
\end{adjustbox}
\end{table}
}
\edef\hwa@gradingtbl@aux@defs{}
......
......@@ -182,8 +182,8 @@
\RequirePackage{etoolbox}
\RequirePackage{array}
\RequirePackage{xparse}
\RequirePackage{ifxetex}
\RequirePackage{gillius2}
\RequirePackage{wasysym}
\RequirePackage{adjustbox}
......@@ -350,9 +350,9 @@
headsep=14pt,hmarginratio={4:3}}
\fi
% \end{macrocode}
% \section{Page-Layout}
% \section{Layout}
% Initially, the homeworkassignment had a verry \emph{special}
% appereance, which became much mor customizable with version 3.0, see
% appereance, which became much more customizable with version 3.0, see
% \ref{sec:OPTIONS} if you want to know how.
% \subsection{Headers \& Footers}
% Sets the page-headers.\\
......@@ -419,6 +419,19 @@
\allowdisplaybreaks
% \end{macrocode}
% \end{macro}
% \subsection{fonts}
% I fancy the Gillius-Font-Family, so that is the default Sans-Serif
% font, when using XeTeX, The template does default to
% \href{https://www.1001fonts.com/gillius-adf-font.html}{Gillius ADF},
% which is available for free, licensed under the GNU License.
\ifthenelse{\boolean{xetex}}{
\RequirePackage{fontenc}
\setsansfont{Gillius ADF}
}{
\RequirePackage{gillius2}
}
% \section{Commands}
% \subsection{Constants}
% Defines some constants
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment