From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4PnZLTx2JGQS1wAASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 19:32:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wGW7LTx2JGT4fwAA9RJhRA (envelope-from ) for ; Wed, 29 Mar 2023 19:32:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 20F1C3905B for ; Wed, 29 Mar 2023 19:32:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phZeY-0005Aa-ED; Wed, 29 Mar 2023 13:32:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phZeV-0004rP-TJ for emacs-orgmode@gnu.org; Wed, 29 Mar 2023 13:32:04 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phZeS-0001r4-T7 for emacs-orgmode@gnu.org; Wed, 29 Mar 2023 13:32:03 -0400 Received: by mail-wm1-x336.google.com with SMTP id u11-20020a05600c19cb00b003edcc414997so10221272wmq.3 for ; Wed, 29 Mar 2023 10:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680111115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=PoonF04W4XEg4Q/84Adl+jRwTheV5EcnQXbXEgl7PwE=; b=OYYvCSqiwe3SYZMtSYmUBGghEJ7m82zzIwaYGtywgbT5yCBQrt5wae7w4O3qNeK1yb n4B7VucW4lyVVzpd7zt4aOqzlM0wgshZH/JLdFsITxs1YbCiTPJ81NMO577foRcX1s3C E+6G/r1iiU6T1FrZdfXXmfqFNCuVFIWtP7Ib7K0gaPVk3erh1S0T98zrvC6vz87kaI8M aURDA29rAJPH9qPV9vvvQVUCih+kWoa53sAWR39Q8i9INVLblEO7I962bdSiKVJlIo2L 8qasGzvJ5vzQKDUpVgrFGJPkGdlKdb5aesLtN1LoUUWrsUXXMCmhEYotShB/h2O0kdfA M1Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680111115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PoonF04W4XEg4Q/84Adl+jRwTheV5EcnQXbXEgl7PwE=; b=arrRD6Mlkkn1bjpiYDcP0BcIososgJIjEO9B7eKwykVFt1DIy9HWlw5kxQB997eCqp xRza5owOGvx4qnaDUoahEEElWIx2xp90pyqfo5KZrEkOjs+hbz9I2ZEmk+jxjLxAsWLQ PpFxgD07ScAAAKndPlRq2ia1UQRuaGa0/BYnFYHtRmdmfOXfbUom/mgWlgBwCNTqsw7D EFt95DWApBPx6w821S4hDjmbHIR/1Uov8rIvfBx7F7tHDg/GhxsQBzcBK8FyrNplhI0H VlpFxZyXZ+OzY/SPrYUGmVaAjgHzHAPt+g4AsVMLFqYRJdqzTtJBlyObUGXIhTMERy5B tqeA== X-Gm-Message-State: AO0yUKWtJvHbakzM4LZMKV1cEYDA+UKybm6VBQK/3Y7yZPCM2s5setT7 uhkQwkOQ2IpmaRG3XvOJuA6+l6km61E= X-Google-Smtp-Source: AK7set85bPzkWhz4YBIUH7O4FlyhBgHNw6kNWq/QBV3ENxJbv76y9CbQB4uU3oaP5zRYQi6kApxLlQ== X-Received: by 2002:a1c:7702:0:b0:3ed:cfa6:8854 with SMTP id t2-20020a1c7702000000b003edcfa68854mr16208487wmi.26.1680111115237; Wed, 29 Mar 2023 10:31:55 -0700 (PDT) Received: from pluto.localnet (aaubervilliers-157-1-6-252.w83-200.abo.wanadoo.fr. [83.200.45.252]) by smtp.gmail.com with ESMTPSA id 12-20020a05600c020c00b003ee70225ed2sm2853202wmi.15.2023.03.29.10.31.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 10:31:54 -0700 (PDT) From: chris To: Org Mode List Subject: Re: File generation from LaTeX src fails due to temporary PDF in wrong directory Date: Wed, 29 Mar 2023 19:31:52 +0200 Message-ID: <2409256.jE0xQCEvom@pluto> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart2338954.NG923GbCHz" Content-Transfer-Encoding: 7Bit Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=inkbottle007@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OYYvCSqi; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680111164; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PoonF04W4XEg4Q/84Adl+jRwTheV5EcnQXbXEgl7PwE=; b=BS/hCRXl7gi3mREE2BgpKLhDfSNknkRgB3rPHPMSSazxlYr7gTn3Nii2fP0fhZeUDImGZt MNzP8QscKywpf/rWGs28p2V9GfR4JMEVlSHC+GFVlHP1GMoEedwyY2yRs5hetU5cfkrSKo 4xLoF9xSBxAa73bylTOlzYlCK9cw+8Y+fvfSgNa8OZnvR9yCd5GmSOczgWTon8fOAtH6ZT 4zplRLRQOfLHCTbzXx/zkubGwV+V1xewo2Wrq1k6TmL8ITGuF/w5kU65mOo2DvMIlhRs+5 it5z7PnEkWWpIzu/aGoT9JSUxXyMAVjfKsxXGGhJN2ijNxQM+w8W8vjA2PHPWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680111164; a=rsa-sha256; cv=none; b=Jma8nKL+IAwrwaEggXhqJ8SHnDga2bNJ+OdEOa9bRGynmxSXtYZPjH7UUbttK5q5dn+wfH tpz24mZsTP4k++v3t868slL/ovOtHpJGcbwkNg5H2/I8ugX646yuSzPtvsorPJVssxWkOA 5i8hLpaE46IZ7nQcNnOJQmlUm9ja/ApWpO7mdj0kXYR5Q58rIvINNXXmn9+qNCOaZtMmcK XVrWpnF47ywFRNr2AudRMzsUMTx/0gCK9IW2dOnldR5666m9HC0zDtA1P9mZsdYR4txXlc POKStJoH9qDfbTI3C9Eq1xJAh4WrX76LVPj84fZn/wVLZj31lzC9TUmWIpvHBw== X-Migadu-Spam-Score: -2.96 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Queue-Id: 20F1C3905B Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OYYvCSqi; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Spam-Score: -2.96 X-TUID: ld4IVk/93nFm This is a multi-part message in MIME format. --nextPart2338954.NG923GbCHz Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Wednesday, 29 March 2023 10:00:35 CEST Pedro Andres Aranda Gutierrez wro= te: > On Tue, 28 Mar 2023 10:04:24 +0200, Christian Moe = wrote > Hi, >=20 > > I'm trying and failing to export images from TikZ code, apparently > > because the temporary PDF is misplaced. Here is a minimal example just > > exporting the PDF: >=20 > > #+LATEX_HEADER: \usepackage{tikz} > > > > #+header: :fit yes > > #+begin_src latex :exports results :file ./test-tikz-triangle.png > > \begin{tikzpicture} % > > \draw[draw=3Dblack, fill=3Dblue!10] (0,4) -- (3,0) -- (-3,0) -- cycle; > > \end{tikzpicture} > > #+end_src >=20 > > Execution fails with an error message like this: > > > > org-compile-file: File "/tmp/babel-Tay2kl/latex-IJVI84.pdf" wasn=E2=80= =99t > > produced. See "*Org PDF LaTeX Output*" for details >=20 > Hi Christian, > trying to reproduce this on a master (emacs30.0.50) on Ubuntu. To make it= really > lightweight, I'm starting with > emacs -Q > but unfortunately, I'm not able to reproduce it here :( Hi, I've been trying to have a similar example working for hours, specifica= lly I was trying to follow https://orgmode.org/worg/org-contrib/babel/langu= ages/ob-doc-LaTeX.html[1] Could you provide more context because if I run emacs -Q here, with the exa= mple provided by OP, and type C-c C-c, I just get "no org-babel execute fun= ction for latex!". So I guess it might have required a little more work than what I've just de= scribed. Here is the setting I've used: This in my dot-emacs.org file: #+begin_src emacs-lisp (with-eval-after-load 'org (add-to-list 'org-latex-packages-alist '("" "stmaryrd" t)) (add-to-list 'org-latex-packages-alist '("" "tikz-cd" t)) (add-to-list 'org-latex-packages-alist '("" "amscd" t)) (add-to-list 'org-latex-packages-alist '("" "mathtools" t)) (add-to-list 'org-latex-packages-alist '("" "unicode-math" t)) ;; (add-to-list 'org-latex-packages-alist '("" "breqn" t)) (add-to-list 'org-latex-packages-alist '("" "thisisastupidtestfile" t= )) (setq org-latex-create-formula-image-program 'dvisvgm) ;; probably on= ly this line is relevant with the matter at hand (setq org-format-latex-options (plist-put org-format-latex-options :scale 0.80))) #+end_src With this, when I put the following in some org file and type C-c C-x C-l I= immediately get a org-latex-preview of the tikz snippet: \begin{tikzpicture} % \draw[->] (-3,0) -- (-2,0) arc[radius=3D0.5cm,start angle=3D-180,end angl= e=3D0] =20 (-1,0) -- (1,0) arc[radius=3D0.5cm,start angle=3D180,end angle=3D0] (2,0)= -- (3,0); \filldraw (-1.5,0) circle[radius=3D1mm]; \filldraw (1.5,0) circle[radius=3D1mm]; \end{tikzpicture} Now If I use the following and type C-c C-c, I never get anything in multip= le ways: Note that I've also tried with imagemagick... #+name: test_plot_png #+header: :exports results :file test.svg #+header: :dvisvgm yes #+header: :fit yes :noweb yes :headers '("\\usepackage{tikz}") #+begin_src latex :file test.svg \begin{tikzpicture} % \draw[->] (-3,0) -- (-2,0) arc[radius=3D0.5cm,start angle=3D-180,end an= gle=3D0] =20 (-1,0) -- (1,0) arc[radius=3D0.5cm,start angle=3D180,end angle=3D0] (2,= 0) -- (3,0); \filldraw (-1.5,0) circle[radius=3D1mm]; \filldraw (1.5,0) circle[radius=3D1mm]; \end{tikzpicture} #+end_src Many times a pdf is generated in the /tmp/ directory but that pdf is gibber= ish. When I go from the latex file to the pdf using pdflatex, only gibberis= h pdf is generated, no relation with the image that should be generated. If instead I use lualatex, the pdf is correctly generated. Anyway, I've been experimenting for hours, and I have no idea how to have t= he thing working. I also used that code someone gave me: #+begin_src emacs-lisp (set-variable 'org-preview-latex-process-alist '((dvipng :programs ; Was here originally. ("latex" "dvipng") :description "dvi > png" :message "you need t= o install the programs: latex and dvipng." :image-input-type "dvi" :image-o= utput-type "png" :image-size-adjust (1.0 . 1.0) :latex-compiler ("latex -interaction nonstopmode -output-dire= ctory %o %f") :image-converter ("dvipng -D %D -T tight -o %O %f")) (dvisvgm :programs ; Was here originally. ("latex" "dvisvgm") :description "dvi > svg" :message "you need = to install the programs: latex and dvisvgm." :image-input-type "dvi" :image= =2Doutput-type "svg" :image-size-adjust (1.7 . 1.5) :latex-compiler ("latex -interaction nonstopmode -output-dir= ectory %o %f") :image-converter ("dvisvgm %f -n -b min -c %S -o %O")) (imagemagick :programs ; The recommended "new" way. ("latex" "convert") :description "pdf > png" :message "you n= eed to install the programs: latex and imagemagick." :image-input-type "pdf= " :image-output-type "png" :image-size-adjust (1.0 . 1.0) :latex-compiler ("lualatex -interaction nonstopmode -out= put-directory %o %f") :image-converter ("convert -density %D -trim -antialias %= f -quality 100 %O")))) #+end_src No luck at all there neither. BTW, when I do C-c C-c on the OP example, after having evaluated #+begin_src emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) #+end_src No pdf, no output, only an empty latex file generated in /tmp Bottom line, I'd really like to know how this hole thing is supposed to wor= k. org-preview latex working perfectly fine though. Note: The reason I want to have this working is that I want to export to ht= ml. Plain latex formula are displayed very very well using mathjax. But TiK= z things are not working. So even though I've got a near wysiwyg in emacs, I can't have that exported= to html. What I'd like to have is plain latex formulas exported to mathjax and tikz = diagrams exported using the SVG image. Initially my setting wasn't even using imagemagick, only dvisvgm. Also it seems we have three ways to do the exact same thing: org-latex-preview which works perfectly with minimal effort on my box, the C-c C-c thing, and the org-html-export-to-html thing. Each using independent workflow. Though probably not completely independent= though. My emacs is master from a month ago. Cheers, Chris >=20 > My emacs: >=20 > GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, > cairo version 1.16.0) of 2023-03-26 >=20 > Would you please try again, calling with emacs -Q and giving a couple > clues more of your process to confirm... It may be that I'm too modern > ;-) >=20 > Thx, /Pedro A. >=20 >=20 =2D------- [1] https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html --nextPart2338954.NG923GbCHz Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"

