【问题标题】:Epslatex stand alone does not add \end{document}单独的 EPSlatex 不添加 \end{document}
【发布时间】:2021-01-26 01:58:49
【问题描述】:

我正在尝试使用 epslatex 创建独立文件,但创建的文件 .tex 无法编译,因为缺少 \end{document} 和 \end{picture},这是为什么呢? 示例代码

    set terminal epslatex standalone
    set output "sample.tex" 
    plot "data.txt" using 1:2  pointtype 1 pointsize 1 

我正在从文本文件中绘制数据,这可能是问题所在吗? 无论如何,只有 .tex 文件无法工作

【问题讨论】:

    标签: plot latex gnuplot eps gnuplot-iostream


    【解决方案1】:

    添加

    unset output
    

    到最后得到一个完整的TeX文件。否则,文件不会完全写入磁盘。

    终端pdfcairo 允许有多个绘图命令,每个命令在pdf 文件中产生一个自己的页面。我首先认为 epslatex 可能会做类似的事情,但事实并非如此

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多