svmiller / svm-r-markdown-templates

This is my (deprecated) suite of R Markdown templates for academic manuscripts, beamer presentations, and syllabi. DOWNLOAD {stevetemplates} INSTEAD.
http://svmiller.com/stevetemplates/
Other
896 stars 737 forks source link

cslreferences missing in svm-latex-ms #30

Closed ashenkin closed 3 years ago

ashenkin commented 3 years ago

Hi there, I use your svm-latex-ms (thank you!), but it seems to be crashing in recent Rstudio updates due to CSLReferences missing. Wondering if you'd consider patching it for this? Many thanks!

svmiller commented 3 years ago

I seem to vaguely recall this error working on something else. Basically, if you're using Pandoc/CSL (in lieu of natbib) for references, Rstudio's Pandoc will insert some kind of CSLReferences tag to wrap the references. If my template doesn't have it, LaTeX throws up an error that basically balks at the CSLReferences tag.

Could you do me a favor. First, can you see if this is still the case (probably is) in my {stevetemplates} package. You can download this package on CRAN. This particular Github repo is no longer actively maintained and I'm trying to direct users to the R package (which is actively maintained). The particular template there is stevetemplates::article. The usage should be fairly straightforward, especially if you're in Rstudio.

Second, if you're open to using one of my templates---any of them for this purpose---might I interest you in stevetemplates::article2? I wrote this template last September and I know for a fact this issue won't arise with it.

ashenkin commented 3 years ago

Thanks for the reply! Yep, seems fixed in your package, where you've included references to CSLReferences. Many thanks! I'll be using your nice package from now on.

svmiller commented 3 years ago

Perfect! I'm glad this has a happy resolution.