Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ptb-latex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Wählisch
ptb-latex
Commits
e6e73500
Commit
e6e73500
authored
9 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
SI- und num-Makro angepasst
parent
63fb5c96
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
declaration/declaration.cls
+0
-0
0 additions, 0 deletions
declaration/declaration.cls
kalibrierschein/kalibrierschein.cls
+107
-103
107 additions, 103 deletions
kalibrierschein/kalibrierschein.cls
versandauftrag/vl-versandauftrag.cls
+3
-0
3 additions, 0 deletions
versandauftrag/vl-versandauftrag.cls
with
110 additions
and
103 deletions
declaration/declaration.cls
deleted
100644 → 0
+
0
−
0
View file @
63fb5c96
This diff is collapsed.
Click to expand it.
kalibrierschein/kalibrierschein.cls
+
107
−
103
View file @
e6e73500
...
...
@@ -6,7 +6,7 @@
\newcommand*\ks
@langs
{
ngerman,main=english
}
\NeedsTeXFormat
{
LaTeX2e
}
[1999/12/01]
\ProvidesClass
{
kalibrierschein
}
[2015/0
4/30
v0.1
v
Dokumentenklasse (RN/PTB)]
[2015/0
5/04
v0.1
w
Dokumentenklasse (RN/PTB)]
\DeclareOption
{
BS
}{
\def\ks
@location
{
Braunschweig
}}
\DeclareOption
{
BLN
}{
\def\ks
@location
{
Berlin
}}
\DeclareOption
{
KK
}{
\edef\ks
@kalType
{
\CurrentOption
}}
...
...
@@ -85,13 +85,79 @@
\RequirePackage
{
eso-pic,graphicx,booktabs
}
\RequirePackage
{
zref-totpages
}
\RequirePackage
{
amsmath
}
\newif\ifXeOrLua
\XeOrLuafalse
\RequirePackage
{
ifxetex,ifluatex,ifpdf
}
\ifxetex
% XeTeX
\XeOrLuatrue
\else
\ifluatex
% LuaTeX
\XeOrLuatrue
\else
\ifpdf
% pdfTeX
\else
% TeX+dvips
\fi
\fi
\fi
\ifXeOrLua
% XeLaTeX oder luaLaTeX
\typeout
{
############################ XeLaTeX oder luaLaTeX
}
\usepackage
[no-math]
{
fontspec
}
\usepackage
{
unicode-math
}
%\setmathfont[math-style=ISO,bold-style=ISO]{Asana Math}% damit sind Einheiten kursiv
\setmathfont
{
Asana Math
}
\setmainfont
[Ligatures=TeX]
{
TeX Gyre Heros
}
\setsansfont
[Ligatures=TeX]
{
TeX Gyre Heros
}
\setmathfont
[range=\mathup,Scale=MatchLowercase]
{
TeXGyreHeros-Regular
}
\setmathfont
[range=\mathit,Scale=MatchLowercase]
{
TeXGyreHeros-Italic
}
\setmathfont
[range=\mathbfup,Scale=MatchLowercase]
{
TeXGyreHeros-Bold
}
\setmathfont
[range=\mathbfit,Scale=MatchLowercase]
{
TeXGyreHeros-BoldItalic
}
\setmathfont
[range=\mathsfup,Scale=MatchLowercase]
{
TeXGyreHeros-Regular
}
\setmathfont
[range=\mathsfit,Scale=MatchLowercase]
{
TeXGyreHeros-Italic
}
\setmathfont
[range=\mathbfsfup,Scale=MatchLowercase]
{
TeXGyreHeros-Bold
}
\setmathfont
[range=\mathbfsfit,Scale=MatchLowercase]
{
TeXGyreHeros-BoldItalic
}
\setmathfont
[range=\mathpunct]
{
TeXGyreHeros-Regular
}
\RequirePackage
{
newunicodechar
}
\newunicodechar
{^^^^
202f
}{
\,
}
% 'NARROW NO-BREAK SPACE' (\u202F, 8239)
\newunicodechar
{^^^^
2009
}{
\,\hspace
{
0pt
}}
% 'THIN SPACE'
\newunicodechar
{^^^^
00ad
}{
\-
}
% 'SOFT HYPHEN'
\newunicodechar
{^^^^
2207
}{{
\setmathfont
{
Asana Math
}^^^^
2207
}}
% 'NABLA'
%%% TODO: ^^^^ unschädlich machen für pdflatex
\else
\typeout
{
############################ pdfLaTeX
}
\RequirePackage
{
fix-cm
}
% ???
\RequirePackage
[T1]
{
fontenc
}
\RequirePackage
[utf8]
{
inputenc
}
\DeclareUnicodeCharacter
{
202F
}{
\,
}
\DeclareUnicodeCharacter
{
2009
}{
\,\hspace
{
0pt
}}
\DeclareUnicodeCharacter
{
22C5
}{
\cdot
}
\DeclareUnicodeCharacter
{
03B8
}{
\theta
}
\RequirePackage
[scale=1]
{
tgheros
}
%%%\RequirePackage[scaled=1]{helvet}
\renewcommand*\familydefault
{
\sfdefault
}
%%%\newcommand*\mathfamilydefault{\familydefault}
%%\newcommand*\math@sfdefault{\sfdefault}
\RequirePackage
{
sfmath
}
\fi
%%%\RequirePackage{babel}
\RequirePackage
{
gensymb
}
%% ???
\let\ks
@celsius=
\celsius
\let\celsius
=
\relax
\let\ohm
=
\relax
\RequirePackage
{
siunitx
}
\let\celsius
=
\ks
@celsius
%
\RequirePackage{gensymb} %% ???
%
\let\ks@celsius=\celsius
%
\let\celsius=\relax
%
\let\ohm=\relax
%
\RequirePackage{siunitx}
%
\let\celsius=\ks@celsius
\iffalse
\AtBeginDocument
{
%
...
...
@@ -121,6 +187,12 @@
\let\@
tempdime=
\@
clnht
\let\@
tempdimf=
\@
dashdim
\newcommand*\ks
@tempa
{}
\newcommand*\ks
@tempb
{}
\newcommand*\ks
@tempc
{}
\newcommand*\ks
@tempd
{}
\newcommand*\ks
@tempe
{}
\newtoks\ks
@tab
\newcommand*\ks
@colSpec
{}
...
...
@@ -236,6 +308,33 @@
\newcolumntype
{
C
}{
>
{
\centering\arraybackslash
}
X
}
\RequirePackage
{
siunitx
}
\let\ke
@orig@SI=
\SI
\renewcommand*\SI
[2][]
{
% tolerant gegenüber "?" statt Zahl
\def\ks
@tempa
{
#1
}
%
\edef\ks
@tempb
{
\trim
@spaces
{
#2
}}
%
\ks
@SI@i
}
\newcommand*\ks
@SI@i[2][]
{
\def\ks
@tempc
{
?
}
%
\ifx\ks
@tempb
\ks
@tempc
\ensuremath
{
\textbf
{
??
}}
\,\si
[#1]
{
#2
}
%
\else
\edef\ks
@tempe
{
\noexpand\ke
@orig@SI[
\ks
@tempa]
{
\ks
@tempb
}
[#1]
{
#2
}}
%
\ks
@tempe
\fi
}
\let\ke
@orig@num=
\num
\renewcommand*\num
[1]
{
% tolerant gegenüber "?" statt Zahl
\edef\ks
@tempb
{
\trim
@spaces
{
#1
}}
%
\def\ks
@tempc
{
?
}
%
\ifx\ks
@tempb
\ks
@tempc
\ensuremath
{
\textbf
{
??
}}
%
\else
\ke
@orig@num
{
#1
}
%
\fi
}
%%%\AtBeginDocument{%
\sisetup
{
%
%%%,exponent-product = \ensuremath { \cdot } % wird per "locale" gesetzt
...
...
@@ -255,6 +354,7 @@
%%%,output-close-uncertainty =
,separate-uncertainty = true
,bracket-numbers = true
,per-mode=symbol
}
%
%%%}
...
...
@@ -326,10 +426,6 @@
\expandafter\ks
@@shielded
\expandafter
{
#1
}
%
}
\RequirePackage
{
ifxetex,ifluatex
}
\newif\ifXeOrLua
\XeOrLuafalse
\ifxetex\XeOrLuatrue\else\ifluatex\XeOrLuatrue\fi\fi
\RequirePackage
[
% factor=1500
% ,verbose=true
...
...
@@ -338,98 +434,6 @@
,babel=true
]
{
microtype
}
\RequirePackage
{
amsmath
}
\ifXeOrLua
% XeLaTeX oder luaLaTeX
\typeout
{
############################ XeLaTeX oder luaLaTeX
}
\iffalse
\RequirePackage
[no-math]
{
fontspec
}
\RequirePackage
{
hvmath-qhv
}
\setmainfont
{
TeXGyreHeros
}
\setmainfont
[Ligatures=TeX]
{
TeXGyreHeros
}
\setsansfont
[Ligatures=TeX]
{
TeXGyreHeros
}
\iffalse
\setmonofont
[Scale=MatchLowercase]
{
Latin Modern Mono
}
\else
% wegen derzeitigem Problem (2014/06/25)
\setmonofont
{
Latin Modern Mono
}
\fi
\else
\RequirePackage
[no-math]
{
fontspec
}
\setmainfont
[Ligatures=TeX]
{
TeX Gyre Heros
}
\setsansfont
[Ligatures=TeX]
{
TeX Gyre Heros
}
\RequirePackage
{
unicode-math
}
%\setmathfont[math-style=ISO,bold-style=ISO]{XITS Math}
\setmathfont
[math-style=ISO,bold-style=ISO]
{
Asana Math
}
%\setmathfont[math-style=ISO,bold-style=ISO]{Latin Modern Math}
%\setmathfont[math-style=ISO,bold-style=ISO]{TeX Gyre Pagella Math}
%\setmathfont[math-style=ISO,bold-style=ISO]{TeX Gyre Termes Math}
\iftrue
%
\setmathfont
[range=\mathup,Scale=MatchLowercase]
{
TeXGyreHeros-Regular
}
\setmathfont
[range=\mathit,Scale=MatchLowercase]
{
TeXGyreHeros-Italic
}
\setmathfont
[range=\mathbfup,Scale=MatchLowercase]
{
TeXGyreHeros-Bold
}
\setmathfont
[range=\mathbfit,Scale=MatchLowercase]
{
TeXGyreHeros-BoldItalic
}
\setmathfont
[range=\mathsfup,Scale=MatchLowercase]
{
TeXGyreHeros-Regular
}
\setmathfont
[range=\mathsfit,Scale=MatchLowercase]
{
TeXGyreHeros-Italic
}
\setmathfont
[range=\mathbfsfup,Scale=MatchLowercase]
{
TeXGyreHeros-Bold
}
\setmathfont
[range=\mathbfsfit,Scale=MatchLowercase]
{
TeXGyreHeros-BoldItalic
}
\setmathfont
[range=\mathpunct]
{
TeXGyreHeros-Regular
}
\else
\setmathfont
[range=\mathup]
{
TeXGyreHeros-Regular
}
\setmathfont
[range=\mathit]
{
TeXGyreHeros-Italic
}
\setmathfont
[range=\mathbfup]
{
TeXGyreHeros-Bold
}
\setmathfont
[range=\mathbfit]
{
TeXGyreHeros-BoldItalic
}
\setmathfont
[range=\mathsfup]
{
TeXGyreHeros-Regular
}
\setmathfont
[range=\mathsfit]
{
TeXGyreHeros-Italic
}
\setmathfont
[range=\mathbfsfup]
{
TeXGyreHeros-Bold
}
\setmathfont
[range=\mathbfsfit]
{
TeXGyreHeros-BoldItalic
}
\setmathfont
[range=\mathpunct]
{
TeXGyreHeros-Regular
}
\fi
\newcommand*\XXX
[3]
{
%
\def\x
{
"5e"5e
}
%
%\edef\y{\detokenize\x\x#1#2}
\expandafter\newunicodechar\expandafter
{
\detokenize\x\x
#1#2
}{
#3
}
%
}
\RequirePackage
{
newunicodechar
}
\newunicodechar
{^^^^
202f
}{
\,
}
% 'NARROW NO-BREAK SPACE' (\u202F, 8239)
\newunicodechar
{^^^^
2009
}{
\,\hspace
{
0pt
}}
% 'THIN SPACE'
\newunicodechar
{^^^^
00ad
}{
\-
}
% 'SOFT HYPHEN'
\newunicodechar
{^^^^
2207
}{{
\setmathfont
{
Asana Math
}^^^^
2207
}}
% 'NABLA'
%%% TODO: ^^^^ unschädlich machen für pdflatex
\fi
\else
\typeout
{
############################ pdfLaTeX
}
\RequirePackage
{
fix-cm
}
% ???
\RequirePackage
[T1]
{
fontenc
}
\RequirePackage
[utf8]
{
inputenc
}
\DeclareUnicodeCharacter
{
202F
}{
\,
}
\DeclareUnicodeCharacter
{
2009
}{
\,\hspace
{
0pt
}}
\DeclareUnicodeCharacter
{
22C5
}{
\cdot
}
\DeclareUnicodeCharacter
{
03B8
}{
\theta
}
\RequirePackage
[scale=1]
{
tgheros
}
%%%\RequirePackage[scaled=1]{helvet}
\renewcommand*\familydefault
{
\sfdefault
}
%%%\newcommand*\mathfamilydefault{\familydefault}
%%\newcommand*\math@sfdefault{\sfdefault}
\RequirePackage
{
sfmath
}
\fi
\emergencystretch
=1em
%
\pagestyle
{
headings
}
...
...
This diff is collapsed.
Click to expand it.
versandauftrag/vl-versandauftrag.cls
+
3
−
0
View file @
e6e73500
...
...
@@ -49,6 +49,9 @@
\let\vl
@tempdima=
\@
ovxx
\let\vl
@tempdimb=
\@
ovyy
\let\vl
@tempdimc=
\@
ovdx
\let\vl
@tempdimd=
\@
clnwd
\let\vl
@tempdime=
\@
clnht
\let\vl
@tempdimf=
\@
dashdim
\newcommand\vl
@tempa
{}
\newcommand*\vl
@setboolean[3][false]
{
% #1=default (opt.), #2=if, #3=value
...
...
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