From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qHNzFgXvql5/IgAA0tVLHw (envelope-from ) for ; Thu, 30 Apr 2020 15:30:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SEuJBg7vql50UwAA1q6Kng (envelope-from ) for ; Thu, 30 Apr 2020 15:30:22 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 0330B941D58 for ; Thu, 30 Apr 2020 15:30:21 +0000 (UTC) Received: from localhost ([::1]:33580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUB8n-0005ef-0y for larch@yhetil.org; Thu, 30 Apr 2020 11:30:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41390) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUB82-0005TE-HL for emacs-orgmode@gnu.org; Thu, 30 Apr 2020 11:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUB7O-0000co-6t for emacs-orgmode@gnu.org; Thu, 30 Apr 2020 11:29:34 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:57057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUB7N-0000bd-A8 for emacs-orgmode@gnu.org; Thu, 30 Apr 2020 11:28:53 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 2FDE1240006; Thu, 30 Apr 2020 15:28:45 +0000 (UTC) From: Nicolas Goaziou To: Vladimir Nikishkin Subject: Re: Bug: org-preview-latex-process-alist's :latex-header should not fall back to org-format-latex-header [9.3.4 (9.3.4-5-ga0f3bb-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20200210/)] References: <87d07r9dhx.fsf@delllaptop.lockywolf.net> Mail-Followup-To: Vladimir Nikishkin , emacs-orgmode@gnu.org Date: Thu, 30 Apr 2020 17:28:45 +0200 In-Reply-To: <87d07r9dhx.fsf@delllaptop.lockywolf.net> (Vladimir Nikishkin's message of "Wed, 29 Apr 2020 11:28:42 +0800") Message-ID: <87wo5x9emq.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.178.230; envelope-from=mail@nicolasgoaziou.fr; helo=relay10.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/30 09:57:22 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 217.70.178.230 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: 0.49 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [0.49 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49413210977076]; MX_INVALID(1.00)[cached]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.17), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[mail@nicolasgoaziou.fr,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; DMARC_NA(0.00)[nicolasgoaziou.fr]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 7Et53Zd3Bk9V Hello, Vladimir Nikishkin writes: > There are two almost unrelated latex-using processes in org. One is > export, the other one is generating previews. > > The latter one is far less demanding than the former. Previews only care > about certain math, whereas exports may very well be super tricky. > > Therefore, preparing org documents for export often includes setting a > separate latex compiler (in 99% of the cases lualatex or xelatex), and a > custom #+LATEX_HEADER. the latex compiler controlled with > (setq org-latex-compiler "lualatex") > (setq org-latex-bib-compiler "biber") > is completely ignored by the preview process. This is fine, since > previews only care about small things. However, #+LATEX_HEADER is _not_ > ignored, which means that previews will fail to compile, since > LATEX_HEADER is prepared for a different compiler. IIRC, LATEX_HEADER_EXTRA is meant for non-preview compilation. LATEX_HEADER is for both preview and export. Regards, -- Nicolas Goaziou