I am using TikZjax and want to do something fancy that needs additional library. So in LaTeX, we can do:
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
% my picture here
\end{tikzpicture}
\end{document}
but in TikZjax, I do not know how to add the \usetikzlibrary{} line. I tried in the HTML code:
<script type="text/tikz">
\usetikzlibrary{calc}
\begin{tikzpicture}
% my picture here
\end{tikzpicture}
</script>
also
<script type="text/tikz">
\begin{tikzpicture}
\usetikzlibrary{calc}
% my picture here
\end{tikzpicture}
</script>
but both not successful. Opening up the browser console will find that TikZ emits error just like I didn't have the \usetikzlibrary{} line.
So my question is: (1) is it possible to \usetikzlibrary? (2) if so, how?
I am facing the same issue and looking for the same answer.
RépondreSupprimer