Update LaTeX configuration for new Sphinx

This commit is contained in:
RunasSudo 2023-09-23 23:15:44 +10:00
parent 23c6749de2
commit cb76d80cf8
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
3 changed files with 64 additions and 23 deletions

BIN
NLA_PDS.pdf Normal file

Binary file not shown.

View File

@ -1,34 +1,74 @@
\begin{savenotes}\sphinxatlongtablestart\begin{longtable} \begin{savenotes}
<%- if table.align in ('center', 'default') -%> \sphinxatlongtablestart
[c] \sphinxthistablewithglobalstyle
<%- elif table.align == 'left' -%> <% if 'booktabs' in table.styles -%>
[l] \sphinxthistablewithbooktabsstyle
<%- elif table.align == 'right' -%> <% endif -%>
[r] <% if 'borderless' in table.styles -%>
<%- endif -%> \sphinxthistablewithborderlessstyle
<%= table.get_colspec() %> <% 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 -%> <%- if table.caption -%>
\sphinxthelongtablecaptionisattop \sphinxthelongtablecaptionisattop
\caption{<%= ''.join(table.caption) %>\strut}<%= labels %>\\*[\sphinxlongtablecapskipadjust] \caption{<%= ''.join(table.caption) %>\strut}<%= labels %>\\*[\sphinxlongtablecapskipadjust]
\hline
<% elif labels -%> <% elif labels -%>
\hline\noalign{\phantomsection<%= labels %>}% \noalign{\phantomsection<%= labels %>}%
<% else -%> <% endif -%>
\hline \sphinxtoprule
<%= ''.join(table.header) -%>
<%- if table.header -%>
\sphinxmidrule
<% endif -%> <% endif -%>
<%= ''.join(table.header) %>
\endfirsthead \endfirsthead
\multicolumn{<%= table.colcount %>}{c}% %\multicolumn{<%= table.colcount %>}{c}{\sphinxnorowcolor
{\makebox[0pt]{\sphinxtablecontinued{<%= _('continued from previous page') %>}}}\\ % \makebox[0pt]{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} <%= _('continued from previous page') %>}}%
\hline %}\\
<%= ''.join(table.header) %> \sphinxtoprule
<%= ''.join(table.header) -%>
<%- if table.header -%>
\sphinxmidrule
<% endif -%>
\endhead \endhead
\hline \sphinxbottomrule
\multicolumn{<%= table.colcount %>}{r}{\makebox[0pt][r]{\sphinxtablecontinued{<%= _('continues on next page') %>}}}\\ \multicolumn{<%= table.colcount %>}{r}{\sphinxnorowcolor
\makebox[0pt][r]{\sphinxtablecontinued{<%= _('continues on next page') %>}}%
}\\
\endfoot \endfoot
\endlastfoot \endlastfoot
<%= ''.join(table.body) %> \sphinxtableatstartofbodyhook
\end{longtable}\sphinxatlongtableend\end{savenotes} <%= ''.join(table.body) -%>
\sphinxbottomrule
\end{longtable}
\sphinxtableafterendhook
\sphinxatlongtableend
\end{savenotes}

View File

@ -86,8 +86,9 @@ latex_elements = {
'releasename': 'Edition', 'releasename': 'Edition',
'printindex': r'\footnotesize\raggedright\printindex', '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_show_pagerefs = True
latex_table_style = ['standard']
if 'TEX_JOBNAME' in os.environ: if 'TEX_JOBNAME' in os.environ:
latex_documents = [('index', os.environ['TEX_JOBNAME'] + '.tex', 'Points of Order', '', 'manual')] latex_documents = [('index', os.environ['TEX_JOBNAME'] + '.tex', 'Points of Order', '', 'manual')]