latex遇到的问题

1.eps图片经过GSView中PS to EPS裁剪之后插入文章中仍发现白边没裁掉。

解决:eps转PDF再裁剪PDF最后转回eps。eps转PDF在GSView中选“转换”,PDF裁剪有两种,一是在线裁剪。我用的是https://www.pdfzorro.com/。二是采用briss裁剪。

最后是pdf转换eps,这个网上有很多地方都可以转换的。

2.latex连续插入图片在另一行产生大片空白。

这个在ieee模板下,注释掉\usepackage{stfloats}。

3.latex图片并排排成一张大图,采用minipage方式。

\begin{figure*}
    \begin{minipage}{0.5\textwidth}
      \centerline{\includegraphics[height=0.485\textwidth]{fig/1.eps}}
      \centerline{(a)}
    \end{minipage}%
    \hfill
    \begin{minipage}{0.5\textwidth}
      \centerline{\includegraphics[height=0.5\textwidth]{fig/2.eps}}
      \centerline{(d)}
    \end{minipage}
    \vfill
    \begin{minipage}{0.5\textwidth}
      \centerline{\includegraphics[height=0.485\textwidth]{fig/3.eps}}
      \centerline{(b)}
    \end{minipage}
    \hfill
    \begin{minipage}{0.5\textwidth}
      \centerline{\includegraphics[height=0.5\textwidth]{fig/4.eps}}
      \centerline{(e)}
    \end{minipage}%
    \vfill
    \begin{minipage}{0.5\textwidth}
      \centerline{\includegraphics[height=0.485\textwidth]{fig/5.eps}}
      \centerline{(c)}
    \end{minipage}
    \hfill
    \begin{minipage}{0.5\textwidth}
      \centerline{\includegraphics[height=0.5\textwidth]{fig/6.eps}}
      \centerline{(f)}
    \end{minipage}
    \caption{test}
    \label{fig:AAA}
\end{figure*}

注意中间不能打空行,另外\vfill表示竖直,\hfill表示水平。

4.matlab导出图片无白边

(1)用print命令。但是我matlab2017a使用之后仍然有白边

(2)用exportfig包。这个参考ilovematlab的链接。但是我使用之后发现出来的图确实没有白边,但是图上有细白线,不知道是哪里出了问题。

(3)将一张图布满图框。这样虽然可以,但是对于我有colorbar的图不行,因为它只布满了图,colorbar没有一起变化。

(4)eps-pdf-eps。最没办法的方式了。。



你可能感兴趣的:(latex)