LyX 中浮动右对齐

LyX 中浮动右对齐

编辑:我最终使用了概述的方法这里并解决了问题。非常感谢这个问题的回答者!

我正在使用 LyX,并尝试将两张图片并排居中。它们现在都位于浮动位置,每个都在自己的框小页面中。我已使用段落设置将浮动、内部图像以及框居中,但由于某种原因,它们的位置仍然向右移动(见屏幕截图)。有什么想法可以解决这个问题吗?

这是我在代码预览窗格中看到的内容:

\begin{center}
\begin{figure}[H]
\centering{}%
\begin{minipage}[t]{0.45\linewidth}%
\begin{center}
\includegraphics[width=0.42\paperwidth,height=0.45\textheight,keepaspectratio]{../Figures/Consumption}
\par\end{center}
\caption{Consumption}
%
\end{minipage}\hspace*{0.05\paperwidth}%
\begin{minipage}[t]{0.45\linewidth}%
\begin{center}
\includegraphics[width=0.42\paperwidth,height=0.45\textheight,keepaspectratio]{\string"../Figures/Agg Capital\string".jpg}
\par\end{center}
\caption{Aggregate Capital}
%
\end{minipage}
\end{figure}
\par\end{center}

1

相关内容