Skip to content
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

Open
DraTeots opened this issue Jan 14, 2021 · 5 comments
Open

Show all tabs if user is printing the document #96

DraTeots opened this issue Jan 14, 2021 · 5 comments

Comments

@DraTeots
Copy link

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

@welcome
Copy link

welcome bot commented Jan 14, 2021

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@thibgc
Copy link

thibgc commented Apr 12, 2021

+1 for this enhancement request

@Daltz333
Copy link
Collaborator

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"?

@DraTeots
Copy link
Author

DraTeots commented Apr 13, 2021

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 */
}

@foster999
Copy link
Collaborator

foster999 commented Apr 13, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants