You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, and thanks a lot for making this so user-friendly,
Now that kroki and this plugin support tikz, I can put my old diagrams into my notes finally. However, this requires me to copy and paste my boilerplate preamble code (macros.tex) in every cell that I put in the notebook. This is clearly inefficient.
Similar libraries (for instance katex) allow to define preamble. Could this be added to the plugin? I'm thinking maybe another entry to the logseq/settings/logseq-diagrams-as-code.json file named latex_preamble.
This could be extended to a postamble too; which would allow us not to specify a document at all. Always load libraries and macros necessary + \begin{document} in the preamble and a bunch of additional commands plus a \end{document} to the postamble. From that point onwards, all one needs to put in the notes in \begin{tikzfigure} .... \end{tikzfigure}.
The text was updated successfully, but these errors were encountered:
Hello, and thanks a lot for making this so user-friendly,
Now that kroki and this plugin support tikz, I can put my old diagrams into my notes finally. However, this requires me to copy and paste my boilerplate preamble code (
macros.tex
) in every cell that I put in the notebook. This is clearly inefficient.Similar libraries (for instance katex) allow to define preamble. Could this be added to the plugin? I'm thinking maybe another entry to the
logseq/settings/logseq-diagrams-as-code.json
file namedlatex_preamble
.This could be extended to a postamble too; which would allow us not to specify a document at all. Always load libraries and macros necessary +
\begin{document}
in the preamble and a bunch of additional commands plus a\end{document}
to the postamble. From that point onwards, all one needs to put in the notes in\begin{tikzfigure} .... \end{tikzfigure}
.The text was updated successfully, but these errors were encountered: