summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/tudscr/doc/examples/mathswap-example.tex
blob: 5120b3e45eef43983c7d1e6e7cdf9d10b38f20c8 (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
34
35
\RequirePackage[ngerman=ngerman-x-latest]{hyphsubst}
\documentclass[english,ngerman]{tudscrartcl}% andere Klassen sind möglich
\usepackage{selinput}\SelectInputMappings{adieresis={ä},germandbls={ß}}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{microtype}

\usepackage{mathswap}
\begin{document}

\mathswapoff
\(4.523,58\)
\mathswapon

\(4.523,58\)

\(4,523.58\)

\begingroup
  \commaswap{\,}
  \dotswap{,}
  \(4,523.58\)
\endgroup

\begingroup%
  \selectlanguage{english}%
  \(4,523.58\)\par
  \(4.523,58\)\par
  \commaswap{.}
  \dotswap{\,}
  \(4.523,58\)%
\endgroup

\end{document}