-
DescriptionI have a Latex table inside my Quarto document (PDF output), and I am trying to cite something from my bibliography, but just end up with the question marks indicating that Latex can't find my bibliography (I think). Citations elsewhere in my document work fine (I use the Quarto The Latex table is like: \newcommand\ytl[2]{
\parbox[b]{8em}{
\hfill{\color{cyan}\bfseries\sffamily #1}~$\cdots\cdots$~
}
\makebox[0pt][c]{$\bullet$}\vrule\quad
\parbox[c]{10cm}{
\vspace{7pt}
\color{red!40!black!80}
\raggedright\sffamily #2 \\[7pt]
}\\[-3pt]
}
\begin{table}[!h]
\caption{\label{timeline}Table with failing citations.}
\begin{minipage}[t]{1\linewidth}
\color{gray}
\rule{\linewidth}{1pt}
\ytl{1995}{Attempting to cite: \cite{@citation}} % <-- HERE
\rule{\linewidth}{1pt}
\end{minipage}
\end{table} I generate my bibliography using the refs div: ::: {#refs}
::: I am not sure what else to include since citations work fine everywhere else. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I changed to However I am still interested if there are other solutions if you know of any. |
Beta Was this translation helpful? Give feedback.
-
I wonder if Quarto could support a (fake) LaTeX command like \QuartoMarkdown{We will convert this `Markdown` to LaTeX for you, including citations to @cite-foo and references like @fig-bar} It would be hard to make this perfectly robust, but we could search for the text in |
Beta Was this translation helpful? Give feedback.
I changed to
cite-method: natbib
and used\citet{}
and\citep{}
instead.However I am still interested if there are other solutions if you know of any.