From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sMz3Jj/ivWHnbgEAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 14:29:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kIi6Ij/ivWFccAAA1q6Kng (envelope-from ) for ; Sat, 18 Dec 2021 13:29:35 +0000 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 3B7F9A6DC for ; Sat, 18 Dec 2021 14:29:34 +0100 (CET) Received: from localhost ([::1]:56998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myZmH-0007E0-GP for larch@yhetil.org; Sat, 18 Dec 2021 08:29:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myCm4-0007Vx-C0 for emacs-orgmode@gnu.org; Fri, 17 Dec 2021 07:55:48 -0500 Received: from out0.migadu.com ([94.23.1.103]:47241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myCm1-0002hQ-83 for emacs-orgmode@gnu.org; Fri, 17 Dec 2021 07:55:47 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ego.team; s=key1; t=1639745738; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type; bh=hZRLt/ElRpmV1D3bDfS2IxiOAzJHf2UOCY7nNP0HNtw=; b=E2JR5lu9JjYacUpDPWkzIJPihx6uwm8rZjy4sFgTbmIsWya7DS2fm3I/Yh8HpLo0biXpNs sX4IePW/Jn5KGp0wHHM0wt1/AOO5kzVV5fKLqVwKnR7XX5A1hhTmFNhKYnX5Lmjmf5lnMW GQ4Hbf6pVjouWK0qAoJl8M1sBed3DJU= To: emacs-orgmode@gnu.org Subject: [BUG] Set org-format-latex-options in .dir-locals.el [9.5.1 (release_9.5.1-11-g96d91b @ emacs-28.0.90/lisp/org/)] Date: Fri, 17 Dec 2021 14:55:38 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=94.23.1.103; envelope-from=yet@ego.team; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 18 Dec 2021 08:28:16 -0500 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" Reply-to: "Y. E." X-ACL-Warn: , Y. E. From: Y. E. via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639834175; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hZRLt/ElRpmV1D3bDfS2IxiOAzJHf2UOCY7nNP0HNtw=; b=bkPee6WzTj6BuW0kS4dlqooCZDmirT/9Quys2BXl4l3TQC0GJcZmegnKMrQ8hFqH8YLhb9 xjj19n/6c3yLYO90QlBtRAh/fgeeGqWE2aZ8Db/aEwUHsEWTSMa7eVfrzEtvrBzr8pdELB Ysd870ZxxweSSDIKdfdBqig3h6oztQpf04L/HYVjIr7yNQkHFERZvqPrpaYEFFqTYOH0O2 bG0uJbLgxF1qZ0bi/ePKPATV5ajLfUn9/sx9z5vbwxzy/yvkl21ettfoIAPwRrtzQhmfwg YzyIVjm9KX86v2D7F8B/EFP52iAo/qogCJFMDbmcFda644y7fgB3wMvUJlMUDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639834175; a=rsa-sha256; cv=none; b=VQIoWpZh1Yen4PcidTEOwmvyLcMqQCkW04x1Hi1jegGZblgkdq06Vk0Y+lXQ7EzxwDbqob VliFT2J6n1aVBQAIxnqbbJnIdGLQFRuaJ1619qWnzcueRsRxmXJOTdJNYQ7wO0q41bf7Uj EoRdD1eHIbBB+VrjV/BHOtbOdfKMbFQaposLmNb2gRtVWYjbj8+MnehdolGsH8tmJYTh2A 6qZKJ4eaf+9Jax9DfwWjhOjPoBaYyNTlRONOavYJyXiDb7HduEKbDyQGsI19BH01nzT5R2 jcLwgxCMwQqczxyq5WD/VquW0turD9kna2/9HDCpSNbJwqBG4eQGFLbIglibCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ego.team header.s=key1 header.b=E2JR5lu9; 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" X-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ego.team header.s=key1 header.b=E2JR5lu9; 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" X-Migadu-Queue-Id: 3B7F9A6DC X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: +xXGrmGvMBHy Hello, I tried configuring 'org-format-latex-options' per a org-mode file/directory by adding the following configuration into the .dir-locals.el file: ((org-mode . ((org-format-latex-options . (:foreground default :background default :scale 1.5 :html-foreground "#002277" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "\\(" "\\[")))))) When I load the org file, I'm being asked if I'd like to load local variables, so I agree on that. After that, 'C-h v org-format-latex-options' outputs: Value: (:foreground default :background default :scale 1.5 :html-foreground "#002277" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "\\(" "\\[")) Original value was (:foreground default :background default :scale 1.0 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) Local in buffer Notes/Blog/concrete-math.org; global value is (:foreground default :background default :scale 1.0 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) Then I do 'M-x org-html-export-to-html' to see that custom/local settings are not taken into an account: an exported HTML contains SVGs corresponding to the default settings. The file settings I use: #+STARTUP: content latexpreview #+OPTIONS: tex:dvisvgm html-style:nil #+HTML_HEAD: The LaTeX formulas are embedded into the text as shown here: https://orgmode.org/manual/LaTeX-fragments.html Am I overlooking something? (Setting the value of 'org-format-latex-options' *globally* results in expected behavior.) I didn't have a chance to look deeper, but this mailing list discussion might be related: https://lists.gnu.org/archive/html/emacs-orgmode/2019-11/msg00050.html Thanks, YE Emacs : GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2021-12-03 Package: Org mode version 9.5.1 (release_9.5.1-11-g96d91b @ /Users/yuga/Downloads/emacs-28.0.90/lisp/org/)