forked from sphinx-doc/sphinx
/
longtable_having_caption.tex
47 lines (43 loc) · 1.05 KB
/
longtable_having_caption.tex
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
\label{\detokenize{longtable:longtable-having-caption}}
\begin{savenotes}\sphinxatlongtablestart\begin{longtable}[c]{|l|l|}
\sphinxthelongtablecaptionisattop
\caption{caption for longtable\strut}\label{\detokenize{longtable:id1}}\\*[\sphinxlongtablecapskipadjust]
\hline
\sphinxstyletheadfamily \hskip0pt\relax
header1
&\sphinxstyletheadfamily \hskip0pt\relax
header2
\\
\hline
\endfirsthead
\multicolumn{2}{c}%
{\makebox[0pt]{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} continued from previous page}}}\\
\hline
\sphinxstyletheadfamily \hskip0pt\relax
header1
&\sphinxstyletheadfamily \hskip0pt\relax
header2
\\
\hline
\endhead
\hline
\multicolumn{2}{r}{\makebox[0pt][r]{\sphinxtablecontinued{continues on next page}}}\\
\endfoot
\endlastfoot
\hskip0pt\relax
cell1\sphinxhyphen{}1
&\hskip0pt\relax
cell1\sphinxhyphen{}2
\\
\hline\hskip0pt\relax
cell2\sphinxhyphen{}1
&\hskip0pt\relax
cell2\sphinxhyphen{}2
\\
\hline\hskip0pt\relax
cell3\sphinxhyphen{}1
&\hskip0pt\relax
cell3\sphinxhyphen{}2
\\
\hline
\end{longtable}\sphinxatlongtableend\end{savenotes}