【发布时间】:2021-10-04 10:59:44
【问题描述】:
我在 gnuplot 中遇到 cairolatex 终端问题。
我将终端设置如下:
et terminal cairolatex eps rounded size 5,3 font ',17' standalone background "#9e9e9e"
背景在情节之外设置正确,但在情节区域内保持白色。我也尝试过“透明”来解决同样的问题。基本上,latex中包含的自动生成的文件filename-inc是不正确的。
在附图中,您可以看到投影仪幻灯片的灰色背景,其中包含使用 gnuplot 通过 cairolatex 生成的 pdf。
这让我发疯。
编辑: 这是最少的代码。
#!/usr/local/bin/gnuplot
set terminal cairolatex eps rounded size 5,3 font ',17' standalone background "#9e9e9e"
set output "graph.tex"
set xlabel "x $x$ [$\\mu$s]"
set ylabel 'Spot size $\sigma$ [\AA]'
set yrange [-1.1:1.1]
#plot
plot sin(x) notit lw 5, \
cos(x) notit lw 50 lc rgb "#77ff0000", \
.5*sin(.9*x) notit lw 30 lc rgb "#200000ff"
unset output
只需在配置文件上运行 gnuplot,然后是 pdflatex graph.tex
我正在通过 MacPorts 在 Mac 上使用 gnuplot 5.4 补丁 2。
谢谢。
拉多万
【问题讨论】:
-
您能发minimal reproducible example 以便我们重现该问题吗?
-
添加了示例。标签只是为了测试乳胶排版。请注意,使用“透明”时存在相同的问题。看来,
set terminal epslatex rounded size 5,3 font ',17' standalone nobackground有效,但它不尊重线条透明度。当使用input而不是standalone时,同样的问题会出现。 -- 拉多万