From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: debugging why a latex preview fails Date: Wed, 29 Jan 2020 08:39:58 +0100 Message-ID: <87v9oupv75.fsf@polytechnique.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36127) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwhxZ-0007Tm-Al for emacs-orgmode@gnu.org; Wed, 29 Jan 2020 02:40:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwhxX-0000bg-OA for emacs-orgmode@gnu.org; Wed, 29 Jan 2020 02:40:24 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:47438) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwhxX-0000W8-EH for emacs-orgmode@gnu.org; Wed, 29 Jan 2020 02:40:23 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" 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=C2=A0expect: 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