gnuplot-pdf终端-设置unicode字符(太阳能质量符号/odot) [英] gnuplot - pdf terminal - setting unicode character (solar mass symbol/odot)

查看:141
本文介绍了gnuplot-pdf终端-设置unicode字符(太阳能质量符号/odot)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在gnuplot(4.6.0)pdf终端中设置LaTeX \odot符号.确切的语法是什么?

I'm trying to set the LaTeX \odot symbol in the gnuplot (4.6.0) pdf terminal. What is the exact syntax for this?

gnuplot FAQ 提供了一些线索,但是我应该键入{/Symbol \2299}还是{/utf8 \2299} ,或\/#等的其他变体?还是我应该做set encoding utf8?直接将符号粘贴似乎无效.

The gnuplot FAQ gives some clues, but should I type {/Symbol \2299}, or {/utf8 \2299}, or some other variation on \, /, # etc.? Or should I do set encoding utf8? Pasting the symbol in directly does not seem to work.

我应该在终端上使用pdf还是pdfcairo?后者以无法忍受的方式影响了我的情节.

Should I use pdf or pdfcairo for the terminal? The latter affects my plots in intolerable ways.

推荐答案

这很简单.首先,您需要选择一个支持Unicode的终端;那么您确实可以直接将Unicode字符粘贴到其中.如您所知,旧的pdf终端不支持Unicode,但较新的pdfcairo则支持.您说它弄乱了您的图表,但是如何?我发现它产生的结果相同,但是质量更好(流畅的线条,抗锯齿和Unicode!).

It is pretty simple. First you need to select a terminal that supports Unicode; then you can indeed paste your Unicode characters in directly. The old pdf terminal does not support Unicode, as you've found out, but the more recent pdfcairo does. You say it messes up your graphs, but how? I've found that it produces the same result, but with better quality (smoother lines, antialiasing, and Unicode!).

每个人都安装了不同的终端集.其他可能在您的系统上支持Unicode的终端是pngcairo和svg.后者是矢量格式,例如pdf.如果您需要pdf作为最终文件,而pdfcairo不适用于您,请使用其他可以处理Unicode并转换文件的文件.如果您想要出色的标签和数学装饰,LaTeX解决方案最终是最好的,但是要控制输出,您需要精通LaTeX.

Everyone has a different set of terminals installed. Other terminals that might support Unicode on your system are pngcairo and svg. The latter is a vector format, like pdf. If you need pdf as a final file and pdfcairo is not working for you, use something else that can handle Unicode and convert the file. The LaTeX solution is ultimately the best if you want excellent labels and mathematical adornments, but to control the output you will need to get good at LaTeX.

这篇关于gnuplot-pdf终端-设置unicode字符(太阳能质量符号/odot)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