link-citation suppress-bibliography doesn't compile since pandoc 3.1.7 #7431
-
DescriptionI am using quarto 1.4.451, I am wrtiing my my thesis via quarto and latex, recently something changed so I cannot compile my document with
I need to to set |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Please do that, thank you. |
Beta Was this translation helpful? Give feedback.
-
I isolated the lines causing troubles
replace format with thos code chunk
so
the the default example (with knuth citation) will not compile via
|
Beta Was this translation helpful? Give feedback.
-
I am on 1.4.460 |
Beta Was this translation helpful? Give feedback.
-
I believe this is an issue with Pandoc itself. Take this example ---
title: test
references:
- type: article-journal
id: WatsonCrick1953
author:
- family: Watson
given: J. D.
- family: Crick
given: F. H. C.
issued:
date-parts:
- - 1953
- 4
- 25
title: 'Molecular structure of nucleic acids: a structure for
deoxyribose nucleic acid'
title-short: Molecular structure of nucleic acids
container-title: Nature
volume: 171
issue: 4356
page: 737-738
DOI: 10.1038/171737a0
URL: https://www.nature.com/articles/171737a0
language: en-GB
link-citations: true
suppress-bibliography: true
---
See @WatsonCrick1953 for additional discussion Now render with quarto pandoc -f markdown -t latex -s --citeproc -o test.pdf test.qmd You will get the error; You could also do Remove quarto pandoc -f markdown -t latex -s --citeproc -o test.tex test.qmd The citation information from pandoc are correctly inserted % definitions for citeproc citations
\NewDocumentCommand\citeproctext{}{}
\NewDocumentCommand\citeproc{mm}{%
\begingroup\def\citeproctext{#2}\cite{#1}\endgroup} It comes from template https://github.com/jgm/pandoc/blob/d3d0406515cb6aae6f43e60dfa37014bdd91e79c/data/templates/default.latex#L337-L341 so somehow something deactivate the insertion. or did not change the use of (\citeproc{ref-WatsonCrick1953}{1953}) Running with Quarto 1.3 which has a different pandoc we see that the .tex is changed (\protect\hyperlink{ref-WatsonCrick1953}{1953}) This means this is an issue between this two version of pandoc Doing a bit of bisecting with pandoc version, first one to fail is 3.1.7 (https://github.com/jgm/pandoc/releases/tag/3.1.7) - which you mentioned in your title 🤦 They did some changes about LaTeX writer and citation linking. So possibly related. I'll open an issue upstream. |
Beta Was this translation helpful? Give feedback.
Update:
This has now been fix in dev pandoc: jgm/pandoc@db92f61
It will be available in next Pandoc, so soon in quarto...