【发布时间】:2014-01-03 09:06:43
【问题描述】:
如果满月的 Unicode 代码点是 U+1F315,我该如何在绘图中使用它?
以@andyras 为例:
set terminal epslatex standalone color
set output 'plot.tex'
set xlabel '$\odot$ is a \LaTeX symbol.'
plot sin(x)
(这里是gnuplot - pdf terminal - setting unicode character (solar mass symbol/odot))
如何插入该 Unicode 字符?首选输出是 PDF,我安装了 pdfcairo。
更新:@darthbith @Christoph
原来 Symbola 字体包含基本月相的所有 unicode 字形。 在这些标签中,最后两个有效。作为符号插入到 BBedit 命令文件中,符号正确显示; BBedit文件保存为UTF8; UTF8 在终端中设置。 SVG 终端输出正确显示所有字符; Aqua abd PDF 终端仅正确显示第一季度和最后一个季度:
"" u (myDateSP(1,2)):3:((strcol(4) eq "New") ? ("????"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Full") ? ("????"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "First") ? ("☽"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Last") ? ("☾"):1/0) w labels left font "Symbola,28" offset -4,0,\
这些终端设置似乎都没有帮助:
设置终端 pdfcairo 增强大小 13.5,9.8 设置术语 pdfcairo 增强字体 "Symbola" 大小 13.5,9.8
【问题讨论】:
-
你知道如何使用LaTeX吗?如果是这样,this 表示符号是
\fullmoon而不是\odot。 -
如果您使用
pdfcairo终端,请使用 unicode 字符串,例如 Lee Phillips' answer 到您链接的问题中。然后你还需要一个支持满月符号的字体(对我来说,默认字体没有那个字形)。 -
@darthbith @Christoph 已在 comp.graphics.apps.gnuplot 组中解决,在此线程中:groups.google.com/forum/#!topic/comp.graphics.apps.gnuplot/…> 解释太长,无法放在这里。
-
@Dan 你可以answer your own question (我相信已经有足够的时间允许这样做了。)这将帮助任何在谷歌中找到这个答案的人。