mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5060 from jfbu/5009_add_nobreak
LaTeX, follow-up to PR #5012, avoid label separated by pagebreak
This commit is contained in:
commit
c840e085ca
@ -15,7 +15,7 @@
|
|||||||
\sphinxcaption{<%= ''.join(table.caption) %>}<%= labels %>
|
\sphinxcaption{<%= ''.join(table.caption) %>}<%= labels %>
|
||||||
\sphinxaftercaption
|
\sphinxaftercaption
|
||||||
<% elif labels -%>
|
<% elif labels -%>
|
||||||
\phantomsection<%= labels %>
|
\phantomsection<%= labels %>\nobreak
|
||||||
<% endif -%>
|
<% endif -%>
|
||||||
\begin{tabular}[t]<%= table.get_colspec() -%>
|
\begin{tabular}[t]<%= table.get_colspec() -%>
|
||||||
\hline
|
\hline
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
\sphinxcaption{<%= ''.join(table.caption) %>}<%= labels %>
|
\sphinxcaption{<%= ''.join(table.caption) %>}<%= labels %>
|
||||||
\sphinxaftercaption
|
\sphinxaftercaption
|
||||||
<% elif labels -%>
|
<% elif labels -%>
|
||||||
\phantomsection<%= labels %>
|
\phantomsection<%= labels %>\nobreak
|
||||||
<% endif -%>
|
<% endif -%>
|
||||||
\begin{tabulary}{\linewidth}[t]<%= table.get_colspec() -%>
|
\begin{tabulary}{\linewidth}[t]<%= table.get_colspec() -%>
|
||||||
\hline
|
\hline
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
\begin{savenotes}\sphinxattablestart
|
\begin{savenotes}\sphinxattablestart
|
||||||
\centering
|
\centering
|
||||||
\phantomsection\label{\detokenize{tabular:namedtabular}}\label{\detokenize{tabular:mytabular}}
|
\phantomsection\label{\detokenize{tabular:namedtabular}}\label{\detokenize{tabular:mytabular}}\nobreak
|
||||||
\begin{tabular}[t]{|\X{30}{100}|\X{70}{100}|}
|
\begin{tabular}[t]{|\X{30}{100}|\X{70}{100}|}
|
||||||
\hline
|
\hline
|
||||||
\sphinxstyletheadfamily
|
\sphinxstyletheadfamily
|
||||||
|
Loading…
Reference in New Issue
Block a user