我该如何修复 Abbildung 的标题以使其不与数字分开?在第一个中,为什么文本不在图 4.4 下方?
谢谢。
\begin{figure}[htbp]
\centering
\begin{minipage}[b]{0.5\textwidth}
\includegraphics[width=0.7\textwidth, height=0.7\textwidth]{Figures/4.5.jpg}
\captionsetup{width=0.6\linewidth}
\caption[MHZ2-20D pneumatischer Parallelgreifer]{\begin{tabular}{c} MHZ2-20D pneumatischer Parallelgreifer \ \cite{amazon} \end{tabular}}
\end{minipage}\hfill
\begin{minipage}[b]{0.5\textwidth}
\centering
\includegraphics[width=0.7\textwidth, height=0.7\textwidth]{Figures/4.6.jpg}
\captionsetup{width=0.7\linewidth}
\caption[3D gedruckte Greiferbacken]{\begin{tabular}{c} 3D bedruckte Greiferbacken \ \cite{N} \end{tabular}}
\end{minipage}
\end{figure}
答案1
我不完全确定您想要实现什么,所以请让我知道您对以下内容的看法。标题位于图像下方的中央,图像与标题的第一行对齐。
\documentclass{article}
\usepackage{graphicx}
\usepackage[format=plain]{subcaption}
\begin{document}
\begin{figure}[htbp]
\centering
\subcaptionbox%
[MHZ2-20D pneumatischer Parallelgreifer]% short caption
{MHZ2-20D pneumatischer Parallelgreifer \cite{amazon}}% long caption
[0.5\linewidth]% width
[c]% position of caption
{\includegraphics[width=\linewidth]{example-image}}% content
\subcaptionbox%
[3D gedruckte Greiferbacken]%
{3D bedruckte Greiferbacken \cite{N}}%
[0.5\linewidth]%
[c]%
{\includegraphics[width=\linewidth]{example-image-duck}}
\end{figure}
\end{document}