如何在(單一或多個)圖形之間新增水平線?

如何在(單一或多個)圖形之間新增水平線?

我不明白如何在圖形上方和下方插入這些線,以及如何調整圖形的大小?

這一頁

答案1

假設您的圖像在圖形中可用,則可以使用width=以下選項調整圖像大小\includegraphics

或者,如果您必須將表格新增至左側,則可以使用\scalerel*強制影像高度與表格的大小相符:

\documentclass{article}
\usepackage{graphicx,caption,scalerel}
\begin{document}
\begin{figure}[p]
\hrulefill\vspace{15pt}\par
\setbox0=\hbox{%
\begin{tabular}{|l|}
\hline
Go\\\hline
Clear\\\hline
3dProject\\\hline
X-Rotate\\\hline
Y-Rotate\\\hline
Z-Rotate\\\hline
EraseRota\\\hline
Body-Tog\\\hline
RotAx-Tog\\\hline
Flash-Tog\\\hline
Persp-Tog\\\hline
NUMERICS\\\hline
UTILITIES\\\hline
Quit\\\hline
\end{tabular}}
\centerline{\copy0\scalerel*{\includegraphics{example-image-a}}{\copy0}}
\captionof{figure}{Here is my caption}
\medskip
\hrulefill\par
\vspace{15pt}
\centerline{\includegraphics[width=.7\textwidth]{example-image-b}}
\captionof{figure}{Here is my other caption}
\medskip
\hrulefill
\end{figure}
\end{document}

在此輸入影像描述

相關內容