rstudio / rticles

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

Equal contribution authorship for JSS #377

Closed nbenn closed 3 years ago

nbenn commented 3 years ago

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.


For a JSS article, I'm struggling to figure out how one would go about adding footnotes to authors for indicating equal contribution authorship. With YAML metadata as

---
documentclass: jss
author:
  - name: First Author A
    affiliation: "Some University^[These authors contributed equally.]"
    address: >
      Street
      City
      Country
    email: \email{some_email_a@mail.com}
  - name: First Author B
    affiliation: "Some University^[These authors contributed equally.]"
    address: >
      Street
      City
      Country
    email: \email{some_email_b@mail.com}
  - name: Second Author
    affiliation: Other University
    address: >
      Street
      City
      Country
    email: \email{other_email@mail.com}
title:
  formatted: "A Capitalized Title: Something about a Package \\pkg{foo}"
  plain:     "A Capitalized Title: Something about a Package foo"
  short:     "\\pkg{foo}: A Capitalized Title"
abstract: >
  The abstract of the article.
keywords:
  # at least one keyword must be supplied
  formatted: [keywords, not capitalized, "\\proglang{Java}"]
  plain:     [keywords, not capitalized, Java]
preamble: >
  \usepackage{amsmath}
output: rticles::jss_article
---

So far, whatever I tried yielded something along the lines of

[WARNING] Could not parse YAML metadata at line 74 column 1: Unexpected '
  '
! Undefined control sequence.
l.14 \Plainauthor
                 {}

Error: processing vignette 'jss.Rmd' failed with diagnostics:
LaTeX failed to compile /path/to/jss.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See jss.log for more info.

Any pointers on how to go about this would be most welcome. Also I was unsure whether this is the right place for such a question but in the end I felt that it was too specific for SO. If anyone disagrees, I'm happy to close and move to SO.

nbenn commented 3 years ago

As it turns out, the error quoted above was caused by something unrelated. I apologize for the noise.

github-actions[bot] commented 3 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.