rstudio / rticles

LaTeX Journal Article Templates for R Markdown
https://pkgs.rstudio.com/rticles/
1.47k stars 518 forks source link

Uses biblio-style instead of bibstyle in springer_article #358

Closed eliocamp closed 3 years ago

eliocamp commented 3 years ago

Following on this comment https://github.com/rstudio/rticles/pull/356#discussion_r544181296

This changes the variable name from bibstyle to biblio-style to match the default pandoc template for latex and other rticles templates.

cderv commented 3 years ago

Thanks @eliocamp !

No so easy to do because you don't want to break every existing document that are using bibstyle. At least, I don't want to 😄

I believe this could be done if both are supported - at least for some versions as a deprecated function or argument.

eliocamp commented 3 years ago

Yes, I see. That's one reason I think it might be useful to copy the template.tex file in the same folder as the Rmd file. That way, each rticle project is setf-contained and can't break (easily) with changes in rticles.

I pushed some more subtle logic to catch the old behaviour. Would that work?

cderv commented 3 years ago

That's one reason I think it might be useful to copy the template.tex file in the same folder as the Rmd file. That way, each rticle project is setf-contained and can't break (easily) with changes in rticles.

But you would not get the updates in templates that are required when TeX Live updates, or Pandoc updates, etc... having the template in the package also allow to hide some of the complexity behind all this. Like in Pandoc itself with the default template, or in rmarkdown or bookdown where you use the included templates that live in the packages.

However, advanced users are free to use their templates. So being able to opt-in to self contained mode when creating a template could be useful maybe. You can open a specific issue on that if you want.