Hi list
Since updating emacs to 31.1 I have problems exporting a latex source
block to svg when running the html export
(org-html-publish-to-html). This was code which was working before but
now fails to produce an svg image:
#+name: equalization-curve
#+begin_src latex :file-ext svg :results file link :imagemagick yes
\begin{center}
\begin{tikzpicture}
\begin{axis}[
width=10cm,
height=6cm,
xlabel={Time},
ylabel={Concentration},
xmin=0, xmax=6,
ymin=0, ymax=4.5,
legend style={draw=none},
axis lines=left,
]
% Equilibrium values
\addplot[gray,dashed] coordinates {(0,2.5) (6,2.5)};
\addlegendentry{$c_{\mathrm{eq},A}$};
\addplot[gray,dotted] coordinates {(0,1.2) (6,1.2)};
\addlegendentry{$c_{\mathrm{eq},B}$};
% Gas A
\addplot[blue, thick, samples=100, domain=0:6] {2.5 + 1.5*exp(-0.8*x)};
\addlegendentry{$A_\mathrm{left}$}
\addplot[blue, thick, samples=100, domain=0:6] {2.5 - 1.5*exp(-0.8*x)};
\addlegendentry{$A_\mathrm{right}$}
% Gas B
\addplot[red, thick, samples=100, domain=0:6] {1.2 + 2.0*exp(-0.4*x)};
\addlegendentry{$B_\mathrm{left}$}
\addplot[red, thick, samples=100, domain=0:6] {1.2 - 0.8*exp(-0.4*x)};
\addlegendentry{$B_\mathrm{right}$}
\end{axis}
\end{tikzpicture}
\end{center}
#+end_src
with this set in my init.el:
(setq og-babel-latex-preamble (lambda (_)
(concat "\\documentclass[tikz]{standalone}
\\usepackage{hyperref}
\\usepackage{pgfplots}\n"))
The org-mode version is 9.8.12.
Thanks for any clues.
Best,
Reza