eddelbuettel / pinp

Pinp Is Not PNAS -- Two-Column PDF Template
147 stars 25 forks source link

inherit from bookdown #71

Closed Courvoisier13 closed 5 years ago

Courvoisier13 commented 5 years ago

Hi,

thank you for this excellent template!

Is there a way I can make it inherit from bookdown instead of the classic Rmarkdown pdf? Rmarkdown cannot reference sections in the documents using @ref, but bookdown does this correctly

thanks

eddelbuettel commented 5 years ago

We follow the latex sttandard and use bibtex via \cite{}, \citep{], \citet{} and so on. That is a deliberate choice. See some of the vignettes using pinp for how. This is unlikely to change, so I suggest we close this.

We also do not impose any outer wrapper. I mostly just call rmarkdown::render("myfile.Rmd").

Courvoisier13 commented 5 years ago

Thanks, I just realized there is no need. The \ref{} for figures and tables defined in chunks work well as do those of sections. I think the new pandoc V 2 addressed a previous issue that needed a workaround.