emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* debugging why a latex preview fails
@ 2020-01-29  7:39 Alan Schmitt
  2020-01-29  9:50 ` Fraga, Eric
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Schmitt @ 2020-01-29  7:39 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I'm trying to add some diagrams in a note, and I want to use latex
preview for that. Unfortunately the result is not what I expect: I do
see an image, but there seem to be errors in the latex processing. How
can I see what latex is produced to find where the issue is?

To be precise, my note has this:

\begin{tikzcd}
A \arrow[r, "u"] \arrow[d, "i"] & B \arrow[d, "f"] \\
C \arrow[r, "v"] & D
\end{tikzcd}

and I have put this in my configuration files:

  (add-to-list 'org-latex-packages-alist '("" "tikz-cd" t nil))

The following latex file compiles correctly:

\documentclass{article}

\usepackage{tikz-cd}

\begin{document}
\begin{tikzcd}
A \arrow[r, "u"] \arrow[d, "i"] & B \arrow[d, "f"] \\
C \arrow[r, "v"] & D
\end{tikzcd}
\end{document}

So I expect I misconfigured something. Is my org-latex-packages-alist
setting wrong?

Thanks,

Alan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-30  6:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-29  7:39 debugging why a latex preview fails Alan Schmitt
2020-01-29  9:50 ` Fraga, Eric
2020-01-29 10:20   ` Fabrice Popineau
2020-01-29 11:02     ` Fraga, Eric
2020-01-29 11:23       ` Fabrice Popineau
2020-01-29 12:05         ` Alan Schmitt
2020-01-29 19:11           ` Nick Dokos
2020-01-30  6:55             ` Fraga, Eric

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).