如何自定义图像标题的位置,以便使用绝对坐标或与图像边框相关?(图像的一部分不提供任何重要信息即是图像的空白部分)。
期望输出:
梅威瑟:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics[width=\textwidth]{drawing.pdf}
\caption{This is a very long caption describing features of the image or anything else, what it is important is that a sort of long caption and I don't like its position.}
\label{fig:drawing}
\end{figure}
\end{document}
MWE 输出:
答案1
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics[width=\textwidth]{drawing}\\[-9ex]
\begin{minipage}{0.7\textwidth}
\caption{This is a very long caption describing features of the
image or anything else, what it is important is that a sort of
long caption and I don't like its position.}
\label{fig:drawing}
\end{minipage}
\end{figure}
\end{document}