- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with caption package, no hooks to style captions #5520
Comments
You can go a long way by simply adding
via the preamble key of latex_elements. I recommend using You are going to lose some exact same distance from title to top of tabular compared to from title to top of longtable (in my brief testing, and it depends if title ends with descender letters). I am not 100% sure (untested) if it will still work with captions used inside tabular cell but I think it should work because the Can you report how the above works out on your real use cases ? |
Ensure same vertical spaces above caption for tabular(y) and longtable rendered tables. Fixes: sphinx-doc#5520
Fixed at 9c8c210. Addition of Thanks for reporting. |
Update: using the Workaround: make the table a longtable or do not use This is not an issue for me since we use longtables exclusively, but may be useful information for other users, or may influence the path forward for Sphinx-native styling of captions (without extra packages) |
So how can I style captions currently? |
@electronstudio This is a very old issue, please use the support channels of Sphinx for your question (a new issue, the |
Problem
In Sphinx < 1.6, the caption package could be used to style captions, e.g.:
Since Sphinx 1.6, including the caption package causes the caption to jump to the right.

Procedure to reproduce the problem
index.rst:
conf.py:
Expected results
Either:
\sphinxtablecontinued
and\sphinxstyleemphasis
)Environment info
The text was updated successfully, but these errors were encountered: