在图中水平对齐子浮点数

在图中水平对齐子浮点数

我在一行上放了三个图,如果我想清晰地显示它们(足够大),宽度就不够。我以前习惯hspace手动移动图形,但这次不行。(它只影响第一行。)我怎么才能移动整个图形?我想我需要将整个图形向左移动一定距离才能显示这一页。

这是一个可以说明该问题的 MWE:

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}
\newcommand{\IDCTFigureHeight}{2.8}
\begin{figure}[p]
  \vspace{-10pt}
  \subfloat[v1 with buffer size 16]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v1_16.png}}
  \subfloat[v1 with buffer size 100]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v1_100.png}}
  \subfloat[v1 with buffer size 200]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v1_200.png}}
  \vspace{-10pt}
  \\
  \subfloat[v2 with buffer size 16]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v2_16.png}}
  \subfloat[v2 with buffer size 100]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v2_100.png}}
  \subfloat[v2 with buffer size 200]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v2_200.png}}
  \vspace{-10pt}
  \\
  \subfloat[v3 with buffer size 16]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v3_16.png}}
  \subfloat[v3 with buffer size 100]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v3_100.png}}
  \subfloat[v3 with buffer size 200]{\includegraphics[width=0.45\textwidth,height=\IDCTFigureHeight in]{images/local/v3_200.png}}
  \caption{destination-fifo with different buffer size.}
\end{figure}
\end{document}

在此处输入图片描述

答案1

\hspace如果使用空白行或\par代替,您还可以向第二行和第三行添加\\。也就是说,更改:

\vspace{-10pt}
\\

经过

\vspace{-10pt}


\hspace{-2cm}

或者

\vspace{-10pt}\par    
\hspace{-2cm}

相关内容