-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8196 from quarto-dev/bugfix/8002
latex - pull citations out of tables ahead of raw rendering
- Loading branch information
Showing
4 changed files
with
213 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: | | ||
A reprex | ||
author: | ||
- name: Leonard Blaschek | ||
bibliography: references.bib | ||
_quarto: | ||
tests: | ||
latex: | ||
ensureFileRegexMatches: | ||
- [] | ||
- ["\\{\\[\\}\\@marrero2019\\{\\]\\}"] | ||
--- | ||
|
||
|
||
This works: | ||
|
||
Testcitation [@marrero2019] | ||
|
||
|
||
This works: | ||
|
||
```{r} | ||
library(tidyverse) | ||
library(knitr) | ||
test <- tribble( | ||
~Text, ~Reference, | ||
"Text", "[@marrero2019]" | ||
) | ||
kable(test) | ||
``` | ||
|
||
This does not work: | ||
|
||
|
||
```{r} | ||
#| label: tbl-test | ||
#| tbl-cap: Test | ||
test <- tribble( | ||
~Text, ~Reference, | ||
"Text", "[@marrero2019]" | ||
) | ||
kable(test) | ||
``` | ||
|
||
|
||
|
||
## References {.unnumbered} | ||
|
||
:::{#refs} | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@article{marrero2019, | ||
author = {Marrero, Jos{\' e} and Garc{\' i}a, Alicia and Berrocoso, Manuel and Llinares, {\' A}ngeles and Rodr{\' i}guez-Losada, Antonio and Ortiz, R.}, | ||
journal = {Journal of Applied Volcanology}, | ||
year = {2019}, | ||
month = {7}, | ||
pages = {}, | ||
title = {Strategies for the development of volcanic hazard maps in monogenetic volcanic fields: the example of {La} {Palma} ({Canary} {Islands})}, | ||
volume = {8}, | ||
doi = {10.1186/s13617-019-0085-5}, | ||
} |