当图形被旋转时,可能会出现不对齐的情况。例如:
\begin{center}
\includegraphics[totalheight=1in]{rosette.eps}
\includegraphics[totalheight=1in,angle=-45]{rosette.eps}
\includegraphics[totalheight=1in,angle=-90]{rosette.eps}
\end{center}
得到
这次仍可用图形的 BoundingBox 来说明问题。
在这种情况下,我们可以看到图形对象的参考点(左下角)是处于一条 水平线上的。如果希望是中间对齐,那么可以用 \includegraphics 的
origin 选项。
\begin{center}
\includegraphics[totalheight=1in]{rosette.eps}
\includegraphics[totalheight=1in,origin=c,angle=-45]{rosette.eps}
\includegraphics[totalheight=1in,origin=c,angle=-90]{rosette.eps}
\end{center}
这次所有图形都是中间对齐的。
同样地,下面的命令
\begin{center}
\includegraphics[width=1in]{graphic.eps}
\hspace{1in}
\includegraphics[width=1in,angle=-90]{graphic.eps}
\end{center}
将右边的图形绕它的左下角旋转,得到如下结果:
要想使图形的底部对齐,使用下面的命令:
\begin{center}
\includegraphics[width=1in]{graphic.eps}
\hspace{1in}
\includegraphics[width=1in,origin=br,angle=-90]{graphic.eps}
\end{center}
上述命令让右边的图形绕它的右下角旋转,得到如下结果:
|