Skip to content
Snippets Groups Projects
Commit 766ef733 authored by Jan Wille's avatar Jan Wille
Browse files

Options for Sans or roman font, better standart options

parent aa503c51
No related branches found
No related tags found
No related merge requests found
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-08> Jan Wille}
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-13> Jan Wille}
\NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-article}
\ProvidesClass{\myClassName}[2021-03-08 HsH Report based on KOMA]
\ProvidesClass{\myClassName}[2021/03/13 HsH Report based on KOMA]
\newcommand{\HsHlogoPath}{HSH-Logo.pdf}
\newcommand{\HsHlogoPage}{1}
......@@ -18,25 +18,32 @@
}
\DeclareOption{english}{%
\PassOptionsToPackage{\CurrentOption}{babel}
\@germanfalse
}
\DeclareOption{f1}{%
\DeclareOption{f1}{% use logo of fakulty 1
\renewcommand{\HsHlogoPage}{2}
}
\DeclareOption{f2}{%
\DeclareOption{f2}{% use logo of fakulty 2
\renewcommand{\HsHlogoPage}{3}
}
\DeclareOption{f3}{%
\DeclareOption{f3}{% use logo of fakulty 3
\renewcommand{\HsHlogoPage}{4}
}
\DeclareOption{f4}{%
\DeclareOption{f4}{% use logo of fakulty 4
\renewcommand{\HsHlogoPage}{5}
}
\DeclareOption{f5}{%
\DeclareOption{f5}{% use logo of fakulty 5
\renewcommand{\HsHlogoPage}{6}
}
\DeclareOption{sans}{% use san serif font
\renewcommand{\familydefault}{\sfdefault}
}
\DeclareOption{roman}{% use roman/serif font
\renewcommand{\familydefault}{\rmdefault}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\@ifclasswith{\myClassName}{english}{}{\@ifclasswith{\myClassName}{ngerman}{}{\ExecuteOptions{ngerman}}}
\ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % standart options
\ProcessOptions\relax
% Load KOMA class
......@@ -107,7 +114,6 @@
\renewcommand{\fps@figure}{h!t} % positioning of figures
\renewcommand{\fps@table}{h!t} % Positonierung of tables
\renewcommand{\layercontentsmeasure}{\empty} % rulers when using draft disabled
\renewcommand{\familydefault}{\sfdefault} % Sans-Serif Font as standard
\MakeOuterQuote{"} % easy quotationmarks
% custom commands
......@@ -174,6 +180,7 @@
% load config at beginning of document
\AtBeginDocument{
\makeatletter
\renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} % solves fontype warning in San-Serif
\InputIfFileExists{config.tex}{
\ClassInfo{\myClassName}{config.tex was found. Using it...}
}{
......
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-02-09> Jan Wille}
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2021-03-13> Jan Wille}
\NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-report}
\ProvidesClass{\myClassName}[2021/02/09 HsH Report based on KOMA]
\ProvidesClass{\myClassName}[2021/03/13 HsH-Report based on KOMA]
\newcommand{\HsHlogoPath}{HSH-Logo.pdf}
\newcommand{\HsHlogoPage}{1}
......@@ -18,25 +18,32 @@
}
\DeclareOption{english}{%
\PassOptionsToPackage{\CurrentOption}{babel}
\@germanfalse
}
\DeclareOption{f1}{%
\DeclareOption{f1}{% use logo of fakulty 1
\renewcommand{\HsHlogoPage}{2}
}
\DeclareOption{f2}{%
\DeclareOption{f2}{% use logo of fakulty 2
\renewcommand{\HsHlogoPage}{3}
}
\DeclareOption{f3}{%
\DeclareOption{f3}{% use logo of fakulty 3
\renewcommand{\HsHlogoPage}{4}
}
\DeclareOption{f4}{%
\DeclareOption{f4}{% use logo of fakulty 4
\renewcommand{\HsHlogoPage}{5}
}
\DeclareOption{f5}{%
\DeclareOption{f5}{% use logo of fakulty 5
\renewcommand{\HsHlogoPage}{6}
}
\DeclareOption{sans}{% use san serif font
\renewcommand{\familydefault}{\sfdefault}
}
\DeclareOption{roman}{% use roman/serif font
\renewcommand{\familydefault}{\rmdefault}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}}
\@ifclasswith{\myClassName}{english}{}{\@ifclasswith{\myClassName}{ngerman}{}{\ExecuteOptions{ngerman}}}
\ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % standart options
\ProcessOptions\relax
% Load KOMA class
......@@ -108,7 +115,6 @@
\renewcommand{\fps@figure}{h!t} % positioning of figures
\renewcommand{\fps@table}{h!t} % Positonierung of tables
\renewcommand{\layercontentsmeasure}{\empty} % rulers when using draft disabled
\renewcommand{\familydefault}{\sfdefault} % Sans-Serif Font as standard
\MakeOuterQuote{"} % easy quotationmarks
% custom commands
......@@ -184,6 +190,7 @@
% load config at beginning of document
\AtBeginDocument{
\makeatletter
\renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} % solves fontype warning in San-Serif
\InputIfFileExists{config.tex}{
\ClassInfo{\myClassName}{config.tex was found. Using it...}
}{
......
......@@ -2,8 +2,7 @@
\NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-standalone}
\ProvidesClass{\myClassName}[2020/01/22 HsH Report based on KOMA]
\LoadClass[multi=tikzpicture,multi=circuitikz]{standalone}
\ProvidesClass{\myClassName}[2020/03/13 HsH Report based on KOMA]
\newcommand{\HsHlogoPath}{HSH-Logo.pdf}
\newcommand{\HsHlogoPage}{1}
......@@ -21,25 +20,37 @@
}
\DeclareOption{english}{%
\PassOptionsToPackage{\CurrentOption}{babel}
\@germanfalse
}
\DeclareOption{f1}{%
\DeclareOption{f1}{% use logo of fakulty 1
\renewcommand{\HsHlogoPage}{2}
}
\DeclareOption{f2}{%
\DeclareOption{f2}{% use logo of fakulty 2
\renewcommand{\HsHlogoPage}{3}
}
\DeclareOption{f3}{%
\DeclareOption{f3}{% use logo of fakulty 3
\renewcommand{\HsHlogoPage}{4}
}
\DeclareOption{f4}{%
\DeclareOption{f4}{% use logo of fakulty 4
\renewcommand{\HsHlogoPage}{5}
}
\DeclareOption{f5}{%
\DeclareOption{f5}{% use logo of fakulty 5
\renewcommand{\HsHlogoPage}{6}
}
\DeclareOption{sans}{% use san serif font
\renewcommand{\familydefault}{\sfdefault}
}
\DeclareOption{roman}{% use roman/serif font
\renewcommand{\familydefault}{\rmdefault}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{standalone}}
\ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % standart options
\ProcessOptions\relax
\LoadClass[multi=tikzpicture,multi=circuitikz]{standalone}
\newcommand*{\@titlehead}{}%
\newcommand{\titlehead}[1]{\gdef\@titlehead{#1}}%
\newcommand*{\@subject}{}%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment