1\label{\detokenize{tabular:table-having-caption}} 2 3\begin{savenotes}\sphinxattablestart 4\centering 5\sphinxcapstartof{table} 6\sphinxthecaptionisattop 7\sphinxcaption{caption for table}\label{\detokenize{tabular:id1}} 8\sphinxaftertopcaption 9\begin{tabulary}{\linewidth}[t]{|T|T|} 10\hline 11\sphinxstyletheadfamily 12\sphinxAtStartPar 13header1 14&\sphinxstyletheadfamily 15\sphinxAtStartPar 16header2 17\\ 18\hline 19\sphinxAtStartPar 20cell1\sphinxhyphen{}1 21& 22\sphinxAtStartPar 23cell1\sphinxhyphen{}2 24\\ 25\hline 26\sphinxAtStartPar 27cell2\sphinxhyphen{}1 28& 29\sphinxAtStartPar 30cell2\sphinxhyphen{}2 31\\ 32\hline 33\sphinxAtStartPar 34cell3\sphinxhyphen{}1 35& 36\sphinxAtStartPar 37cell3\sphinxhyphen{}2 38\\ 39\hline 40\end{tabulary} 41\par 42\sphinxattableend\end{savenotes} 43