图形标题与图形重叠(floatrow)

图形标题与图形重叠(floatrow)

我尝试将图形的标题与图形本身重叠,如图所示: 期望结果的模型

图片只是我想要实现的模型。我使用以下代码插入图像和标题,然后我得到了浮行套餐包括:

{\floatsetup{capposition=beside,capbesideposition={bottom,right}}
\begin{figure}[h]
    \includegraphics[width=0.4\textwidth]{experimental/ec-cell-schematic}
    \caption{Schematic of the single compartiment cell used for the electrochemical measurements.\\a) Reference electrode\\b) Counter electrode\\c) RDE Shaft / holder\\d) GC-RDE tip (black square)\\e) Gas overflow inlet\\f) Gas tube with frit for saturation}
    \label{fig:ec-cell-schematic}
\end{figure}}

这有可能实现吗?我正在考虑也许是负边距或类似的东西,但我不知道从哪里开始……


按照要求:

完整工作代码:

\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{floatrow}


\begin{document}

{\floatsetup{capposition=beside,capbesideposition={bottom,right}}
\begin{figure}[H]
    \includegraphics[width=0.4\textwidth]{ec-cell-schematic}
    \caption{Schematic of the single compartiment cell used for the electrochemical measurements.\\a) Reference electrode\\b) Counter electrode\\c) RDE Shaft / holder\\d) GC-RDE tip (black square)\\e) Gas overflow inlet\\f) Gas tube with frit for saturation}
\end{figure}}

{\floatsetup{capposition=beside,capbesideposition={bottom,right}}
\begin{figure}[H]
    \includegraphics[width=0.4\textwidth]{ec-cell-schematic-additionalcontent}
    \caption{Schematic of the single compartiment cell used for the electrochemical measurements.\\a) Reference electrode\\b) Counter electrode\\c) RDE Shaft / holder\\d) GC-RDE tip (black square)\\e) Gas overflow inlet\\f) Gas tube with frit for saturation}
\end{figure}}

\end{document}

和两幅图像,其中一幅较宽,并且有一个文本框,用于放置附加内容(最终的图形尚未完成,取决于此结果)

i.stack.imgur.com/mFvjj.png

i.stack.imgur.com/GGVaV.png

(以纯文本形式发布链接,因为我的声誉不足以发布两个以上的链接......在我看来这似乎有点太严格了,但是嘿......)

答案1

解决方案很简单:规模 您的图形,而不是调整它们的宽度。由于图形的宽度不同,将它们调整为相同宽度会导致不同的缩放比例。因此,对两个图形使用相同的缩放比例(似乎是 ~ 0.25),然后欺骗 LaTeX 将它们放在宽度为 0.4\textwidth 的框中:

\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{floatrow}

\begin{document}

{\floatsetup{capposition=beside,capbesideposition={bottom,right}}
\begin{figure}[H]
    \makebox[0.4\textwidth][l]{\includegraphics[scale=0.25]{ec-cell-schematic}}
    \caption{Schematic of the single compartiment cell used for the electrochemical measurements.\\a) Reference electrode\\b) Counter electrode\\c) RDE Shaft / holder\\d) GC-RDE tip (black square)\\e) Gas overflow inlet\\f) Gas tube with frit for saturation}
\end{figure}}

{\floatsetup{capposition=beside,capbesideposition={bottom,right}}
\begin{figure}[H]
    \makebox[0.4\textwidth][l]{\includegraphics[scale = 0.25]{ec-cell-schematic-additionalcontent}}
    \caption{Schematic of the single compartiment cell used for the electrochemical measurements.\\a) Reference electrode\\b) Counter electrode\\c) RDE Shaft / holder\\d) GC-RDE tip (black square)\\e) Gas overflow inlet\\f) Gas tube with frit for saturation}
\end{figure}}

\end{document} 

在此处输入图片描述

相关内容