Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LaTeX Template HsH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Wille
LaTeX Template HsH
Commits
5722be50
Commit
5722be50
authored
1 year ago
by
Jan Wille
Browse files
Options
Downloads
Patches
Plain Diff
unify handling of language checks
parent
8e7223a7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
HsH-classes.dtx
+19
-15
19 additions, 15 deletions
HsH-classes.dtx
with
19 additions
and
15 deletions
HsH-classes.dtx
+
19
−
15
View file @
5722be50
...
...
@@ -108,9 +108,6 @@
% a lot of nice Math
\RequirePackage{amsmath}
%
% german dezimal numbers
\if@german\RequirePackage{ziffer}\fi
%
%<*article|report>
% required for changing layout
\PassOptionsToPackage{vmargin=5\baselineskip,bindingoffset=0.08\paperwidth,textwidth=0.75\paperwidth}{geometry}
...
...
@@ -130,6 +127,9 @@
\fi
\RequirePackage{babel}
%
% german dezimal numbers
\iflanguage{ngerman}{\RequirePackage{ziffer}}{}%
%
% required for header and footer
\PassOptionsToPackage{headsepline}{scrlayer-scrpage}
\RequirePackage{scrlayer-scrpage}
...
...
@@ -149,7 +149,7 @@
%
% quotations
\PassOptionsToPackage{babel}{csquotes}
\if
@
german\PassOptionsToPackage{german=quotes}{csquotes}
\fi
\if
language{n
german
}{
\PassOptionsToPackage{german=quotes}{csquotes}
}{}%
\RequirePackage{csquotes}
% this makes quotationmarks usable in text:
\MakeOuterQuote{"}
...
...
@@ -272,14 +272,15 @@
\setcapwidth{0.8\textwidth}
\fi
% abbreviations for names:
\if@german
\iflanguage{english}{
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}
}{}%
\iflanguage{ngerman}{
\renewcaptionname{ngerman}{\figurename}{Abb.}
\renewcaptionname{ngerman}{\tablename}{Tab.}
\renewcaptionname{ngerman}{\abstractname}{Abstract}
\else
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}
\fi
}{}%
%% styling for itemize
\renewcommand{\labelitemi}{$\bullet$}
...
...
@@ -354,7 +355,10 @@
}{%
\ifx\@keywords\@empty\else
\vskip 2em
\paragraph{\if@german Schlüsselwörter:\else Keywords:\fi}
\paragraph{%
\iflanguage{english}{Keywords}{}%
\iflanguage{ngerman}{Schlüsselwörter}{}%
}
\@keywords
\fi
\endquotation
...
...
@@ -575,7 +579,7 @@
{\usekomafont{date}{\@date\par}}
%<article> \vskip 1em
%<report> \vskip \z@ \@plus3fill
{\if\@professor\@empty\else\usekomafont{publishers}{Professor\if
@
german(in)/Lehrbeauftragte(r)
\fi
: \@professor}\fi}
{\if\@professor\@empty\else\usekomafont{publishers}{Professor\if
language{n
german
}{
(in)/Lehrbeauftragte(r)
}{}
: \@professor}\fi}
%<*article>
\ifx\@dedication\@empty\else
\vskip 2em
...
...
@@ -704,9 +708,9 @@
}
}{}
\@ifpackageloaded{siunitx}{
\if
@
german
\if
language{n
german
}{
\sisetup{output-decimal-marker={,}} % use comma as dezimal
\fi
}{}%
\sisetup{
tight-spacing=true,
per-mode=symbol,
...
...
@@ -749,9 +753,9 @@
\@ifpackageloaded{pgfplots}{
\usepgfplotslibrary{fillbetween} % mark areas under or between graphs
\usetikzlibrary{patterns} % for using pattern in plots
\if
@
german
\if
language{n
german
}{
\pgfplotsset{/pgf/number format/use comma}
\fi
}{}%
\pgfplotsset{
compat=1.16,
/pgf/number format/read comma as period,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment