Latex 作图 记录 持续更新记录------------------------
1. 文字在左,图像在右
minipage是图像排版的有利工具。
1.1 文字横放
\hspace{.038\textwidth}
\begin{minipage}{.01\textwidth}
\centering
{Bill Gates}
\end{minipage}
\hspace{-.06\textwidth}
\begin{minipage}{.989\textwidth}
\centering
\includegraphics[width=0.19\textwidth]{fig_real/example}
\end{minipage}
效果:
1.2 文字竖放
\hspace{.038\textwidth}
\begin{minipage}{.01\textwidth}
\centering
\rotatebox{90}{Bill Gates}% 这里是将文字逆时针旋转90°
\end{minipage}
\hspace{-.06\textwidth}
\begin{minipage}{.989\textwidth}
\centering
\includegraphics[width=0.19\textwidth]{fig_real/example}
\end{minipage}
上述方法都是通过minipage宏包实现的文字和图像排版,其中\hspace{}用来调整水平间隔,也可以通过\hfill实现。
1.3 文字竖放+多张图像横(竖)排
%-----------------竖放------------------------------
\begin{figure*}
\centering
\hspace{.04\textwidth}
\begin{minipage}{.008\textwidth}
\centering
{\rotatebox{90}{Input}}
\end{minipage}
\hspace{-.06\textwidth}
\begin{minipage}{.989\textwidth}
\centering
\includegraphics[width=0.19\textwidth]{fig_real/gate1}
\includegraphics[width=0.158\textwidth]{fig_real/gate2}
\end{minipage}
%----------------横放-------------------------
\begin{figure*}
\centering
\begin{minipage}{.03\textwidth}
\centering
\rotatebox{90}{Bill Gates}
\end{minipage}
\hspace{-.1\textwidth}
\begin{minipage}{.5\textwidth}
\centering
\includegraphics[width=0.22\textwidth]{fig_real/gate3}
\includegraphics[width=0.27\textwidth]{fig_real/gate5}
\end{minipage}
\end{figure*}
多张图像横放只需要把他们都放在同一个minipage里面就好。第四种方法在论文中插图经常用到。