Skip to content
Snippets Groups Projects
Commit 0c5aa5e4 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"varbox" / Probleme mit "tabularx"

parent dd5e57a5
Branches
No related tags found
No related merge requests found
...@@ -41,7 +41,8 @@ footskip=25mm, ...@@ -41,7 +41,8 @@ footskip=25mm,
\RequirePackage[main=ngerman,english]{babel} \RequirePackage[main=ngerman,english]{babel}
\RequirePackage{tabularx} \RequirePackage{tabularx}
\let\ptb@endtabularx=\TX@endtabularx \let\ptb@endtabularx=\TX@endtabularx
\RequirePackage{amsmath,threeparttable,tabto,ltablex,grffile} \RequirePackage{xltabular}
\RequirePackage{amsmath,threeparttable,tabto,grffile}
\RequirePackage{pdflscape,picture,trimspaces,url,varwidth,placeins} \RequirePackage{pdflscape,picture,trimspaces,url,varwidth,placeins}
\RequirePackage{zref-totpages,graphicx,booktabs,array,pdfpages} \RequirePackage{zref-totpages,graphicx,booktabs,array,pdfpages}
\RequirePackage{longtable,siunitx,ragged2e,ifxetex,ifluatex,relsize} \RequirePackage{longtable,siunitx,ragged2e,ifxetex,ifluatex,relsize}
...@@ -112,8 +113,8 @@ footskip=25mm, ...@@ -112,8 +113,8 @@ footskip=25mm,
} }
\newcommand*\ptb@rulewidth{.4mm} \newcommand*\ptb@rulewidth{.4mm}
\newcolumntype{C}{>{\centering}X} \newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{R}{>{\RaggedRight}X} \newcolumntype{R}{>{\RaggedRight\arraybackslash}X}
\newcommand\varbox[2][\linewidth]{% \newcommand\varbox[2][\linewidth]{%
\begin{varwidth}{#1}\nointerlineskip\strut#2\strut\end{varwidth}\strut} \begin{varwidth}{#1}\nointerlineskip\strut#2\strut\end{varwidth}\strut}
...@@ -142,13 +143,13 @@ footskip=25mm, ...@@ -142,13 +143,13 @@ footskip=25mm,
\arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt % \arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
\renewcommand\tabularxcolumn[1]{m{##1}}% \renewcommand\tabularxcolumn[1]{m{##1}}%
\begin{tabularx}{\textwidth}[b]{@{}|C|C|C|c|c|c|@{}} \firsthline \begin{tabularx}{\textwidth}[b]{@{}|C|C|C|c|c|c|@{}} \firsthline
Erstellt: \\ \varbox{Erstellt: \\
Abteilung~\ptb@Devision, Fachbereich~\ptb@Department \\ Abteilung~\ptb@Devision, Fachbereich~\ptb@Department \\
AG~\ptb@WorkingGroup AG~\ptb@WorkingGroup}
& &
Geprüft: \\ Leiter~\ptb@Department \\~ \varbox{Geprüft: \\ Leiter~\ptb@Department \\~}
& &
Genehmigt: \\ QMV-\ptb@Devision \\~ \varbox{Genehmigt: \\ QMV-\ptb@Devision \\~}
& &
\varbox{Ausgabe-Nr.: \\ \ptb@Edition\\~} \varbox{Ausgabe-Nr.: \\ \ptb@Edition\\~}
& &
...@@ -178,16 +179,15 @@ footskip=25mm, ...@@ -178,16 +179,15 @@ footskip=25mm,
\arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt % \arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
\renewcommand*\tabularxcolumn[1]{m{##1}}% \renewcommand*\tabularxcolumn[1]{m{##1}}%
\begin{tabularx}{\textwidth}[b]{@{}|C|C|C|C|C|@{}} \firsthline \begin{tabularx}{\textwidth}[b]{@{}|C|C|C|C|C|@{}} \firsthline
Erstellt: \\ \varbox{Erstellt: \\ Abteilung~\ptb@Devision, Fachbereich~\ptb@Department}
Abteilung~\ptb@Devision, Fachbereich~\ptb@Department
& &
Ausgabe-Nr.: \\ \ptb@Edition \varbox{Ausgabe-Nr.: \\ \ptb@Edition}
& &
Datum: \\ \ptb@Date \varbox{Datum: \\ \ptb@Date}
& &
Kurzbezeichnung: \\ \ptb@Ident \varbox{Kurzbezeichnung: \\ \ptb@Ident}
& &
Seite von Seiten \\ \thepage~von \ztotpages \varbox{Seite von Seiten \\ \thepage~von \ztotpages}
\tabularnewline \lasthline \tabularnewline \lasthline
\end{tabularx}% \end{tabularx}%
\endgroup \endgroup
...@@ -199,19 +199,18 @@ footskip=25mm, ...@@ -199,19 +199,18 @@ footskip=25mm,
\arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt % \arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
\renewcommand*\tabularxcolumn[1]{m{##1}}% \renewcommand*\tabularxcolumn[1]{m{##1}}%
\begin{tabularx}{\textwidth}[b]{@{}|C|C|C|C|C|@{}} \firsthline \begin{tabularx}{\textwidth}[b]{@{}|C|C|C|C|C|@{}} \firsthline
Seite von Seiten \\ \thepage~von \ztotpages \varbox{Seite von Seiten \\ \thepage~von \ztotpages}
& &
Kurzbezeichnung: \\ \ptb@Ident \varbox{Kurzbezeichnung: \\ \ptb@Ident}
& &
Datum: \\ \ptb@Date \varbox{Datum: \\ \ptb@Date}
& &
Ausgabe-Nr.: \\ \ptb@Edition \varbox{Ausgabe-Nr.: \\ \ptb@Edition}
& &
Erstellt: \\ \varbox{Erstellt: \\ Abteilung~\ptb@Devision, Fachbereich~\ptb@Department}
Abteilung~\ptb@Devision, Fachbereich~\ptb@Department \tabularnewline \lasthline
\tabularnewline \lasthline
\end{tabularx}% \end{tabularx}%
\endgroup \endgroup
} }
\RequirePackage[manualmark,draft=false]{scrlayer-scrpage} \RequirePackage[manualmark,draft=false]{scrlayer-scrpage}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment