You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caption's placement with figures and tables is simply determined by the \caption{...} being given before or after the includegraphics command resp. tabulary environment.
This is solved by merge of #3686 (which is based on the table templates from #3389, 2a37b0e). The user can position the caption after table using the templates. The \sphinxaftercaption should not be used then, and the \sphinxcapstartof{table} should stay where it is, if one wants internal hyperlink to go to top of table.
What is lacking is a config setting to do this automatically, but already user can use custom templates modifying the defaults.
This issue seems solved so I am going to close it. I also think there should probably be a single issue to track caption placement as there is a lot of overlap #1723
Activity
shimizukawa commentedon Jan 2, 2015
From Anonymous on 2009-07-03 04:36:06+00:00
Caption's placement with figures and tables is simply determined by the \caption{...} being given before or after the includegraphics command resp. tabulary environment.
shimizukawa commentedon Jan 2, 2015
From Georg Brandl on 2010-08-25 12:19:51+00:00
Removing milestone: 0.6 (automated comment)
jfbu commentedon May 9, 2017
This is solved by merge of #3686 (which is based on the table templates from #3389, 2a37b0e). The user can position the caption after table using the templates. The
\sphinxaftercaptionshould not be used then, and the\sphinxcapstartof{table}should stay where it is, if one wants internal hyperlink to go to top of table.What is lacking is a config setting to do this automatically, but already user can use custom templates modifying the defaults.
gmilde commentedon Jun 26, 2025
Docutils implements this with a CSS rule in the "mandatory" style file "minimal.css":
The "special" class value can be specified globally in the table-style setting in docutils.conf or per table with the :class: directive option, e.g.:
It would be good, if the Sphinx standard CSS themes supported this, too.
As a workaround, you can add the rule in a custom style sheet.
jdillard commentedon May 28, 2026
This issue seems solved so I am going to close it. I also think there should probably be a single issue to track caption placement as there is a lot of overlap #1723
Nice CSS, I learned something new.