-
Notifications
You must be signed in to change notification settings - Fork 2k
/
longtable.tex_t
60 lines (57 loc) · 1.39 KB
/
longtable.tex_t
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
\begin{savenotes}\sphinxatlongtablestart\begin{longtable}
<%- if table.align in ('center', 'default') -%>
[c]
<%- elif table.align == 'left' -%>
[l]
<%- elif table.align == 'right' -%>
[r]
<%- endif -%>
<%= table.get_colspec() %>
<%- if table.caption -%>
\sphinxthelongtablecaptionisattop
\caption{<%= ''.join(table.caption) %>\strut}<%= labels %>\\*[\sphinxlongtablecapskipadjust]
<% if table.booktabs -%>
\toprule
<% else -%>
\hline
<% endif -%>
<% elif labels -%>
<% if table.booktabs -%>
\toprule\noalign{\phantomsection<%= labels %>}%
<% else -%>
\hline\noalign{\phantomsection<%= labels %>}%
<% endif -%>
<% else -%>
<% if table.booktabs -%>
\toprule
<% else -%>
\hline
<% endif -%>
<% endif -%>
<%= ''.join(table.header) %>
\endfirsthead
\multicolumn{<%= table.colcount %>}{c}%
{\makebox[0pt]{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} <%= _('continued from previous page') %>}}}\\
<% if table.booktabs -%>
\toprule
<% else -%>
\hline
<% endif -%>
<%= ''.join(table.header) %>
<% if table.header and table.booktabs -%>
\midrule
<% endif -%>
\endhead
<% if table.booktabs -%>
\bottomrule
<% else -%>
\hline
<% endif -%>
\multicolumn{<%= table.colcount %>}{r}{\makebox[0pt][r]{\sphinxtablecontinued{<%= _('continues on next page') %>}}}\\
\endfoot
\endlastfoot
<%= ''.join(table.body) %>
<% if table.booktabs -%>
\bottomrule
<% endif -%>
\end{longtable}\sphinxatlongtableend\end{savenotes}