Multi Tab Print HTML made in rmarkdown

Does anyone know of a way to print an HTML with multiple tabs? I am hoping to print each tab, but only want to click 'print' once.

I'm wondering if there is a parameter or css that I can set somewhere?

Html is generated using rmarkdown.


replies are closed, so i'll add this follow up here

This code (found on stackoverflow) works:

@media print {
    .tab-pane {
        display: block !important;
        opacity: 1;

I don't think there is... this is why tabs are not supported in bookdown I have been told. It's not even obvious to me how this would work for a tabset in the middle of a document.

Although if you hack a solution together, please post here telling us about it. I've thought about this with some stuff I do and am not sure I have a good solution.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.