summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/schule/latex/schule.fach.Physik.code.tex
blob: 0b555f2f1d33be81fb1d0e034ba092764abb3177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% ********************************************************************
% 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{\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}}
\newcommand{\lichtgeschwindigkeit}{\unitfrac[\num{2,9979e8}]{m}{s}}
\newcommand{\rydbergfrequenz}{\unit[3,28984 \cdot 10^{15}]{Hz}}