【问题标题】:How to generate subsrcipt in formula with text format in gnuplot, with esplatex terminal?如何使用esplatex终端在gnuplot中以文本格式生成公式中的subsrcipt?
【发布时间】:2022-12-18 18:02:35
【问题描述】:

我尝试使用以下代码:

set term epslatex size 1.3, 1.3 standalone color colortext 9
set output "./test.tex"
set size square 1.3, 1.3

set xtics 1
set style line 1 lt 2 lc rgb "#470024" lw 3

#plot
set yrange [0: 1]
set xrange [0: 5]
set ytics 0.2
set border 1+2+4+8
set ylabel '$y_{\rm wait}$' offset 0.8,0,0
set xlabel '$t$' offset 0,0.5,0
plot exp(-(x)**0.3)  w l ls 1 lw 3 notitle

set output

当前输出。

预期的标签: 下标是普通文本,而不是斜体形式。

【问题讨论】:

  • 你必须使用 epslatex 终端吗?由于我在 eps 文件和 LaTeX 安装方面存在其他问题,我尝试使用 cairolatex 终端创建 PDF,但我没有看到这种行为,_wait 不是斜体。
  • @theozh 是的,我必须使用 epslatex。只有我将 epslatex 设置为终端,所有其他公式才能工作。

标签: latex gnuplot


【解决方案1】:

这不是 gnuplot 的问题,而是将已弃用的 m 与现代 LaTeX 一起使用时的问题。请改用 extup extrm。更完整的讨论见https://tex.stackexchange.com/questions/151897/always-textrm-never-rm-a-counterexample

gnuplot 命令:

set ylabel '$y_{	extup {wait}}$' offset 0.8,0,0

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-16
    • 1970-01-01
    相关资源
    最近更新 更多