From 2fbd3a37bd50ca9e62eb6c421a745ad96112d424 Mon Sep 17 00:00:00 2001
From: niepra01 <rolf.niepraschk@ptb.de>
Date: Wed, 23 May 2018 13:21:51 +0200
Subject: [PATCH] "tocstyle" weg

---
 arbeitsanweisung/vl-arbeitsanweisung.cls | 32 ++++++++----------------
 1 file changed, 10 insertions(+), 22 deletions(-)

diff --git a/arbeitsanweisung/vl-arbeitsanweisung.cls b/arbeitsanweisung/vl-arbeitsanweisung.cls
index 12fd347..ecc6fe7 100644
--- a/arbeitsanweisung/vl-arbeitsanweisung.cls
+++ b/arbeitsanweisung/vl-arbeitsanweisung.cls
@@ -27,9 +27,10 @@ textwidth=172mm,% 172+22+16=210
 textheight=228mm,
 top=20bp,
 headsep=10mm,
-footskip=55bp,
+footskip=85bp,
 ]{geometry}
-\setlength{\footheight}{18.5pt}
+%\setlength{\footheight}{18.5pt}
+\setlength\footheight{50.35002pt}
 
 \renewcommand*\maketitle[1][1]{%
   \begingroup
@@ -39,16 +40,16 @@ footskip=55bp,
 }
 
 \RequirePackage[main=ngerman,english]{babel}
+\RequirePackage{zref-totpages,ifxetex,ifluatex,grffile,picture}
 \RequirePackage{tabularx}
 \RequirePackage{graphicx}
 %%%\let\ptb@endtabularx=\TX@endtabularx
 \RequirePackage{xltabular}
-\RequirePackage{amsmath,threeparttable,tabto,grffile}
-\RequirePackage{pdflscape,picture,trimspaces,url,varwidth,placeins}
-\RequirePackage{zref-totpages,booktabs,array}
+\RequirePackage{amsmath,threeparttable,tabto}
+\RequirePackage{pdflscape,trimspaces,url,varwidth,placeins}
+\RequirePackage{booktabs,array}
 \RequirePackage[final]{pdfpages}
-\RequirePackage{longtable,siunitx,ragged2e,ifxetex,ifluatex,relsize}
-\keepXColumns
+\RequirePackage{longtable,siunitx,ragged2e,relsize}
 \RequirePackage{siunitx-PTB}
 
 \let\ptb@tempdima=\@clnwd
@@ -95,15 +96,6 @@ footskip=55bp,
 \newcommand*\Object[1]{\xdef\ptb@Object{\trim@spaces{#1}}}
 \newcommand*\Edition[1]{\xdef\ptb@Edition{\trim@spaces{#1}}}
 
-\RequirePackage{tocstyle}
-\usetocstyle{allwithdot}
-\settocfeature{raggedhook}{\raggedright}% verhindert auch Trennung
-\settocfeature{pagenumberbox}{\makebox[1.5em][r]}
-\settocfeature{entryhook}{\overfullrule=\z@}
-
-\BeforeStartingTOC[toc]{\microtypesetup{protrusion=false}}
-\AfterStartingTOC[toc]{\microtypesetup{protrusion=true}}
-
 \addtokomafont{caption}{\small}
 \addtokomafont{captionlabel}{\bfseries\sffamily}
 \setcapindent{1em}
@@ -137,7 +129,7 @@ footskip=55bp,
   \ptb@Ident \hfill Qualit\"atsmanagement-Arbeitsanweisung \hfill PTB
 }
 \newcommand*\ptb@first@foot{%
-  \raisebox{-18bp}[0pt][0pt]{%
+  \raisebox{-20bp}[0pt][0pt]{%
   \begingroup
     \normalfont\sffamily\tiny\extrarowheight=.3\baselineskip
     \arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
@@ -179,6 +171,7 @@ footskip=55bp,
 }
 \newcommand*\ptb@foot@odd{%
   \begingroup
+    \arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
     \ptb@tempdima=0.2\dimexpr\textwidth-10\tabcolsep-6\arrayrulewidth
     \newcolumntype{M}{>{\centering}m{\ptb@tempdima}}
     \normalfont\sffamily\tiny\extrarowheight=.3\baselineskip
@@ -231,11 +224,6 @@ footskip=55bp,
 \addtokomafont{title}{\sisetup{detect-weight=true, detect-family=true}}
 \addtokomafont{disposition}{\sisetup{detect-weight=true, detect-family=true}}
 
-\RedeclareSectionCommand[
-,tocindent=3em
-,tocnumwidth=3.5em
-]{section}
-
 \RequirePackage{marginnote}
 \DeclareRobustCommand\note{%
   % Normalform = Horizontale Notiz;
-- 
GitLab