Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple authors #43

Closed
zeigerpuppy opened this issue Jun 21, 2017 · 2 comments
Closed

multiple authors #43

zeigerpuppy opened this issue Jun 21, 2017 · 2 comments

Comments

@zeigerpuppy
Copy link

When I try to include two authors in the YAML header and build, I get the following error.
Is there a way to include multiple authors?

YAML

---
title: Title of submission
author:
  - Author One
  - Author Two
date: "`r format(Sys.time(), '%d %B %Y')`"
bibliography: mybibfile.bib
output:
  tufte::tufte_handout: default
  tufte::tufte_html: default
  rticles::plos_article: default
csl: plos.csl
---

build command:

rmarkdown::render("Article.Rmd", tufte::tufte_handout(), output_dir="_out_tufte")

error:

! Extra \fi.
<argument> ...rrenvir \else \@badend {tabular}\fi
                                                  \expandafter \endgroup \if...
l.65 \author{Author One \and Author Two}
@yihui
Copy link
Member

yihui commented Jun 25, 2017

This may be an issue (or bug) of the LaTeX class tufte-handout.cls (\and does not work in \author{}). It is probably also why I didn't write the two author names in the default template like you did: https://github.com/rstudio/tufte/blame/master/inst/rmarkdown/templates/tufte_html/skeleton/skeleton.Rmd#L4

@yihui yihui closed this as completed Jan 16, 2018
@github-actions
Copy link

github-actions bot commented Nov 4, 2020

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants