图的标题和副标题

问题描述 投票:0回答:1

我目前正在为一家格式非常严格的机构撰写学术研究论文。他们的规则之一是图形的标题应位于顶部,并且引文必须作为子标题包含在图形下方。

这可以在 Latex 中使用 subcaption 包来实现,如下所示:

\begin{figure}[H]
    \centering
    \caption{Hybrid device for PET/MR diagnostics with a magnetic field strength of 3 Tesla.}
    \begin{tcolorbox}[
        beamer,
        width=0.5\textwidth,
        arc=0pt,
        boxsep=0pt,
        left=0pt,right=0pt,top=0pt,bottom=0pt,
     ]
        \includegraphics[width=\linewidth]{mri.jpeg}
    \end{tcolorbox}
    \subcaption*{\cite{wikimedia:mri}}
    \label{fig:mri}
\end{figure}

但是,我似乎找不到如何在 Typst 中执行此操作。是否可以?这对我来说非常重要,因为它可以对我使用 Latex 或 Typst 产生影响。

提前致谢,如果这是一个非常简单的问题,我们深表歉意。

figure caption typst
1个回答
0
投票

根据 typst 文档

您可以使用以下块添加所需的标题和引文,如下所示

@glacier shows a glacier. Glaciers
are complex systems.

#figure(
  image("glacier.jpg", width: 80%),
  caption: [A curious figure.],
) <glacier>

这就是结果

© www.soinside.com 2019 - 2024. All rights reserved.