Closed etiennebr closed 3 years ago
I will require some Latex expert here to help on this one.
Maybe @dleutnant will be able to help to make this template work for xelatex.
If someone know the changes to be made in the tex template, I'll be happy to do it but I don't know yet what to fix here.
While reviewing #381 I saw that a special pdftex
option is set
https://github.com/rstudio/rticles/blob/b348d8322c6f8dc993f01140ea9a1bfbb5f6ea40/inst/rmarkdown/templates/mdpi/resources/template.tex#L5
it may not be compatible with xelatex
. From MDPI official template
%--------- % pdftex %--------- % The option pdftex is for use with pdfLaTeX. If eps figures are used, remove the option pdftex and use LaTeX and dvi2pdf.
Would you be able to try without it maybe ?
Also @etiennebr you could try #381 if maybe the updated template fix this.
Thanks for following up @cderv, I now better understand the differences between xelatex and pdf latex and I see it is a requirement of the editor anyway. Using xelatex doesn't work with #381 either, so using a preamble is the best bet. Closing now.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
Using
rticles::mdpi_article
by @dleutnant (thank you sir), I have an issue with Unicode characters contained in the text (and probably the bibliography as well). I can reproduce the bug on the defaultmdpi_article
Rmd by throwing e.g.Δ
somewhere in the text.xelatex seemed like the solution but
mdpi_article
doesn't seem to support it. Using:on the default
mdpi_article
template givesSo I used a preamble to insert definitions
With
But the list of unicode characters I need to define is increasingly long an it seems like I'll have to define the whole UTF-8 set!
Is there a way to make the mdpi package use xelatex, or support utf8 and resolve the issue once for all, or I should just spend that time declaring utf characters in the preamble?
For context, I'm converting papers originally written in Word and Google docs. I would probably have used the math notation if I was writing the Rmd directly, although I like having the symbols in the RMD (in Rstudio at least), it reads nicely.
By filing an issue to this repo, I promise that
xfun::session_info('rticles')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles')
.I understand that my issue may be closed if I don't fulfill my promises.