The authors of the rticles
package already adapted style/layout specifications for a number of journals, but I would like to create a own one.
Is there a possibility for local rticle templates or is adding a template to the package's source code the only way to implement a new format?
Although I'm not afraid of working with the source code and I found the vignette of the package, I'm wondering whether there is a tutorial on adapting new styles/formats.
Thanks a lot for your hint.
I had carefully read this chapter of the R Markdown guide and thought of putting the files of my template in ./inst/rmarkdown/templates/my_template/
as explained there.
As far as I understand, the real purpose of the inst/
directory however is to contain files of a package, which will be copied to other directories when installing a package.
I have a project directory containing a *.Rmd
document, which I would like to format according to a template which should ideally be stored in the same project directory.
The rticles
package provides or basically is an excellent way to share templates.
Linking a custom local template in the R Markdown file without using the rticles
package as explained in the chapter you kindly pointed out is indeed a good solution for what I would like to do.
I found additional helpful information on http://ulriklyngs.com/post/2021/12/02/how-to-adapt-any-latex-template-for-use-with-r-markdown-in-four-steps/.
For any journal/template which is already implemented in rticles
, this package is certainly the way to go.