我正在使用以下终端线编译一些带有gnuplot的eps图:
set terminal postscript enhanced eps color dashed rounded dl 4 "Times-Roman" 24
一个例子:
p 'file1' u 5:6 w p t 't=0.5 ms',\
'file2' u 5:6 w p t ' 1 ms',\
'file3' u 5:6 w p t ' 2 ms'
我在键中添加了额外的空格,以便为键中的标签提供良好的对齐方式。如果我用ghostviewer打开生成的eps,这个对齐工作正常,但如果我在一个乳胶文件中编译它
$ latex
... pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) ...
然后密钥中的文本未对齐。特别是如果我使用特殊排版,如下标或上标:
p 'file1' u 5:6 w p t 't_{something}=0.5 ms'
然后文本将完全受到损害,例如重叠文本或奇怪的对齐,但只有在乳胶编译之后才会出现。
你以前见过这个吗?
非常感谢
编辑:添加一个最小的例子
gnuplot脚本:
set terminal postscript enhanced eps color dashed rounded dl 4 "Times-Roman" 24
set key spacing 1.1 samplen 1.2 top left
set output 'out.eps'
p 3*x w p lc 1 t 't=0.5 ms',\
2*x w p lc 2 t ' 1 ms'
如果我跑的话,一切都很好:
$gv out.eps
我编译以下乳胶文件:
\documentclass[final,5p,times,onecolumn]{elsarticle}
\usepackage{float}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{fixltx2e}
\usepackage{epstopdf}
\journal{Combustion and Flame}
\begin{document}
\begin{figure*}[]
\centering\includegraphics[width=\textwidth]{out}
\caption{caption.}
\end{figure*}
\end{document}
使用以下脚本($ name = latex文件名):
latex $name.tex
latex $name.tex
dvips $name.dvi
ps2pdf $name.ps
使用acroread,evince或xpdf,'t = 0.5 ms'标签与相应的键符号重叠,同时在gv上显示out.eps显示一切正常,关键文本对齐右侧。
进一步编辑:
用书替换elsarticle解决了这个问题!
最后编辑:
使用pdflatex而不是latex编译来解决问题