tint
tint copied to clipboard
marginfigure doesn't show when echo=FALSE globally
When reporting to clients, they tend not to care (nor wish) to see the code. This means it's common to set knitr options such that echo=FALSE. With this option set, arbitrary marginfigure chunk content is not shown and this fact is not otherwise documented. However, it's easily fixed by add echo=TRUE to the marginfigure chunk option. I do not know if this effects the LaTeX version, as I don't use latex.
I submitted a PR to rstudio/tufte for this, not sure if your repo will pick it up automatically or not:
https://github.com/rstudio/tufte/pull/24
The only way I have gotten around this is setting echo=TRUE
in every marginfigure
environment.
Hm. Can you try as a global knitr option?