Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String quotation marks when exporting a Mathematica Grid as vector graphics

Running the following

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

spits out

hello
hello
"hello"

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?

like image 538
Janus Avatar asked Feb 28 '26 10:02

Janus


1 Answers

Add ShowStringCharacters->False to your Style.

like image 92
ragfield Avatar answered Mar 02 '26 13:03

ragfield



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!