gpt4 book ai didi

java - 从 Java 应用程序创建带有下标的 Graphviz 标签

转载 作者:行者123 更新时间:2023-11-30 07:15:29 29 4
gpt4 key购买 nike

我正在使用 Graphviz.java 从 Java 应用程序调用 Graphviz API 并将输出图形保存到 PDF 文件。我需要用数学下标和重音标记一些节点(例如 $a_1$$\hat{a}$ 在 latex 中)。我只能靠下标生存。

有办法吗?这是因为我正在使用的 API 还是我在这里遗漏了一些东西。

我试过了b [label=<x<SUB>1</SUB>>];但它不起作用(尽管像 a [ label=<&#945;>]; 这样的符号可以工作并显示在输出文件中)。

最佳答案

根据他们的 documentation ,

NOTE:The font markups for bold, italic, underlining, subscript and superscript (<B>, <I>, <U>, <SUB>; and <SUP>) are only available in versions after 14 October 2011, and are currently only available via the cairo and svg renderers. In addition, the horizontal and vertical rules (<HR> and <VR>) are only available in versions later than 8 July 2011.

您确定您使用的是这些版本中的任何一个吗?

关于java - 从 Java 应用程序创建带有下标的 Graphviz 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17669014/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com