On Wednesday, 29 March 2023 10:00:35 CEST Pedro Andres Aranda Gutierrez = wrote:

>= ; On Tue, 28 Mar 2023 10:04:24 +0200, Christian Moe <mail@christianmoe.c= om> wrote

>= ; Hi,

>= ;

>= ; > I'm trying and failing to export images from TikZ code, apparently

>= ; > because the temporary PDF is misplaced. Here is a minimal example ju= st

>= ; > exporting the PDF:

>= ;

>= ; > #+LATEX_HEADER: \usepackage{tikz}

>= ; >

>= ; > #+header: :fit yes

>= ; > #+begin_src latex :exports results :file ./test-tikz-triangle.png

>= ; > \begin{tikzpicture}        &= nbsp;    %

>= ; > \draw[draw=3Dblack, fill=3Dblue!10] (0,4) -- (3,0) -- (-3,0) -- cycl= e;

>= ; > \end{tikzpicture}

>= ; > #+end_src

>= ;

>= ; > Execution fails with an error message like this:

>= ; >

>= ; > org-compile-file: File "/tmp/babel-Tay2kl/latex-IJVI84.pdf"= ; wasn=E2=80=99t

>= ; > produced.  See "*Org PDF LaTeX Output*" for details

>= ;

>= ; Hi Christian,

