From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cPYkGiCsvWZs+AAAqHPOHw:P1 (envelope-from ) for ; Thu, 15 Aug 2024 07:20:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cPYkGiCsvWZs+AAAqHPOHw (envelope-from ) for ; Thu, 15 Aug 2024 09:20:00 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723706400; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=j7l2eDwWDhA7xWwvY4PrXgyureJDygg79qD1N55MAL0=; b=AhMYyctqCteXbC4HV9J5iivUHMv6/qojGG8kq/qVJNm0JbeepVZNnmbPFmHJSMcIxOAiE1 GZMW4Hk45JD3rN0hjHHmYh/H23hjBRxI9+hSrbnEhS9sTwnpR/wFyTU8/dVbG9BbtswCmx XwewRWjepsmYPkQC1zLRs0MV8kZW8AeMQaelbcAMc/hgS/wRvvtiSEEl6z2V77POLjNVep hjKMAKoWb7IXYILKDSWn2GN1KiIGnpla3+R4Fl2+usIjgRTNAal08LPVwGb2vyKcU9bEhx iasDiPjmkjS+NWAIFL6rcfjByDmsvsBuT7eWhrKkkiYu+r396F4YTkAlnUvbZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723706400; a=rsa-sha256; cv=none; b=mibLFeWlGMIK+XefUPp9LudLlTKe/UqZbknuMltB0m8bNIlQ9gOeKAmuIiXX9xq6a465BH J5l9lFgK3Ui7/EzCfsSlILfUvSkUuTwVSft8y5qfIGJg/PYclTb0SqI9r4HJMNkqbjhIEL r3sxcDPv5V/qw6lR0AtiamKBpMl0/Qhtj7hKq5rkOC3lw4y7NiJEAetGF08PN4VnTKea60 A8FbCKzNp62YHVXCG2E4PK/3tNkNoc4UKeqDGqAgFfEknu8C4ZW/TLqotcJ4rtBiEuhE8p 3w4z2BkbztHH1AVvO4yv+zivQLAvO3OHnF40Qaa3Y6pZO9xBAcKwcYzOMBYVRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 2710617D95 for ; Thu, 15 Aug 2024 09:20:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seUl7-00062u-VX; Thu, 15 Aug 2024 03:18:58 -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 1seUl4-00062T-SL for emacs-orgmode@gnu.org; Thu, 15 Aug 2024 03:18:55 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seUl3-0002vy-7v for emacs-orgmode@gnu.org; Thu, 15 Aug 2024 03:18:54 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1seUl0-0000sU-E8 for emacs-orgmode@gnu.org; Thu, 15 Aug 2024 09:18:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org Subject: BUG?: org-preview-latex-default-process: imagemagick: cannot use latexmk -f pdf Date: Thu, 15 Aug 2024 09:18:44 +0200 Message-ID: <87le0yntij.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:zMFVrplizXRiULnqCEqKqKSKtvk= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Reply-to: Uwe Brauer From: Uwe Brauer via "General discussions about Org-mode." 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 X-Migadu-Queue-Id: 2710617D95 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.46 X-Spam-Score: -6.46 X-TUID: Hw6eGaIZlJzg Hi I prefer to open a new thread for this. - I set org-preview-latex-default-process --8<---------------cut here---------------start------------->8--- org-preview-latex-default-process is a variable defined in ‘org.el’. Its value is ‘imagemagick’ --8<---------------cut here---------------end--------------->8--- - The corresponding latex-compiler is --8<---------------cut here---------------start------------->8--- ("pdflatex -interaction nonstopmode -output-directory %o %f") --8<---------------cut here---------------end--------------->8--- - Take the simple example --8<---------------cut here---------------start------------->8--- \begin{equation*} A^{0}= \begin{array}{cccc} -m^{00}& 0 & 0 & 0\\ \hline 0 & 0 & &\\ 0 & & & \\ 0 & & & \\ \end{array} \end{equation*} --8<---------------cut here---------------end--------------->8--- The conversion works! - Then I change the compiler to --8<---------------cut here---------------start------------->8--- ("latexmk -f -pdf -output-directory %o %f") --8<---------------cut here---------------end--------------->8--- But, then I receive the following error: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "File \"/tmp/orgtexX2KSUz.pdf\" wasn’t produced. Please adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.") signal(error ("File \"/tmp/orgtexX2KSUz.pdf\" wasn’t produced. Please adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.")) error("File \"/tmp/orgtexX2KSUz.pdf\" wasn't produced. Please adjust `imagemagick' part of `org-preview-latex-process-alist'.") org-compile-file("/tmp/orgtexX2KSUz.tex" ("latexmk -f -pdf -output-directory %o %f") "pdf" "Please adjust `imagemagick' part of `org-preview-latex-process-alist'." #) org-create-formula-image("\\begin{equation*}\n A^{0}=\n \\begin{array}{cccc}\n -m^{00}& 0 & 0 & 0\\\\\n \\hline\n 0 & 0 & &\\\\\n 0 & & & \\\\\n 0 & & & \\\\\n \\end{array}\n\\end{equation*}\n" "/home/oub/ALLES/HGs/HG-Org/BUGS/ltximg/org-ltximg_..." (:foreground "black" :background "grey98" :scale 1.5 :html-foreground "Black" :html-background "Transparent" :html-scale 1 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) forbuffer imagemagick) org-format-latex("ltximg/org-ltximg" 405 569 "/home/oub/ALLES/HGs/HG-Org/BUGS/" overlays nil forbuffer imagemagick) org--latex-preview-region(405 569) org-latex-preview(nil) funcall-interactively(org-latex-preview nil) call-interactively(org-latex-preview nil nil) command-execute(org-latex-preview) --8<---------------cut here---------------end--------------->8--- However the file generated /tmp/orgtexX2KSUz.tex --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage[usenames]{color} \usepackage[numbered,framed]{matlab-prettifier} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} % Package longtable omitted % Package wrapfig omitted % Package rotating omitted \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{amssymb} % Package capt-of omitted % Package hyperref omitted \pagestyle{empty} % do not remove % The settings below are copied from fullpage.sty \usepackage{a4wide} \usepackage{mymathmatrix} \usepackage{nicematrix} \newcolumntype{C}{c} \usepackage{amsmath,amssymb,amsthm} \usepackage{wasysym} \usepackage{mdframed} \addtolength{\topmargin}{-2.54cm} \graphicspath{{./images/}} \begin{document} \definecolor{fg}{rgb}{0,0,0}% \definecolor{bg}{rgb}{0.980392,0.980392,0.980392}% \pagecolor{bg}% {\color{fg} \begin{equation*} A^{0}= \begin{array}{cccc} -m^{00}& 0 & 0 & 0\\ \hline 0 & 0 & &\\ 0 & & & \\ 0 & & & \\ \end{array} \end{equation*} % } \end{document} --8<---------------cut here---------------end--------------->8--- Can be perfectly compiled from the command line with --8<---------------cut here---------------start------------->8--- latexmk -f -pdf --8<---------------cut here---------------end--------------->8--- So I ask: is this a BUG? Uwe Brauer -- I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the EU and NATO membership of Ukraine.