Merge pull request #36 from kreativmonkey/siunit-update

close #35
main
aslmx 2 years ago committed by GitHub
commit 5a62bdb43b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -159,4 +159,16 @@ A = B + C = 5 + 9 = \solution{14}
$$
## SI-Units
Mit dem Parameter `lang` , z.B. `lang: de` in den Metadaten am Anfang des Markdown Dokuments lässt sich die Lokalisierung des Packages `siunitx` einstellen. Das ist z.B. für Tausendertrennzeichen relevant. Mehr Informationen dazu in der [siunitx Dokumentation](https://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/siunitx/siunitx.pdf)
$$ \displaystyle
\begin{aligned}
\qty{1.234}{\metre} \\
De: \qty[locale = DE]{6.789}{\metre} \\
Us: \qty[locale = US]{6.789}{\metre}
\end{aligned}
$$

@ -55,6 +55,7 @@ studium:
arbeit:
typ:
code:
lang:
#assignment:
# file: '`Aufgabenstellung/Aufgabenstellung.pdf`{=latex}'
# pages: '`-`{=latex}' # All pages
@ -117,7 +118,6 @@ Im Folgenden sind die einzelnen Variablen und Schalter erläutert. Alle Optional
| seite.rand_rechts | Seitenrand rechts | ja | 40mm |
| seite.rand_links | Seitenrand links | ja | 30mm |
### Aufgabenstellung mit einbinden
Das Template erlaubt es, durch setzen der Variablen im Block `assignment`, die Aufgabenstellung mit einzubinden und vor das eigentliche PDF zu stellen. Das Inhaltsverzeichnis der Lösung bleibt dabei korrekt erhalten, anders als es teilweise passieren kann wenn man die PDFs nachträglich zusammengesetzt werden.

@ -35,6 +35,9 @@ $endif$
\usepackage{amsfonts} % More symboles for exotic currency notation and engeneering diagrams
\usepackage{amssymb} % More symboles for exotic currency notation and engeneering diagrams
\usepackage{siunitx} % For using SI Units https://www.ctan.org/pkg/siunitx
$if(lang)$
\sisetup{locale = $lang/uppercase$}
$endif$
\usepackage{fancyhdr}
\usepackage{tabularx}
\usepackage[a4paper, top=$if(seite.rand_oben)$$seite.rand_oben$$else$27mm$endif$, left=$if(seite.rand_links)$$seite.rand_links$$else$20mm$endif$, right=$if(seite.rand_rechts)$$seite.rand_rechts$$else$40mm$endif$, bottom=$if(seite.rand_unten)$$seite.rand_unten$$else$35mm$endif$, headsep=10mm, footskip=12mm]{geometry} % Vorgabe 4cm Rand auf der rechten Seite.

Loading…
Cancel
Save