开发者

String quotation marks when exporting a Mathematica Grid as vector graphics

开发者 https://www.devze.com 2023-01-04 02:27 出处:网络
Running the following agrid = Grid[{{Style[\"hello\", Bold]}}] ImportString[ExportString[agrid, \"PNG\"], \"PNG\"]

Running the following

agrid = Grid[{{Style["hello", Bold]}}]
ImportString[ExportString[agrid, "PNG"], "PNG"]
ImportString[ExportString[agrid, "EPS"], "EPS"]

spits out

hello

hello

"he开发者_如何学Pythonllo"

That is, the EPS exporter included the quotation marks in the output. Same for PDF. Without the Grid, all exporters leave out the quotation marks. What magic do I need to get rid of the quotation marks in the PDF?


Add ShowStringCharacters->False to your Style.

0

精彩评论

暂无评论...
验证码 换一张
取 消