yihui / printr

Some (magical) printing methods for knitr
https://yihui.org/printr/
118 stars 24 forks source link

Help pages rendered as code block in knit to pdf #36

Open aravind-j opened 6 years ago

aravind-j commented 6 years ago

Help pages are rendered as a code block in knit to pdf, whereas for knit to html, the proper page is displayed. Is there any way to get similar result in pdf ?

yihui commented 6 years ago

That is a natural idea. I actually tried it in the very beginning but it was tricky. The main problem is how to properly insert the LaTeX "packages" like Rd.sty into the final .tex output document, since the LaTeX output of a help page requires extra LaTeX packages.