What is the Quarto way to write an alternative caption for the LOF?
Tex code would be like:
\begin{figure}[hbtp]
\centering
\includegraphics{img/some_image.png}
\caption[Short caption for LOF.]{A long and descriptive caption to be shown below figure. Source: somebody}
\label{fig:figure-1}
\end{figure}
---
title: "Untitled"
format: pdf
lof: true
---
\begin{figure}[hbtp]
\centering
\includegraphics{img/some_image.png}
\caption[Short caption for LOF.]{A long and descriptive caption to be shown below figure. Source: somebody}
\label{fig:figure-1}
\end{figure}
A "Quarto way", like:
![A long and descriptive caption to be shown below figure. Source: somebody.][Short caption for LOF.](img/some_image.png)
Use fig-scap
option to get a short caption in the "List of Figures". From the Quarto docs,
fig-scap
=> A short caption (only used in LaTeX output). A short caption is inserted in\caption[]
, and usually displayed in the “List of Figures” of a PDF document.
---
title: Demo Short Figure Caption
format: pdf
lof: true
---
## Quarto
{#fig-short-cap fig-scap="Short caption for LOF." width=30%}