且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Gnuplot 中引入带有特殊符号的框

更新时间:2023-12-01 13:28:58

set term cairolatex eps standalone size 3in,3in
set output 'Q.tex'
set key box opaque samplen 0.5
plot for [i=1:4] sinc(x)**i title sprintf('\tiny${\hat{Q}=%d}$',i) lw 2

standalone 关键字将输出包装在最少的 LaTeX 命令中,以便您可以直接运行 latex Q.如果您想生成 LaTeX 片段以包含在更大的文档中,请忽略此操作.

The standalone keyword wraps the output in minimal LaTeX commands so that you can run latex Q directly. Omit this if you want to produce a LaTeX fragment for including in a larger document.

我展示了如何构建一个包含 LaTeX 字体大小的格式化标题.请注意,格式使用单引号而不是双引号.

I show how to construct a formatted title that includes a LaTeX font size. Note that the format uses single quotes rather than double quotes.

此示例使用 cairolatex eps,因为您特别询问了 eps 文件.Normallay 我会使用 cairolatex pngcairolatex pdf 然后用 pdflatex 而不是普通的 latex 进行处理.

This example uses cairolatex eps because you specifically asked about an eps file. Normallay I would use cairolatex png or cairolatex pdf and process afterwards with pdflatex rather than plain latex.