<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 197: tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/</link><description>Recent changes to 197: tikz not working on Mac</description><atom:link href="https://sourceforge.net/p/texmaths/bugs/197/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 02 Dec 2024 19:02:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/texmaths/bugs/197/feed.rss" rel="self" type="application/rss+xml"/><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#0e81/5d86/535a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, that would be great if you could send a bug report to them. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ethan Brown</dc:creator><pubDate>Mon, 02 Dec 2024 19:02:20 -0000</pubDate><guid>https://sourceforge.net3e5a82f14a51e98bd98fb78e228a281c817def0d</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#0e81/5d86</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, nice to see it works now.&lt;br/&gt;
However, we don't know what the problem really is in macTeX. Maybe I should send a bug report to the macTeX team...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Baudin</dc:creator><pubDate>Wed, 27 Nov 2024 17:33:44 -0000</pubDate><guid>https://sourceforge.net28c359543627649e1d1aeec1cfcf8d9737b13895</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#0e81</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Oh this is amazing, it works now! It took some doing to get all the dependencies right, particularly for the SDK in Xcode, but with the macports installation of latex it now renders everything correctly.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ethan Brown</dc:creator><pubDate>Tue, 26 Nov 2024 20:52:26 -0000</pubDate><guid>https://sourceforge.net6e612e633e54d5e5bd29ceffaf72f07184a838db</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#aa8d</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;OK, normally dvisvgm should find the GhostScript shared library but for some reason, that's not the case. Even using the direct method by calling dvisvgm with the LIBGS environment variable or with the --libgs option doesn't work. There may be a compatibility issue between macTeX 2024 and your system (it works in a Monterey VM), or a bug somewhere.&lt;/p&gt;
&lt;p&gt;Note that typing in a terminal:&lt;br/&gt;
dvisvgm -V1&lt;br/&gt;
should show GhostScript among the results displayed. If not, then your tikz commands are not rendered when converting the DVI file to SVG.&lt;/p&gt;
&lt;p&gt;By the way, I tried to set up a VM with macOS Sonoma but for some reason I couldn't succeed. So I ended with a macOS Ventura VM. I installed macTeX 2024 (using the custom option from the install dialog that allows to add the GhostScript shared library) and alas I got the same situation as you: dvisvgm didn't work with tikz in that case.&lt;/p&gt;
&lt;p&gt;Then I completely removed macTeX from this Ventura system (by deleting the following directories: /Library/TeX, /Applications/TeX,  /usr/local/lib and /usr/local/texlive).&lt;/p&gt;
&lt;p&gt;After that cleanup, I installed macports and texlive. This also installed dvisvgm and the GhostScript shared library and all the required LaTeX programs.&lt;/p&gt;
&lt;p&gt;Note that latex, xelatex, dvipng, lualatex, dvisvgm binaries are now installed in /opt/local/bin. So I changed the locations of these programs in TexMaths Config and tried to render your example and... bingo it worked!&lt;/p&gt;
&lt;p&gt;So there is a chance that installing texlive from macports could also work in your Sonoma system.&lt;/p&gt;
&lt;p&gt;Could you give it a try?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Baudin</dc:creator><pubDate>Mon, 25 Nov 2024 21:45:44 -0000</pubDate><guid>https://sourceforge.net9a289ff8eb763abeecfd168cb58fa5f5368c2591</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#1200</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I followed the solution instructions listed above, and it is still not working. Now I get an error when I try to compile the equation:&lt;/p&gt;
&lt;p&gt;Script error: the dvi file was not converted to svg! &lt;/p&gt;
&lt;p&gt;Please check your system configuration...&lt;/p&gt;
&lt;p&gt;I first tried installing GhostscriptExtras, which didn't work. I also set the path directly, which also didn't work. I see in the texmaths confituration that it points to a different location for dvisvgm, namely /usr/local/texlive/2024/bin/universal-darwin/dvisvgm. I followed the sam procedure in the link you shared to edit the dvisvgm file here, but that not only didn't work, but it also made texmaths top compiling at all (it gives the error I listed above).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ethan Brown</dc:creator><pubDate>Mon, 25 Nov 2024 05:12:14 -0000</pubDate><guid>https://sourceforge.net3065be902ccb204c9e787727cd0492e521035dfc</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#4d4c/5627</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Your problem seems to be a known issue: dvisvgm which is used to convert DVI images to SVG needs a ghostscript shared library in macOS, otherwise it deosn't work.&lt;/p&gt;
&lt;p&gt;A possible solution is given ate the end of this post: &lt;a href="https://tex.stackexchange.com/questions/559640/making-dvisvgm-and-ghostscript-from-mactex-talk-to-each-other" rel="nofollow"&gt;https://tex.stackexchange.com/questions/559640/making-dvisvgm-and-ghostscript-from-mactex-talk-to-each-other&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you try it on your system?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Baudin</dc:creator><pubDate>Sun, 24 Nov 2024 12:50:32 -0000</pubDate><guid>https://sourceforge.netf78bc0e6122e1d07f2fa2e4367f6ee2bb0ba01a5</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#4d4c/0686</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Maybe the gs binary is not in the path. What is the content of your tmpfile.dat now?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Baudin</dc:creator><pubDate>Fri, 22 Nov 2024 16:56:07 -0000</pubDate><guid>https://sourceforge.net8c2ca03105219a9bdc509754031108bbc2bc1170</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#4d4c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is strange because GhostScript was indeed installed on my mac. I reinstalled it with brew, then downloaded the package and installed it directly. Neither affected the output.&lt;/p&gt;
&lt;p&gt;I did comment out the \documentclass line as well, also no change.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ethan Brown</dc:creator><pubDate>Thu, 21 Nov 2024 19:41:57 -0000</pubDate><guid>https://sourceforge.net0e961394d73166c3cabebe6a6048ede32faa3722</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#06f8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Another point: in your preamble, there is a line at the beginning:&lt;/p&gt;
&lt;p&gt;\documentclass&lt;span&gt;[extrafontsizes, 60pt]&lt;/span&gt;{memoir} %makes fonts larger, so it is easier to see the glyphs&lt;/p&gt;
&lt;p&gt;The latex compiler complains about it. This is because TexMaths already adds an \documentclass&lt;span&gt;[10pt,dvips]&lt;/span&gt;{article} at the beginning of the LaTeX file.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Baudin</dc:creator><pubDate>Thu, 21 Nov 2024 19:27:20 -0000</pubDate><guid>https://sourceforge.net2e7f094280a277bcf73c346875b8d2c82790ce67</guid></item><item><title>#197 tikz not working on Mac</title><link>https://sourceforge.net/p/texmaths/bugs/197/?limit=25#c607/15d1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;OK thanks.&lt;/p&gt;
&lt;p&gt;I found the following issue in your tmpfile.dat:&lt;/p&gt;
&lt;p&gt;pre-processing DVI file (format version 2)&lt;br/&gt;
processing of PostScript specials is disabled (Ghostscript not found)&lt;br/&gt;
processing page 1&lt;br/&gt;
  WARNING: 152 PostScript specials ignored. The resulting SVG might look wrong.&lt;br/&gt;
  graphic size: 61.674644pt x 8.231855pt (21.676158mm x 2.893166mm)&lt;br/&gt;
  output written to tmpfile.svg&lt;br/&gt;
