rstudio / rticles

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

Rjournal template: optional url field in the YAML #387

Closed huizezhang-sherry closed 3 years ago

huizezhang-sherry commented 3 years ago

Using the Rjournal template with the optional url field removed generates an undesirable line break in the author's signature.

Here is a minimal reproducible example: https://github.com/huizezhang-sherry/rticle-author-field. In my-article/my-article.Rmd, when the optional url field is unspecified for the first author (line 5- 11), the generated pdf produces a line break in between address and orcid.


By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.

cderv commented 3 years ago

Thanks I think this is an issue with the template https://github.com/rstudio/rticles/blob/4afb44c40b49e11a27a2127a61ed9c34b3a9187e/inst/rmarkdown/templates/rjournal/resources/template.tex#L19-L31

The newline character should be inserted in the right place inside the conditional so that it is not inserted if url is not provided.

cderv commented 3 years ago

Hi @huizezhang-sherry

This should be solved with current dev version

remotes::install_github("rstudio/rticles")
github-actions[bot] commented 2 years ago

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.