四分之一的方式是什么来写一个替代标题的LOF?

TeX代码如下所示:

\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}

EDIT: STEPS TO REPRODUCE

  1. 新的第四个文件
  2. A图片位于/img/ome_Image.png中

第四个文件的内容

---
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}

结果

LOF

Image with caption

我想要的是什么

一种"四重奏方式",比如:

![A long and descriptive caption to be shown below figure. Source: somebody.][Short caption for LOF.](img/some_image.png)

推荐答案

使用fig-scap选项可以在"数字列表"中获得简短的字幕.从Quarto Docs,

fig-scap=>;简短标题(仅在LaTeX输出中使用).在\caption[]中插入一个简短的字幕,通常显示在PDF文档的"图形列表"中.

---
title: Demo Short Figure Caption
format: pdf
lof: true
---

## Quarto

![A long and descriptive caption.](test-scap.png){#fig-short-cap fig-scap="Short caption for LOF." width=30%}

short caption for figures in quarto

R相关问答推荐

按R中的组查找相邻列的行累积和的最大值

如何使用R Shiny中的条件面板仅隐藏和显示用户输入,同时仍允许运行基础计算?

如何修复R码的置换部分?

警告:lmdif:info = 0. nls. lm()函数的输入参数不正确

在使用ggroove后,将图例合并在gplot中

使用tidy—select创建一个新的带有mutate的摘要变量

如何在ggplot中标记qqplot上的点?

在rpart. plot或fancyRpartPlot中使用带有下标的希腊字母作为标签?

如何对2个列表元素的所有组合进行操作?

合并后返回列表的数据帧列表

在GG图中绘制射线的自动程序

`夹心::vcovCL`不等于`AER::tobit`标准错误

QY数据的处理:如何定义QY因素的水平

从多面条形图中删除可变部分

如何使用前缀作为匹配来连接数据帧?

为什么这个表格格罗布不打印?

如何用不同长度的向量填充列表?

如何为包创建自定义roxygen2标签?

Data.table条件合并

如何将数据框压缩为更宽,同时将行输入保持为行输入,而不是R中的列名?