summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xltabular/xltabular-doc.tex
blob: ccf08acce590743b9c51eee433084a79ea7ca9bc (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
%% $Id: xltabular-doc.tex 586 2017-09-27 17:00:55Z herbert $
%
\listfiles
\documentclass[fontsize=11pt,DIV=14,parskip=half-]{scrartcl}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{multido}
\usepackage[%usefilenames,
            TT={Scale=0.88,FakeStretch=0.9},
            SS={Scale=0.9},
            RM={Scale=0.9},
            DefaultFeatures={Ligatures=TeX}]{lucida-otf}  % support opentype math fonts
\usepackage{xltabular}
\makeatletter
\let\XLVersion\xltabular@version
\makeatother

\usepackage{dtk-logos} % for Wikipedia W
\usepackage{ragged2e}

\usepackage{biblatex}
\addbibresource{\jobname.bib}

\pagestyle{headings}

\title{Package \texttt{xltabular} \\--\\ v.~\XLVersion}
\author{Rolf Niepraschk \and Herbert Voß}
\begin{document}
\maketitle
\tableofcontents

\section{Introduction}

The package \texttt{ltablex} supports an environment \texttt{tabularx} with 
the possiblity of pagebreaks and the same header/footer definitions as in
the package \texttt{longtable}. But the old bevaviour of the \texttt{tabularx}
environment is no more possible.

The package \texttt{xltabular} defines an environment of the same name
which behaves like a \texttt{tabularx} as a \texttt{longtable}. In short:
it is a \texttt{longtable} with the column specifier \texttt{X}. But it leaves the 
\texttt{tabularx} environment with its original behaviour. 


\section{Examples}

\newcommand\B{XXXXXXXXXXXXXXXXXXXXXXXXXXXX\\}
\newcommand\BB{\B\B\B\B\B\B\B\B\B\B\B\B\B\B\B}
\newcommand\BBB{\BB\BB\BB\BB}

\listoftables
	
\begin{tabularx}{\linewidth}{@{}X@{}}
\captionaboveof{table}{The original \texttt{tabularx} environment: pagebreak not possible!}\\
\BBB
\end{tabularx}


\begin{xltabular}{\linewidth}{@{}X@{}}
\caption{the \texttt{xltabular} environment with \texttt{longtable} property}\\[\belowcaptionskip]
\BB\\
Now a manuel \texttt{\textbackslash pagebreak} is used\\
\pagebreak
\BBB
\end{xltabular}



\begin{xltabular}{\linewidth}{@{}>{\ttfamily}l>{\RaggedRight}X@{}}
\caption{File endings (only for a demonstration \ldots)}\\\hline
.ext & Beschreibung\\\hline
\endfirsthead
\multicolumn{2}{@{}l}{\ldots\ \small Fortsetzung}\\\hline
.ext & Beschreibung\\\hline
\endhead
\hline
\multicolumn{2}{r@{}}{\small Fortsetzung\ldots}\\
\endfoot
\hline
\endlastfoot
aux &  (auxiliary) Hilfsdatei, enthält Querverweise usw. \\ 
bbl &  (bibliography) Hilfsdatei, enthält die Einträge für die Literatur\\ 
bib &  (bibtex) enthält die Literaturdaten\\ 
blg &  (bibliography log) enthält die Ausgaben eines Bib\TeX-Laufs\\ 
cfg &  (config) Konfigurationsdatei\\ 
clo &  (class options) Definitionen für die Dokumentenklasse 
    und die entsprechenden Klassen-Optionen\\ 
\end{xltabular}



\nocite{*}
\printbibliography


\end{document}