mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add tests for non-captioned table with label in latex
This commit is contained in:
parent
7416e9907c
commit
7bebdd0f97
@ -1,7 +1,7 @@
|
||||
\label{\detokenize{longtable:longtable-having-widths-option}}
|
||||
|
||||
\begin{savenotes}\sphinxatlongtablestart\begin{longtable}{|\X{30}{100}|\X{70}{100}|}
|
||||
\hline
|
||||
\hline\noalign{\phantomsection\label{\detokenize{longtable:namedlongtable}}\label{\detokenize{longtable:mylongtable}}}%
|
||||
\sphinxstyletheadfamily
|
||||
header1
|
||||
&\sphinxstyletheadfamily
|
||||
@ -43,3 +43,5 @@ cell3-2
|
||||
\\
|
||||
\hline
|
||||
\end{longtable}\sphinxatlongtableend\end{savenotes}
|
||||
|
||||
See {\hyperref[\detokenize{longtable:mylongtable}]{\sphinxcrossref{mylongtable}}}, same as {\hyperref[\detokenize{longtable:namedlongtable}]{\sphinxcrossref{\DUrole{std,std-ref}{this one}}}}.
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
\begin{savenotes}\sphinxattablestart
|
||||
\centering
|
||||
\phantomsection\label{\detokenize{tabular:namedtabular}}\label{\detokenize{tabular:mytabular}}
|
||||
\begin{tabular}[t]{|\X{30}{100}|\X{70}{100}|}
|
||||
\hline
|
||||
\sphinxstyletheadfamily
|
||||
@ -28,3 +29,5 @@ cell3-2
|
||||
\end{tabular}
|
||||
\par
|
||||
\sphinxattableend\end{savenotes}
|
||||
|
||||
See {\hyperref[\detokenize{tabular:mytabular}]{\sphinxcrossref{\DUrole{std,std-ref}{this}}}}, same as {\hyperref[\detokenize{tabular:namedtabular}]{\sphinxcrossref{namedtabular}}}.
|
||||
|
@ -18,9 +18,12 @@ longtable
|
||||
longtable having :widths: option
|
||||
--------------------------------
|
||||
|
||||
.. _mylongtable:
|
||||
|
||||
.. table::
|
||||
:class: longtable
|
||||
:widths: 30,70
|
||||
:name: namedlongtable
|
||||
|
||||
======= =======
|
||||
header1 header2
|
||||
@ -30,6 +33,8 @@ longtable having :widths: option
|
||||
cell3-1 cell3-2
|
||||
======= =======
|
||||
|
||||
See mylongtable_, same as :ref:`this one <namedlongtable>`.
|
||||
|
||||
longtable having :align: option
|
||||
-------------------------------
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
taburar and taburary
|
||||
tabular and tabulary
|
||||
====================
|
||||
|
||||
simple table
|
||||
@ -15,8 +15,11 @@ cell3-1 cell3-2
|
||||
table having :widths: option
|
||||
----------------------------
|
||||
|
||||
.. _mytabular:
|
||||
|
||||
.. table::
|
||||
:widths: 30,70
|
||||
:name: namedtabular
|
||||
|
||||
======= =======
|
||||
header1 header2
|
||||
@ -26,6 +29,8 @@ table having :widths: option
|
||||
cell3-1 cell3-2
|
||||
======= =======
|
||||
|
||||
See :ref:`this <mytabular>`, same as namedtabular_.
|
||||
|
||||
table having :align: option (tabulary)
|
||||
--------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user