eddelbuettel / pinp

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

pandoc2 changes #51

Closed eddelbuettel closed 6 years ago

eddelbuettel commented 6 years ago

Kurt H writes what follows below. Need to change the reference vignette, and the Rcpp* packages using this scheme.

Dirk, As already mentioned: pls see https://cran.r-project.org/web/checks/check_results_RcppCNPy.html

Yihui wrote:

The problem is that it seems Pandoc no longer recognizes arbitrary LaTeX commands in variables set in the YAML metadata. Specifically, in RcppCNPy-intro.Rmd:

include-after: | \begin{thebibliography}{4}

This will be escaped to \textbackslash{}begin{thebibliography}{4} in the .tex output, failing the bibliography. I suggest that the authors move the values of header-includes and include-after to separate .tex files, and use the "includes" option of the R Markdown output format, e.g.,

output: pinp::pinp: includes: in_header: header.tex after_body: bibliography.tex

Can you pls fix accordingly?

Packages

RcppClassic RcppGSL RcppZiggurat pinp

apparently all have exactly the same problem as RcppCNPy: pls fix those too.

Best -k