【发布时间】:2021-12-31 20:59:33
【问题描述】:
这里没有任何代码,因为我只想将 \begin{figure} 和 \end{figure} 的标题居中到包含的图像的中心而不是页面的中心,如果我将图像居中到左边,标题仍然出现在页面的中心(不使用 minipage,因为这是我现在知道的唯一方法)。
这是一个例子:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\includegraphics[width=0.5\textwidth]{image.png}
\caption{Caption}
\end{figure}
\end{document}
我从编译中得到什么:
我希望它以图像本身而不是页面为中心,不使用 minipage。
Here is the source image btw, just some image I found on google
【问题讨论】:
-
请制作一个minimal reproducible example 来重现您的偏心图像并显示您使用的类和包
-
搞定了,还有别的吗?
标签: latex text-alignment