diff options
Diffstat (limited to 'macros/latex/contrib/schule/latex/schule.fach.Physik.code.tex')
-rw-r--r-- | macros/latex/contrib/schule/latex/schule.fach.Physik.code.tex | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/macros/latex/contrib/schule/latex/schule.fach.Physik.code.tex b/macros/latex/contrib/schule/latex/schule.fach.Physik.code.tex index ce7e487a62..0b555f2f1d 100644 --- a/macros/latex/contrib/schule/latex/schule.fach.Physik.code.tex +++ b/macros/latex/contrib/schule/latex/schule.fach.Physik.code.tex @@ -1,12 +1,33 @@ % ******************************************************************** -% Physik * +% Physik * % ******************************************************************** +\sisetup{exponent-product = \cdot, output-decimal-marker = {,}} + +% Alte Units-Funktion übernehmen (damit siunits überschreiben) +% ******************************************************************** + +\RenewDocumentCommand{\unit}{om}{ + \IfValueT{#1}{#1\,}% + \ifthenelse{\boolean{mmode}}{\mathrm{#2}}{#2} +} +\NewDocumentCommand{\unitfrac}{omm}{ + \IfValueT{#1}{#1\,}% + \ifthenelse{\boolean{mmode}}{% + \nicefrac[\mathrm]{#2}{#3}% + }% + {% + \nicefrac{#2}{#3}% + }% +} + % Konstanten % ******************************************************************** \newcommand{\elementarladung}{\unit[1,602 \cdot 10^{-19}]{C}} -\newcommand{\plankscheEV}{\unit[4,1357 \cdot 10^{-15}]{eVs}} -\newcommand{\plankscheJ}{\unit[6,626 \cdot 10^{-34}]{Js}} +\newcommand{\planckscheEV}{\unit[4,1357 \cdot 10^{-15}]{eVs}} +\newcommand{\planckscheJ}{\unit[6,626 \cdot 10^{-34}]{Js}} \newcommand{\elektronenmasse}{\unit[9,109 \cdot 10^{-31}]{kg}} -\newcommand{\protonenmasse}{\unit[1,673 \cdot 10^{-27}]{kg}}
\ No newline at end of file +\newcommand{\protonenmasse}{\unit[1,673 \cdot 10^{-27}]{kg}} +\newcommand{\lichtgeschwindigkeit}{\unitfrac[\num{2,9979e8}]{m}{s}} +\newcommand{\rydbergfrequenz}{\unit[3,28984 \cdot 10^{15}]{Hz}} |