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

Footnotes in the YAML frontmatter #337

Closed
yihui opened this issue Dec 29, 2014 · 1 comment
Closed

Footnotes in the YAML frontmatter #337

yihui opened this issue Dec 29, 2014 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@yihui
Copy link
Member

yihui commented Dec 29, 2014

Unfortunately the PR #252 by @robjhyndman introduced a bug (originally reported at yihui/knitr#923), and one can no longer use footnotes in the title or author fields. A reproducible example:


---
title: "my title with footnote^[footnote that produces an error]"
author: "Fulano de Tal^[here too]"
date: "16/12/2014"
output:
  pdf_document:
    keep_tex: yes

---

Hello world.

This version works:

# before the PR
devtools::install_github('rstudio/rmarkdown@b1779030b63329ee2960fce2022db69ed104e08c')

This no longer works:

# after the PR
devtools::install_github('rstudio/rmarkdown@698dfdd0e96bf82a775d1197a31593d8c65c2425')

You get a LaTeX error:

! Argument of \reserved@a has an extra }.
<inserted text> 
                \par 
l.52 ...footnote{footnote that produces an error}}

pandoc: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43
Execution halted

Not sure if @robjhyndman can fix it.

More background on this issue: e0adbbe

@github-actions
Copy link

github-actions bot commented Nov 3, 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 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant