Daniel Guimaraes <dcg...@gmail.com> writes: > I am trying to export a latex tikzpicture, like the following to html: > ``` > #+begin_src latex :exports results :results raw file :file ex.png > :output-dir ../img/ > \begin{tikzpicture} > \draw node[circle, draw] (a) {$a$} > node[circle, draw, right of = a] (b) {$b$} > node[circle, draw, below of = a] (c) {$c$} > node[circle, draw, below of = b] (d) {$d$}; > \end{tikzpicture} > #+end_src > ``` > If I export with `org-export-dispatch` to HTML file, I flawlessly obtain > the desired html. If I however, `org-html-publish-to-html` with: > > ``` > emacs -Q --script build-site.el > ``` > Then I obtain the following error: > ``` > Debugger entered--Lisp error: (error "Attempt to calculate the dpi of a > non-graphic disp...")
Thanks for reporting! Fixed on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d972cfac89ccb9003a91636701625bb142f1b6cf -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>