William Brusa <williambr...@airmail.cc> writes:

> -- Snippet 1 --
> \begin{tikzpicture}
> \usetikzlibrary {graphs,graphdrawing}
> \tikz \graph [tree layout, nodes={draw,circle}, sibling sep=0pt]
>    { c -> { a, , ,b -> {c,d}, ,e} };
> \end{tikzpicture}
> -- End of Snippet 1 --
> ...
> Steps to reproduce:
> 1. emacs -q
> 2. eval snippet 2
> 3. Open scratch buffer in org-mode
> 4. Write snipped
> 5. preview snipept (C-c C-x C-l)
>
> I don't know where to put my hands on this, so any direction on the bug 
> can be
> of help, even if it doesn't solve it.

When I look int *Org Preview LaTeX Output* buffer, I see a number of
tikz errors when compiling your snippet, including a requirement to use 
lualatex.

Latex preview and latex export use a slightly different route to arrive
to final file (tex->dvi->svg vs tex->pdf), so it might be that erroneous
tikz input is processed differently by latex vs pdflatex.

When I fix your snippet to be

\begin{tikzpicture}
\usetikzlibrary {graphs,graphdrawing}
\graph [tree layout, nodes={draw,circle}, sibling sep=0pt, grow=down] {
    c -> { a, b -> {c, d}, e }
};
\end{tikzpicture}

I see no issues.

I do not think that it is a bug on Org side. Org correctly messages that
there are problems when exporting to pdf.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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>

Reply via email to