>= ; trying to reproduce this on a master (emacs30.0.50) on Ubuntu. To make it= really

>= ; lightweight, I'm starting with

>= ; emacs -Q

>= ; but unfortunately, I'm not able to reproduce it here :(


Hi, I've been trying to have a similar example working for hours, specif= ically I was trying to follow https://orgmode.org/worg/org-contrib/= babel/languages/ob-doc-LaTeX.html


Could you provide more context because if I run emacs -Q here, with the = example provided by OP, and type C-c C-c, I just get "no org-babel exe= cute function for latex!".

So = I guess it might have required a little more work than what I've just descr= ibed.


Here is the setting I've used:


This in my dot-emacs.org file:

#+b= egin_src emacs-lisp

&nb= sp; (with-eval-after-load 'org

&nb= sp;     (add-to-list 'org-latex-packages-alist '("= " "stmaryrd" t))

&nb= sp;     (add-to-list 'org-latex-packages-alist '("= " "tikz-cd" t))

&nb= sp;     (add-to-list 'org-latex-packages-alist '("= " "amscd" t))

&nb= sp;     (add-to-list 'org-latex-packages-alist '("= " "mathtools" t))

&nb= sp;     (add-to-list 'org-latex-packages-alist '("= " "unicode-math" t))

&nb= sp;     ;; (add-to-list 'org-latex-packages-alist '(&qu= ot;" "breqn" t))

&nb= sp;     (add-to-list 'org-latex-packages-alist '("= " "thisisastupidtestfile" t))

&nb= sp;     (setq org-latex-create-formula-image-program 'd= visvgm) ;; probably only this line is relevant with the matter at hand

&nb= sp;     (setq org-format-latex-options

&nb= sp;           (plist-put = org-format-latex-options :scale 0.80)))

#+e= nd_src


With this, when I put the following in some org file and type C-c C-x C-= l I immediately get a org-latex-preview of the tikz snippet:

\be= gin{tikzpicture}          = ;   %

&nb= sp; \draw[->] (-3,0) -- (-2,0) arc[radius=3D0.5cm,start angle=3D-180,end= angle=3D0]  

&nb= sp; (-1,0) -- (1,0) arc[radius=3D0.5cm,start angle=3D180,end angle=3D0] (2,= 0) -- (3,0);

&nb= sp; \filldraw (-1.5,0) circle[radius=3D1mm];

&nb= sp; \filldraw (1.5,0) circle[radius=3D1mm];

\en= d{tikzpicture}


Now If I use the following and type C-c C-c, I never get anything in mul= tiple ways:

Not= e that I've also tried with imagemagick...

#+n= ame: test_plot_png

#+h= eader: :exports results :file test.svg

#+h= eader: :dvisvgm yes

#+h= eader: :fit yes :noweb yes :headers '("\\usepackage{tikz}")

#+b= egin_src latex :file test.svg

&nb= sp; \begin{tikzpicture}        &nbs= p;    %

&nb= sp;   \draw[->] (-3,0) -- (-2,0) arc[radius=3D0.5cm,start angl= e=3D-180,end angle=3D0]  

&nb= sp;   (-1,0) -- (1,0) arc[radius=3D0.5cm,start angle=3D180,end an= gle=3D0] (2,0) -- (3,0);

&nb= sp;   \filldraw (-1.5,0) circle[radius=3D1mm];

&nb= sp;   \filldraw (1.5,0) circle[radius=3D1mm];

&nb= sp; \end{tikzpicture}

#+e= nd_src


Many times a pdf is generated in the /tmp/ directory but that pdf is gib= berish. When I go from the latex file to the pdf using pdflatex, only gibbe= rish pdf is generated, no relation with the image that should be generated.=

If = instead I use lualatex, the pdf is correctly generated.

Any= way, I've been experimenting for hours, and I have no idea how to have the = thing working.


I also used that code someone gave me:

#+b= egin_src emacs-lisp

&nb= sp; (set-variable 'org-preview-latex-process-alist

&nb= sp;            =        '((dvipng :programs ; Was here origina= lly.

&nb= sp;            =             &nb= sp;    ("latex" "dvipng")

&nb= sp;            =             &nb= sp;    :description "dvi > png" :message "= you need to install the programs: latex and dvipng." :image-input-type= "dvi" :image-output-type "png" :image-size-adjust

&nb= sp;            =             &nb= sp;    (1.0 . 1.0)

&nb= sp;            =             &nb= sp;    :latex-compiler

&nb= sp;            =             &nb= sp;    ("latex -interaction nonstopmode -output-directo= ry %o %f")

&nb= sp;            =             &nb= sp;    :image-converter

&nb= sp;            =             &nb= sp;    ("dvipng -D %D -T tight -o %O %f"))

&nb= sp;            =          (dvisvgm :programs ; Was h= ere originally.

&nb= sp;            =             &nb= sp;     ("latex" "dvisvgm")

&nb= sp;            =             &nb= sp;     :description "dvi > svg" :message = "you need to install the programs: latex and dvisvgm." :image-inp= ut-type "dvi" :image-output-type "svg" :image-size-adju= st

&nb= sp;            =             &nb= sp;     (1.7 . 1.5)

&nb= sp;            =             &nb= sp;     :latex-compiler

&nb= sp;            =             &nb= sp;     ("latex -interaction nonstopmode -output-d= irectory %o %f")

&nb= sp;            =             &nb= sp;     :image-converter

&nb= sp;            =             &nb= sp;     ("dvisvgm %f -n -b min -c %S -o %O"))=

&nb= sp;            =          (imagemagick :programs ; T= he recommended "new" way.

&nb= sp;            =             &nb= sp;         ("latex" &quo= t;convert")

&nb= sp;            =             &nb= sp;         :description "pdf = > png" :message "you need to install the programs: latex and i= magemagick." :image-input-type "pdf" :image-output-type &quo= t;png" :image-size-adjust

&nb= sp;            =             &nb= sp;         (1.0 . 1.0)

&nb= sp;            =             &nb= sp;         :latex-compiler

&nb= sp;            =             &nb= sp;         ("lualatex -intera= ction nonstopmode -output-directory %o %f")

&nb= sp;            =             &nb= sp;         :image-converter

&nb= sp;            =             &nb= sp;         ("convert -density= %D -trim -antialias %f -quality 100 %O"))))

#+e= nd_src


No luck at all there neither.


BTW, when I do C-c C-c on the OP example, after having evaluated

#+b= egin_src emacs-lisp

&nb= sp; (org-babel-do-load-languages

&nb= sp;  'org-babel-load-languages

&nb= sp;  '((latex . t)))

#+e= nd_src


No pdf, no output, only an empty latex file generated in /tmp



Bottom line, I'd really like to know how this hole thing is suppos= ed to work.

org= =2Dpreview latex working perfectly fine though.


Note: The reason I want to have this working is that I want to export to= html. Plain latex formula are displayed very very well using mathjax. But = TiKz things are not working.

So = even though I've got a near wysiwyg in emacs, I can't have that exported to= html.

Wha= t I'd like to have is plain latex formulas exported to mathjax and tikz dia= grams exported using the SVG image.

Ini= tially my setting wasn't even using imagemagick, only dvisvgm.


Also it seems we have three ways to do the exact same thing:

org= =2Dlatex-preview which works perfectly with minimal effort on my box,

the= C-c C-c thing,

and= the org-html-export-to-html thing.

Eac= h using independent workflow. Though probably not completely independent th= ough.


My emacs is master from a month ago.


Cheers,

Chr= is




>

>= ; My emacs:

>= ;

>= ; GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33,

>= ;  cairo version 1.16.0) of 2023-03-26

>= ;

>= ; Would you please try again, calling with emacs -Q and giving a couple

>= ; clues more of your process to confirm... It may be that I'm too modern

>= ; ;-)

>= ;

>= ; Thx, /Pedro A.

>= ;

>= ;



--nextPart2338954.NG923GbCHz--