-
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
Show all tabs if user is printing the document #96
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
+1 for this enhancement request |
I'm not sure this is possible without some sort of export mode. I think it's a bit out of scope for this extension, sphinx overall has various flaws from printing from webpages. Webpages aren't meant to be printed. @foster999 do you have any idea of a possible solution, or should we close this as a "wontfix"? |
It depends on how tabs are implemented, but in general it is easy to do on CSS level with @media. So it can be used to add styles when the page is being printed - to not to fold tabs (arrange them one by one for example) @media print {
/* Your style for printing */
} It can determine if this is printing layout and even things like page orientation @media print and (orientation: portrait) {
/* Your code for printing in portrait orientation */
} |
Thanks for the examples, I hadn't realised you could use media queries for printing. Certainly seems doable! I can see that it currently shows only the first tab's panel, @DraTeots how would you like other tabs/panels to appear? (MS paint illustrations are welcome) |
Is your feature request related to a problem? Please describe.
If I print a document with sphinx-tab on it only the tab that is open is printed
Describe the solution you'd like
That for print mode/when we print a page - all tabs are printed sequentially.
P.S. This is different from saving to latex/pdf #57 which we also await
The text was updated successfully, but these errors were encountered: