| 1 |
\label{\detokenize{longtable:longtable-having-widths-option}} |
| 2 |
|
| 3 |
\begin{savenotes} |
| 4 |
\sphinxatlongtablestart |
| 5 |
\sphinxthistablewithglobalstyle |
| 6 |
\makeatletter |
| 7 |
\LTleft \@totalleftmargin plus1fill |
| 8 |
\LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill |
| 9 |
\makeatother |
| 10 |
\begin{longtable}{|\X{30}{100}|\X{70}{100}|} |
| 11 |
\noalign{\phantomsection\label{\detokenize{longtable:namedlongtable}}\label{\detokenize{longtable:mylongtable}}}% |
| 12 |
\sphinxtoprule |
| 13 |
\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 14 |
\sphinxstyletheadfamily \sphinxAtStartPar |
| 15 |
header1 |
| 16 |
\sphinxbeforeendvarwidth |
| 17 |
\end{varwidth}% |
| 18 |
&\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 19 |
\sphinxstyletheadfamily \sphinxAtStartPar |
| 20 |
header2 |
| 21 |
\sphinxbeforeendvarwidth |
| 22 |
\end{varwidth}% |
| 23 |
\\ |
| 24 |
\sphinxmidrule |
| 25 |
\endfirsthead |
| 26 |
|
| 27 |
\multicolumn{2}{c}{\sphinxnorowcolor |
| 28 |
\makebox[0pt]{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} continued from previous page}}% |
| 29 |
}\\ |
| 30 |
\sphinxtoprule |
| 31 |
\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 32 |
\sphinxstyletheadfamily \sphinxAtStartPar |
| 33 |
header1 |
| 34 |
\sphinxbeforeendvarwidth |
| 35 |
\end{varwidth}% |
| 36 |
&\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 37 |
\sphinxstyletheadfamily \sphinxAtStartPar |
| 38 |
header2 |
| 39 |
\sphinxbeforeendvarwidth |
| 40 |
\end{varwidth}% |
| 41 |
\\ |
| 42 |
\sphinxmidrule |
| 43 |
\endhead |
| 44 |
|
| 45 |
\sphinxbottomrule |
| 46 |
\multicolumn{2}{r}{\sphinxnorowcolor |
| 47 |
\makebox[0pt][r]{\sphinxtablecontinued{continues on next page}}% |
| 48 |
}\\ |
| 49 |
\endfoot |
| 50 |
|
| 51 |
\endlastfoot |
| 52 |
\sphinxtableatstartofbodyhook |
| 53 |
\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 54 |
\sphinxAtStartPar |
| 55 |
cell1\sphinxhyphen{}1 |
| 56 |
\sphinxbeforeendvarwidth |
| 57 |
\end{varwidth}% |
| 58 |
&\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 59 |
\sphinxAtStartPar |
| 60 |
cell1\sphinxhyphen{}2 |
| 61 |
\sphinxbeforeendvarwidth |
| 62 |
\end{varwidth}% |
| 63 |
\\ |
| 64 |
\sphinxhline\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 65 |
\sphinxAtStartPar |
| 66 |
cell2\sphinxhyphen{}1 |
| 67 |
\sphinxbeforeendvarwidth |
| 68 |
\end{varwidth}% |
| 69 |
&\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 70 |
\sphinxAtStartPar |
| 71 |
cell2\sphinxhyphen{}2 |
| 72 |
\sphinxbeforeendvarwidth |
| 73 |
\end{varwidth}% |
| 74 |
\\ |
| 75 |
\sphinxhline\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 76 |
\sphinxAtStartPar |
| 77 |
cell3\sphinxhyphen{}1 |
| 78 |
\sphinxbeforeendvarwidth |
| 79 |
\end{varwidth}% |
| 80 |
&\begin{varwidth}[t]{\sphinxcolwidth{1}{2}} |
| 81 |
\sphinxAtStartPar |
| 82 |
cell3\sphinxhyphen{}2 |
| 83 |
\sphinxbeforeendvarwidth |
| 84 |
\end{varwidth}% |
| 85 |
\\ |
| 86 |
\sphinxbottomrule |
| 87 |
\end{longtable} |
| 88 |
\sphinxtableafterendhook |
| 89 |
\sphinxatlongtableend |
| 90 |
\end{savenotes} |
| 91 |
|
| 92 |
\sphinxAtStartPar |
| 93 |
See {\hyperref[\detokenize{longtable:mylongtable}]{\sphinxcrossref{mylongtable}}}, same as {\hyperref[\detokenize{longtable:namedlongtable}]{\sphinxcrossref{\DUrole{std}{\DUrole{std-ref}{this one}}}}}. |