我遇到了 EPS 数据损坏的问题。 这可能是 2 年前提出的问题中的同一类问题,当时没有找到答案:
确实,就像上一个主题中提到的一样,我将 eps 图形发送给编辑,他告诉我它们已损坏。我完全不知道原因,我可以毫无问题地打开我的 eps 图形。那么,问题出在哪里?
我使用一个名为的 Latex 文件制作我的图形图.tex,使用 gnuplottex :
\documentclass{article}
\usepackage{gnuplottex}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\pagestyle{empty}
\begin{document}
\begin{figure}\label{fig_U1}
\begin{gnuplot}[scale=1.0]
set terminal epslatex color
set output "fig_U1.tex"
set style data linespoints
set key top center
set style line 1 lt 1 lc rgb "red" lw 2
set style line 2 dt 3 lc rgb "red" lw 4
set style line 3 lt 1 lc rgb "green" lw 2
set style line 4 dt 3 lc rgb "green" lw 4
set style line 5 lt 1 lc rgb "dark-yellow" lw 2
set style line 6 dt 3 lc rgb "dark-yellow" lw 4
set style line 7 lt 1 lc rgb "dark-violet" lw 2
set style line 8 dt 3 lc rgb "dark-violet" lw 4
set style line 9 lt 1 lc rgb "blue" lw 2
set style line 10 dt 3 lc rgb "blue" lw 4
set style line 11 lt 1 lc rgb "dark-orange" lw 2
set style line 12 dt 3 lc rgb "dark-orange" lw 4
set style line 13 lt 1 lc rgb "black" lw 2
set style line 14 dt 3 lc rgb "black" lw 4
set style line 15 lt 1 lc rgb "purple" lw 2
set style line 16 dt 3 lc rgb "purple" lw 4
set style line 17 lt 1 lc rgb "#483D8B" lw 2
set style line 18 dt 3 lc rgb "#483D8B" lw 4
unset arrow
set ylabel "impurity correlation energy / $U$" font "Helvetica,22"
set title "$U$ = 1" font "Helvetica,25"
plot 3*x*x with lines ls 7 title "exact 1";
\end{gnuplot}
\end{figure}
\begin{figure}\label{fig_U10}
\begin{gnuplot}[scale=1.0]
set terminal epslatex color
set output "fig_U10.tex"
set style data linespoints
set key top center
set style line 1 lt 1 lc rgb "red" lw 2
set style line 2 dt 3 lc rgb "red" lw 4
set style line 3 lt 1 lc rgb "green" lw 2
set style line 4 dt 3 lc rgb "green" lw 4
set style line 5 lt 1 lc rgb "dark-yellow" lw 2
set style line 6 dt 3 lc rgb "dark-yellow" lw 4
set style line 7 lt 1 lc rgb "dark-violet" lw 2
set style line 8 dt 3 lc rgb "dark-violet" lw 4
set style line 9 lt 1 lc rgb "blue" lw 2
set style line 10 dt 3 lc rgb "blue" lw 4
set style line 11 lt 1 lc rgb "dark-orange" lw 2
set style line 12 dt 3 lc rgb "dark-orange" lw 4
set style line 13 lt 1 lc rgb "black" lw 2
set style line 14 dt 3 lc rgb "black" lw 4
set style line 15 lt 1 lc rgb "purple" lw 2
set style line 16 dt 3 lc rgb "purple" lw 4
set style line 17 lt 1 lc rgb "#483D8B" lw 2
set style line 18 dt 3 lc rgb "#483D8B" lw 4
unset arrow
set ylabel "impurity correlation energy / $U$" font "Helvetica,22"
set title "$U$ = 10" font "Helvetica,25"
plot x with lines ls 9 title "exact 2";
\end{gnuplot}
\end{figure}
\begin{figure}\label{fig_U100}
\begin{gnuplot}[scale=1.0]
set terminal epslatex color
set output "fig_U100.tex"
set style data linespoints
set key top center
set style line 1 lt 1 lc rgb "red" lw 2
set style line 2 dt 3 lc rgb "red" lw 4
set style line 3 lt 1 lc rgb "green" lw 2
set style line 4 dt 3 lc rgb "green" lw 4
set style line 5 lt 1 lc rgb "dark-yellow" lw 2
set style line 6 dt 3 lc rgb "dark-yellow" lw 4
set style line 7 lt 1 lc rgb "dark-violet" lw 2
set style line 8 dt 3 lc rgb "dark-violet" lw 4
set style line 9 lt 1 lc rgb "blue" lw 2
set style line 10 dt 3 lc rgb "blue" lw 4
set style line 11 lt 1 lc rgb "dark-orange" lw 2
set style line 12 dt 3 lc rgb "dark-orange" lw 4
set style line 13 lt 1 lc rgb "black" lw 2
set style line 14 dt 3 lc rgb "black" lw 4
set style line 15 lt 1 lc rgb "purple" lw 2
set style line 16 dt 3 lc rgb "purple" lw 4
set style line 17 lt 1 lc rgb "#483D8B" lw 2
set style line 18 dt 3 lc rgb "#483D8B" lw 4
unset arrow
set xlabel '$N$' font "Helvetica,28"
set ylabel "impurity correlation energy / $U$" font "Helvetica,22"
set title "$U$ = 100" font "Helvetica,25"
plot 2*x with lines ls 11 title "exact 3";
\end{gnuplot}
\end{figure}
\end{document}
该文件包含在名为fig-tex.sh:
latex fig.tex
latex fig.tex
gnuplot fig-gnuplottex-fig1.gnuplot
gnuplot fig-gnuplottex-fig2.gnuplot
gnuplot fig-gnuplottex-fig3.gnuplot
echo "\documentclass{article}
\usepackage{graphicx}
\begin{document}
\pagenumbering{gobble}
\clearpage
\thispagestyle{empty}
\begin{figure}
\begin{center}
\scalebox{0.7}{\input{fig_U1.tex}}
\scalebox{0.7}{\input{fig_U10.tex}}
\scalebox{0.7}{\input{fig_U100.tex}}
\end{center}
\end{figure}
\end{document}" > final-fig.tex
pdflatex final-fig.tex
这样它就创建了我的 final-fig.pdf 图形。然后,我使用:
$> pdf2ps final-fig.pdf
$> ps2eps final-fig.ps
生成我的 final-fig.eps
有谁发现了什么错误,或者发现了一些改进之处,能够解释为什么编辑们说这些数字是错误的吗?