From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gGqkG8/ZvGbVPgAAqHPOHw:P1 (envelope-from ) for ; Wed, 14 Aug 2024 16:22:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gGqkG8/ZvGbVPgAAqHPOHw (envelope-from ) for ; Wed, 14 Aug 2024 18:22:39 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723652559; 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: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=6iCn42R6P6Kht655XnLKwp+8ls5t1O+NNGvem/GRGFk=; b=gAIvg2k0AHrcjEgp7qAvvG0tLqEDj61GUbPS1vLt4HAP/i9/6VKg47dzzXqdEMtUPcxnXh huxZQaMmRzfWkTa1+ngriUvU7l255t6a6I1ioaLpwP29/H4rADuQ0uAMiBrokNfNTyW5ij K/pTp+k9v3F4IH+3+tzDSVqMhIXlwGUlC2SX/v4NmhHa/iV+NwohP0gMHpeNB3vBBFQ7uK 532GlUX2P3SkT5o/Z+q31Y5/XYjkDSmKI8yYyEfWqcGrJ3m0lPzfUSReTZZ7HcQn0/Cr+V VS2iISe8iTtM1S1WwMaYylT1AfCwolttiILQcGctgXHf0RkgfyM4WVPe9bP9fQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723652559; a=rsa-sha256; cv=none; b=onVn4UDMRpBz6hT4vxntQgxmGR2r8rbIZcgACd62OR/6JYA1WvUBQTMkkbeuUvdrTK+v0+ qWDkf6B+Lu7HAMRh93ZfYim4BQlklDrBGU8VHrZBIcHCYvv6WvnCzyt9Pv8wUf4ErTKRMh 06+npICUFy/UxKpIg/HWjxUhHObVnSaKiGeXmn0na9AQ9+NEvpzxck6TaTgVTvb6lE5q0Y ekjujWhNM3wf/DP4rxKe4B5b/haWzBTITTjAVrKbXk1GXqcty5TY5G3sr5nX6CUIVySLCs YpW0GmPrUkSzANIm0bkqHVN/cinvRnEfjaMQD+JVJuu4OPYz8mdsOP/gh+h+6w== 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 26273236A0 for ; Wed, 14 Aug 2024 18:22:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seGkl-00077j-Lk; Wed, 14 Aug 2024 12:21:39 -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 1seGkk-00077Y-DN for emacs-orgmode@gnu.org; Wed, 14 Aug 2024 12:21:38 -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 1seGki-0007Kw-IC for emacs-orgmode@gnu.org; Wed, 14 Aug 2024 12:21:38 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1seGkf-00083u-4Q for emacs-orgmode@gnu.org; Wed, 14 Aug 2024 18:21:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org Subject: Re: org-latex-preview, pNiceArray (running latex twice) Date: Wed, 14 Aug 2024 18:21:27 +0200 Message-ID: <878qwzm5x4.fsf@mat.ucm.es> References: <87wmklyd5v.fsf@mat.ucm.es> <87mslgrzba.fsf@localhost> <878qwzmukt.fsf@mat.ucm.es> <87ed6rsgm6.fsf@localhost> <87ttfnleqn.fsf@mat.ucm.es> <87bk1vsfey.fsf@localhost> <87h6bnlege.fsf@mat.ucm.es> <878qwzsf1k.fsf@localhost> <87a5hfla9u.fsf@mat.ucm.es> <871q2rsa9e.fsf@localhost> <87plqbjtg2.fsf@mat.ucm.es> <87v803qtwv.fsf@localhost> 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:rEUSqTu+4gsP2Yh3NIInp1xGEaw= 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.46 X-Migadu-Queue-Id: 26273236A0 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.46 X-TUID: J4cfrBLFchdR > Uwe Brauer writes: > This is expected. > dvipng previews expect .dvi files, not .pdf. You must use > ("latexmk -f -latex -output-directory=%o %f") > Except that latex does not produce the desired result, which indicates > that you are using some very strange package that is not compatible with > latex. > I can only suggest using "imagemagick" process to use pdf -> png > conversion, but truly that should be a bug in the latex package. I managed to do this --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--- --8<---------------cut here---------------start------------->8--- org-preview-latex-process-alist (imagemagick :programs ("latexmk" "convert") :description "pdf > png" :message "you need to install the programs: latex and imagemagick." :image-input-type "pdf" :image-output-type "png" :image-size-adjust (1.0 . 1.0) :latex-compiler ("latexmk -f -pdf -interaction nonstopmode -output-directory %o %f") :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O"))) --8<---------------cut here---------------end--------------->8--- But: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "File \"/tmp/orgtexkNp9XC.pdf\" wasn’t produced. Please adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.") signal(error ("File \"/tmp/orgtexkNp9XC.pdf\" wasn’t produced. Please adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.")) error("File \"/tmp/orgtexkNp9XC.pdf\" wasn't produced. Please adjust `imagemagick' part of `org-preview-latex-process-alist'.") org-compile-file("/tmp/orgtexkNp9XC.tex" ("latexmk -f -pdf -interaction nonstopmode -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{pNiceArray}{C|CCC}[margin]\n -m^{00}& 0 & 0 & 0\\\\\n \\hline\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" 1 404 "/home/oub/ALLES/HGs/HG-Org/BUGS/" overlays nil forbuffer imagemagick) org--latex-preview-region(1 404) 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--- I am puzzled. -- 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.