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

optinales deutsches paket für dezimalzahltrennung

parent 90acce09
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,16 @@
\newcommand{\includeHsHlogohere}{\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}}}
\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro für Betragsstriche
\newif\if@german%
\DeclareOption{ngerman}{%
\PassOptionsToPackage{\CurrentOption}{babel}
\renewcaptionname{ngerman}{\figurename}{Abb.} %Figure
\renewcaptionname{ngerman}{\tablename}{Tab.} %Table
\@germantrue
}
\DeclareOption{english}{%
\PassOptionsToPackage{\CurrentOption,main=english}{babel}
\PassOptionsToPackage{\CurrentOption}{babel}
\renewcaptionname{english}{\figurename}{Fig.} %Figure
\renewcaptionname{english}{\tablename}{Tab.} %Table
}
......@@ -37,7 +40,7 @@
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}}
\ExecuteOptions{ngerman}
\@ifclasswith{\myClassName}{english}{}{\@ifclasswith{\myClassName}{ngerman}{}{\ExecuteOptions{ngerman}}}
\ProcessOptions\relax
\InputIfFileExists{personal.tex}{
......@@ -50,9 +53,9 @@
\PassOptionsToPackage{utf8}{inputenc}
\PassOptionsToPackage{T1}{fontenc}
\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry}
\PassOptionsToPackage{free-standing-units}{siunitx}
\PassOptionsToPackage{babel, german=quotes}{csquotes}
\PassOptionsToPackage{headsepline}{scrlayer-scrpage}
\PassOptionsToPackage{free-standing-units}{siunitx}
%used packages:
\RequirePackage{inputenc} % inputencoding, utf8 recomendet
......@@ -64,6 +67,7 @@
\RequirePackage{scrlayer-scrpage} % required for header and footer
\RequirePackage{scrhack} % compatability with listings
\RequirePackage{pgffor} % foreach loops
\if@german\RequirePackage{ziffer}\fi % german dezimal numbers
% should these be in?
\RequirePackage{subfigure}
......
\renewcaptionname{ngerman}{\abstractname}{Abstract} %Abstract
\renewcommand\abstractname{Abstract} %Abstract
\@ifpackageloaded{biblatex}{
\ExecuteBibliographyOptions{
sorting=nyt,
......@@ -32,3 +32,12 @@
escapeinside={(*@}{@*)},
}
}{}%
\@ifpackageloaded{listings}{
\ctikzset{
font=\footnotesize,
resistors/scale=0.7,
transistors/scale=0.75,
default/scale=0.5,
bipole annotation style/.style={font=\tiny ,inner sep=1pt},
}
}{}%
......@@ -3,7 +3,6 @@
\usepackage{color}
\usepackage{lipsum}
\usepackage{siunitx}
\usepackage{ziffer}
\begin{document}
......@@ -33,6 +32,7 @@
mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$
\vspace{2cm}\\
eine zahl: $3,5+3.5$\\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment