-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate figures for .tex output #33
Comments
I'm not entirely sure I understand - is your source markdown and destination .tex? Could you post a minimal markdown and the command your running to generate the .tex? |
I've created minimal reproducible examples. % mermaid.tex
\documentclass{article}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[language=mermaid]
graph LR
A(LaTeX-Datei) -->|pandoc| B(LaTeX-Datei)
B -->|pdflatex| C(PDF-Datei)
\end{lstlisting}
\end{document}
pandoc -f latex -t latex -F mermaid-filter mermaid.tex -o graph.tex pandoc -t latex -F mermaid-filter mermaid.md -o graph_md.tex But both outputs are empty. But the conversion to pdf works. pandoc -f latex -t pdf -F mermaid-filter mermaid.tex -o graph.pdf pandoc -t pdf -F mermaid-filter mermaid.md -o graph_md.pdf |
Hello. Thanks for such a wonderful filter. I am using it with Obsidian and it works great with at least odt html and epub exports. However, it does not produce any figure at all when exporting to LaTeX. The note has this content
and exporting it using pandoc with "--filter mermaid-filter " gives a document with no contents. I reproduced the same results reported by the minimal example given above by @TheAlgorythm. |
Hi,
the filter works great - for .pdf or .html output. When using .tex as output, the figure does not get generated, though. I have a pipeline that cannot let pandoc do all the work, but rely on pandoc to output .tex and finalize with a normal xetex/latexmk step.
I guess it would involve to keep the generated graph image around and pandoc would generate \figure{... \includegraphics{/path/to/mermaid/graphs/graph1.png} ...} or something like that. currently, I get either no \figure at all, or a \figure with no content, while the same thing works when converting to .pdf.
Could you tell me if that is something this filter could do, and I am just missing a simple thing? If this is not the goal of this filter, to keep generated stuff around after the filter has run -- could you tell me if there is some other approach to make it happen like I described?
The text was updated successfully, but these errors were encountered: