我有一个问题,当我创建一个EPS图形,我想包括在Latex中。不知何故,我无法在用Matlab创建的图形上放置标题。它会被空格覆盖。我已经创建了一个最小的工作示例。matlab中的图形是根据以下代码创建的:
plot(1:10)
title('A line')
print('test','-depsc2')和相应的latex文件:
\documentclass[a4paper]{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\caption{Caption is overwritten}
\includegraphics[width=\textwidth]{test.eps}
\end{figure}
\end{document}在输出pdf中看不到标题。我是一个dvi-ps-pdf链。
这似乎是边界框值的问题。如果我将go添加到graphicx的草稿模式(\usepackagedraft{graphicx} ),则会出现标题。
谢谢你的帮助。
最好的,Rob
发布于 2015-07-31 00:29:38
在includegraphics中尝试clip选项
\includegraphics[width=\textwidth, clip]{test.eps}您可能还希望在标题和插图之间包含一些垂直空间:
\caption{Caption is overwritten}
\vspace{5mm}
\includegraphics[width=\textwidth, clip]{test.eps}https://stackoverflow.com/questions/31729218
复制相似问题