1 of 1 page converted in 0.341416 seconds&lt;/p&gt;
&lt;p&gt;Mine is:&lt;/p&gt;
&lt;p&gt;pre-processing DVI file (format version 2)&lt;br/&gt;
processing page 1&lt;br/&gt;
  graphic size: 72.014299pt x 8.231816pt (25.310131mm x 2.893152mm)&lt;br/&gt;
  output written to tmpfile.svg&lt;br/&gt;
1 of 1 page converted in 0.46262 seconds&lt;/p&gt;
&lt;p&gt;So it seems that GhostScript is not installed in your machine. I think the problem is that GhostScript is not installed with MacTeX.&lt;/p&gt;
&lt;p&gt;In my MacOS VM (that I have set up a few years ago), it seems that I have installed GhostScript as a separate package. This is probably why the equation is well rendered in my case.&lt;/p&gt;
&lt;p&gt;You can install GhostScript from here: &lt;a href="https://www.tug.org/mactex/morepackages.html" rel="nofollow"&gt;https://www.tug.org/mactex/morepackages.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Baudin</dc:creator><pubDate>Thu, 21 Nov 2024 19:24:04 -0000</pubDate><guid>https://sourceforge.net8af483b2fd37a8c5f64f88f3d63213a4362c20a1</guid></item></channel></rss>