-
Notifications
You must be signed in to change notification settings - Fork 69
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
Improve Latex/pdf support #57
Comments
I have had to do something very similar in order to allow compatibility between my PDF and HTML builds. I've had to go so far as make a build script that gets run in my CI pipelines that uses # sphinx-tabs formatting workaround
## Replacing tabs with admonitions, to properly render
for TAB_FILE in $(grep -R '.. tabs::' docs/ | cut -d':' -f1 | sort | uniq)
do
sed -i 's/\ \ \ \.\.\ tabs:://g' $TAB_FILE
sed -i 's/\ \ \ \ \.\.\ tab::/\ \ \.\. admonition::/g' $TAB_FILE
done It's literally modifying the rst temporarily when the pipeline job for building PDFs runs. It's been the best way for me to make the lives of other contributors (and myself) easier. Once it can work fine out-of-box, I'll won't have to remember it for other projects using this plugin that also generate PDFs |
yep its on the TODO list, when I start restructuring some of the parsing logic, to work better with MyST-Parser |
Since we pushed the new version, is this issue still present? On our PDF, it prints each tab as it's own thing. |
Hi @Daltz333 thanks for you efforts! Since opening this issue, I moved projects that required a PDF to sphinx-panels and used |
What is "our PDF" here? I don't see any PDF downloads in the docs: https://sphinx-tabs.readthedocs.io |
My personal project frc-docs.readthedocs.io |
Hi, Is it possible to change the order of how tabs and the corresponding content appear in PDF? Tab 1 Now we see first all the tabs and then all the content so the reader will likely be confused about what content is for what tab. |
Support for tabs in latex/pdf was required in #19, apparently added in PR #23 (commit 3f9bf17), but it is not part of the current release. Was it ever part of a release and are there any plan to (re)introduce that feature? If I apply the code in that commit to the current release, the output latex code does not change at all from the current release...
I use currently as a workaround the
.. only::
directives with tabs for html and topics for latex, but it would be better to have it automatic with sphinx_tabs.The text was updated successfully, but these errors were encountered: