How to use Browser's Print-to-PDF while my HTML contains {.tabset}

Hello good people,

I noted recently that CSS styling inside RMarkdown doesn't gets into knitting to PDF.
So I tried to open the HTML page to print the page as PDF, but the many tabsets that I used are not expanding and contents remains hidden.

Is there any way to instruct {.tabset} to not apply over printable-view?

UPDATE: pagedown did the trick, however I have one Issue

install.packages('remotes')
remotes::install_github('rstudio/pagedown')

#---YAML Section---
# output:
#  pagedown::html_paged: 
#    toc: true
#    number_sections: true

After installing I firstly thought nothing changed and instructions are not very clear about what to do after installing.
Actually a new button is added to Knitr in Rstudio "knit to html_paged".

After knitting a new paginated HTML is shown.
However this requires a normal browser and here is the Issue.

When clicking "Open in Browser" the default browser is added a new tab.
I noted that only 4 pages are shown with contents for title-page only.

This happens in Opera, but did not in Firefox.
Javascript console in Opera shows an error in huge amount of embedded code, while in Firefox nothing. This is probably related to paged.js, however I see that it embeds the file instead of linking to it.

image

image

This topic was automatically closed 7 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.