diff --git a/NLA_PDS.pdf b/NLA_PDS.pdf new file mode 100644 index 0000000..17c1db5 Binary files /dev/null and b/NLA_PDS.pdf differ diff --git a/_templates/longtable.tex_t b/_templates/longtable.tex_t index 2a93991..1feffc2 100644 --- a/_templates/longtable.tex_t +++ b/_templates/longtable.tex_t @@ -1,34 +1,74 @@ -\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() %> +\begin{savenotes} +\sphinxatlongtablestart +\sphinxthistablewithglobalstyle +<% if 'booktabs' in table.styles -%> +\sphinxthistablewithbooktabsstyle +<% endif -%> +<% if 'borderless' in table.styles -%> +\sphinxthistablewithborderlessstyle +<% endif -%> +<% if 'standard' in table.styles -%> +\sphinxthistablewithstandardstyle +<% endif -%> +<% if 'vlines' in table.styles -%> +\sphinxthistablewithvlinesstyle +<% endif -%> +<% if 'novlines' in table.styles -%> +\sphinxthistablewithnovlinesstyle +<% endif -%> +<% if 'colorrows' in table.styles -%> +\sphinxthistablewithcolorrowsstyle +<% endif -%> +<% if 'nocolorrows' in table.styles -%> +\sphinxthistablewithnocolorrowsstyle +<% endif -%> +\makeatletter +<%- if table.align in ('center', 'default') %> + \LTleft \@totalleftmargin plus1fill + \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill +<%- elif table.align == 'left' %> + \LTleft \@totalleftmargin + \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill +<%- elif table.align == 'right' %> + \LTleft \@totalleftmargin plus1fill + \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax +<%- endif %> +\makeatother +\begin{longtable}<%= table.get_colspec() %> <%- if table.caption -%> \sphinxthelongtablecaptionisattop \caption{<%= ''.join(table.caption) %>\strut}<%= labels %>\\*[\sphinxlongtablecapskipadjust] -\hline <% elif labels -%> -\hline\noalign{\phantomsection<%= labels %>}% -<% else -%> -\hline +\noalign{\phantomsection<%= labels %>}% +<% endif -%> +\sphinxtoprule +<%= ''.join(table.header) -%> +<%- if table.header -%> +\sphinxmidrule <% endif -%> -<%= ''.join(table.header) %> \endfirsthead -\multicolumn{<%= table.colcount %>}{c}% -{\makebox[0pt]{\sphinxtablecontinued{<%= _('continued from previous page') %>}}}\\ -\hline -<%= ''.join(table.header) %> +%\multicolumn{<%= table.colcount %>}{c}{\sphinxnorowcolor +% \makebox[0pt]{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} <%= _('continued from previous page') %>}}% +%}\\ +\sphinxtoprule +<%= ''.join(table.header) -%> +<%- if table.header -%> +\sphinxmidrule +<% endif -%> \endhead -\hline -\multicolumn{<%= table.colcount %>}{r}{\makebox[0pt][r]{\sphinxtablecontinued{<%= _('continues on next page') %>}}}\\ +\sphinxbottomrule +\multicolumn{<%= table.colcount %>}{r}{\sphinxnorowcolor + \makebox[0pt][r]{\sphinxtablecontinued{<%= _('continues on next page') %>}}% +}\\ \endfoot \endlastfoot -<%= ''.join(table.body) %> -\end{longtable}\sphinxatlongtableend\end{savenotes} +\sphinxtableatstartofbodyhook +<%= ''.join(table.body) -%> +\sphinxbottomrule +\end{longtable} +\sphinxtableafterendhook +\sphinxatlongtableend +\end{savenotes} diff --git a/conf.py b/conf.py index e086b32..e0048ce 100644 --- a/conf.py +++ b/conf.py @@ -86,8 +86,9 @@ latex_elements = { 'releasename': 'Edition', 'printindex': r'\footnotesize\raggedright\printindex', } -latex_additional_files = ['pass-options.tex.txt', 'preamble.tex.txt', 'NLA_PDS.eps', 'latexmkrc'] +latex_additional_files = ['pass-options.tex.txt', 'preamble.tex.txt', 'NLA_PDS.pdf', 'latexmkrc'] #latex_show_pagerefs = True +latex_table_style = ['standard'] if 'TEX_JOBNAME' in os.environ: latex_documents = [('index', os.environ['TEX_JOBNAME'] + '.tex', 'Points of Order', '', 'manual')]