Closed liao961120 closed 5 years ago
Also, this may be combined with a wrapper of rmarkdown::draft()
.
ToDo: Test this on Windows
ToDo
ToDo: Test this on Windows
It seems that if I renamed the file to kaiti.ttf
, LaTeX can't find the file. (This somehow brokes the file on windows)
ToDo: Use original font file name
Fixed in 0db06c8 & 6ba03ba.
If the current working dir is the home directory, then executing
rmdtk::donwload_font()
will install fonts intoC:/Users/<user>/Documents/R/win-library/3.5/rmdtk/rmarkdown/templates/document/skeleton/latex
on Windows, provided that no otherheader.tex
is found.rmdtk::donwload_font()
was designed to run every time after an R Markdown template is imported. Would it be reasonable to runrmdtk::donwload_font()
only once & apply it to the source template file, instead of running it every time when importing the template?