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
vaclab
ptb-latex
Commits
21cfdcde
Commit
21cfdcde
authored
10 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
"ltablex2.sty" --> "ltablex.sty" (offizieller bug fix))
parent
6063ddb2
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
arbeitsanweisung/7.5-AA-DIR.pdf
+0
-0
0 additions, 0 deletions
arbeitsanweisung/7.5-AA-DIR.pdf
arbeitsanweisung/ltablex2.sty
+0
-256
0 additions, 256 deletions
arbeitsanweisung/ltablex2.sty
arbeitsanweisung/vl-arbeitsanweisung.cls
+3
-3
3 additions, 3 deletions
arbeitsanweisung/vl-arbeitsanweisung.cls
with
3 additions
and
259 deletions
arbeitsanweisung/7.5-AA-DIR.pdf
+
0
−
0
View file @
21cfdcde
No preview for this file type
This diff is collapsed.
Click to expand it.
arbeitsanweisung/ltablex2.sty
deleted
100644 → 0
+
0
−
256
View file @
6063ddb2
%%
%% This is file ltablex.sty (v1.0, November 1995)
%%
%%
%% Author: Anil K. Goel (akgoel@uwaterloo.ca)
%%
%% Patches to solves the caption issue:
%% Rolf Niepraschk (Rolf.Niepraschk@gmx.de), 2014/08/12
%%
%%
%% Copyright (C) QNX Software Systems Ltd. 1995
%% All rights reserved.
%% Please send any comments/suggetions to: latex@qnx.com
%%
%% This system is distributed in the hope that it will be useful
%% to others, but WITHOUT ANY WARRANTY; without even the implied
%% warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%%
%%
%% The file modifies the tabularx environment to
%% combine the features of the tabularx package
%% (auto-sized columns in a fixed width table)
%% with those of the longtable package
%% (multi-page tables).
%%
%% The tables are typeset using the tabularx environment
%% and the longtable environment is used internally to
%% handle multi-page tables. The \setlongtables feature
%% is used, and, therefore, the document should be
%% run through latex twice.
%%
%% Another feature that has been added is to treat the X
%% columns like 'l' columns if the table contents would allow
%% that to happen without exceeding the specified width of
%% the table. In other words, the specified width is
%% treated as the maximum allowed and not the exact width
%% of the table. This feature is the default but can be
%% disabled (or enabled) with \keepXColumns (or \convertXColumns).
%%
%% Caveats:
%% . The document needs to be latexed a couple times in general.
%% . In general, it is necessary to remove the .aux file before
%% the first latex run on the document.
%% . The table should not be larger than TeX's memory capacity
%%
%%
%% Here is a a simple usage example:
%%
%%
%% \documentclass{article}
%%
%% \usepackage{ltablex}
%%
%% \textheight=4in
%%
%% \begin{document}
%%
%% % we want a table that is \textwidth long, has 4 columns, columns 1
%% % and 3 are auto sized with the 3rd columns being 3 times wider than
%% % the first column.
%% %
%%
%%
%% \begin{tabularx}{\linewidth}%
%% {|>{\setlength{\hsize}{.5\hsize}\raggedright\arraybackslash}X| % col 1; auto-sized ragged right
%% c| % col 2; default centered
%% >{\setlength{\hsize}{1.5\hsize}\raggedleft\arraybackslash}X|% col 3; auto-sized ragged left
%% l|} % col 4; default left-justified
%%
%% \caption*{The Table Caption}\\
%% \hline
%% F-Head1 & F-Head2 & F-Head3 & F-Head4\\
%% \hline
%% \hline
%% \endfirsthead
%% \hline
%% Head1 & Head2 & Head3 & Head4\\
%% \hline
%% \hline
%% \endhead
%%
%% \hline
%% \hline
%% Foot1 & Foot2 & Foot3 & Foot4\\
%% \hline
%% \endfoot
%%
%%
%% \hline
%% \hline
%% L-Foot1 & L-Foot2 & L-Foot3 & L-Foot4\\
%% \hline
%% \endlastfoot
%%
%% This is a very long sentence not likely to fit&
%% not too long&
%% This is another very long sentence not likely to fit&
%% not long\\
%%
%% \hline
%% filler & filler & filler & filler\\
%%
%% \hline
%% This is a very long sentence not likely to fit&
%% not too long&
%% This is another very long sentence not likely to fit&
%% not long\\
%%
%% \hline
%% This is a very long sentence not likely to fit&
%% not too long&
%% This is another very long sentence not likely to fit&
%% not long\\
%%
%% \hline
%% This is a very long sentence not likely to fit&
%% not too long&
%% This is another very long sentence not likely to fit&
%% not long\\
%%
%% \end{tabularx}
%%
%% \begin{tabularx}{\linewidth}{|c|X|c|}
%% \hline
%% a &convert X to l & b\\
%% \hline
%% \end{tabularx}
%%
%% \keepXColumns
%% \begin{tabularx}{\linewidth}{|c|X|c|}
%% \hline
%% a &retain X & b\\
%% \hline
%% \end{tabularx}
%%
%% \convertXColumns
%% \begin{tabularx}{\linewidth}{|c|X|c|}
%% \hline
%% a &convert X to l & b\\
%% \hline
%% \end{tabularx}
%%
%%
%% \end{document}
\NeedsTeXFormat
{
LaTeX2e
}
%\ProvidesPackage{ltablex}[1995/11/06 v1.0 Modified tabularx]
\ProvidesPackage
{
ltablex2
}
[2014/08/11 v1.1 Modified tabularx]
\RequirePackage
{
longtable
}
[1994/12/08]
\RequirePackage
{
tabularx
}
[1994/02/03]
\newif\ifTX
@convertX@
\TX
@convertX@true
\newcommand\keepXColumns
{
\TX
@convertX@false
}
\newcommand\convertXColumns
{
\TX
@convertX@true
}
\newcommand*\TX
@cap@gobble[2][]
{
\\
}
% RN, 2014/08/12
\renewcommand\TX
@endtabularx
{
%
\expandafter\TX
@newcol
\expandafter
{
\tabularxcolumn
{
\TX
@col@width
}}
%
\let\verb\TX
@verb
\def\@
elt##1
{
\global\value
{
##1
}
\the\value
{
##1
}
\relax
}
%
\edef\TX
@ckpt
{
\cl
@@ckpt
}
%
\let\@
elt
\relax
\TX
@old@table=
\maxdimen
\TX
@col@width=
\TX
@target
\global\TX
@cols=
\@
ne
\TX
@typeout@
{
\@
spaces Table Width
\@
spaces Column Width
\@
spaces X Columns
}
%
%
% define \endhead, etc. to be \\ so that in this part
% of the process they are just rows
%
\let\savecaption\caption
\def\caption
{
% RN, 2014/08/12
\@
ifstar
\TX
@cap@gobble
\TX
@cap@gobble
}
\let\saveendhead\endhead
\def\endhead
{
\\
}
\let\saveendfirsthead\endfirsthead
\def\endfirsthead
{
\\
}
\let\saveendfoot\endfoot
\def\endfoot
{
\\
}
\let\saveendlastfoot\endlastfoot
\def\endlastfoot
{
\\
}
%
%
\ifTX
@convertX@
\TX
@trial
{
\def\NC
@rewrite@X
{
\NC
@find l
}}
\ifdim\wd\@
tempboxa<
\TX
@target
\TX
@newcol
{
l
}
\else
\TX
@convertX@false
\fi
\fi
\ifTX
@convertX@
\relax
\else
\TX
@trial
{
\def\NC
@rewrite@X
{
%
\global\advance\TX
@cols
\@
ne
\NC
@find p
{
\TX
@col@width
}}}
%
\loop
\TX
@arith
\ifTX
@
\TX
@trial
{}
%
\repeat
\fi
{
\let\@
footnotetext
\TX
@ftntext
\let\@
xfootnotenext
\TX
@xftntext
% we may as well set \LTchunksize to be \maxdimen as the whole
% thing is already in memory anyway so we may as well do it in one
% chunk. if it is too big for one chunk we are already dead..
\LTchunksize\maxdimen
%
% restore \endhead, etc.
%
\let\caption\savecaption
\let\endhead\saveendhead
\let\endfirsthead\saveendfirsthead
\let\endfoot\saveendfoot
\let\endlastfoot\saveendlastfoot
%
\expandafter\longtable
\the\toks
@
\endlongtable
}
%
\global\TX
@ftn
\expandafter
{
\expandafter
}
\the\TX
@ftn
\ifnum
0=`
{
\fi
}
%
\end{tabularx}
}
%
% activate column width reading from the .aux file
%
\setlongtables
\endinput
\usepackage
{
etoolbox
}
% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd
{
\TX
@endtabularx
}
% <cmd>
{
\def\caption
}
% <search>
{
\def\caption
{
\caption
@withoptargs
\TX
@caption
}
%
\def\TX
@caption##1##2
}
% <replace>
{}{}
% <success><failure>
\makeatother
This diff is collapsed.
Click to expand it.
arbeitsanweisung/vl-arbeitsanweisung.cls
+
3
−
3
View file @
21cfdcde
...
...
@@ -2,7 +2,7 @@
\setcounter
{
errorcontextlines
}{
100
}
\NeedsTeXFormat
{
LaTeX2e
}
[1999/12/01]
\ProvidesClass
{
vl-arbeitsanweisung
}
[2014/08/
08
v0.1d Dokumentenklasse (RN/PTB)]
[2014/08/
14
v0.1d Dokumentenklasse (RN/PTB)]
\DeclareOption*
{
\PassOptionsToClass
{
\CurrentOption
}{
scrartcl
}}
\ProcessOptions\relax
\PassOptionsToPackage
{
paper=a4,pagesize,twoside,headinclude
}{
typearea
}
...
...
@@ -18,8 +18,8 @@
\RequirePackage
{
babel
}
\RequirePackage
{
tabularx
}
\let\ptb
@endtabularx=
\TX
@endtabularx
\RequirePackage
{
amsmath,threeparttable,tabto,ltablex
2
}
\let\ptb
@endtabularx=
\TX
@endtabularx
% nötig???
\RequirePackage
{
amsmath,threeparttable,tabto,ltablex
,grffile
}
\RequirePackage
{
pdflscape,picture,trimspaces,url,varwidth,placeins
}
\RequirePackage
{
zref-totpages,graphicx,booktabs,array,pdfpages
}
\RequirePackage
{
longtable,siunitx,ragged2e,ifxetex,ifluatex,relsize
}
...
...
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