From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gLWZOsNPU1/dGwAA0tVLHw (envelope-from ) for ; Sat, 05 Sep 2020 08:43:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IMldNsNPU180IwAAbx9fmQ (envelope-from ) for ; Sat, 05 Sep 2020 08:43:47 +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 6F2DB9402C8 for ; Sat, 5 Sep 2020 08:43:47 +0000 (UTC) Received: from localhost ([::1]:56752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kETnV-00085m-I2 for larch@yhetil.org; Sat, 05 Sep 2020 04:43:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kETnB-00083v-H1 for emacs-orgmode@gnu.org; Sat, 05 Sep 2020 04:43:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60563) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kETnA-00016t-UC; Sat, 05 Sep 2020 04:43:24 -0400 Received: from [2a01:e35:2fe1:f780:68c6:8f4c:dae1:2381] (port=38990 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kETnA-0001tO-7r; Sat, 05 Sep 2020 04:43:24 -0400 Received: by guerry (Postfix, from userid 1000) id 689B31A60D46; Sat, 5 Sep 2020 10:43:22 +0200 (CEST) From: Bastien To: Eric S Fraga Subject: Re: [bug?] should ltxpng be ltximg in ox-html? Organization: GNU References: <87a70v9jan.fsf@ucl.ac.uk> Date: Sat, 05 Sep 2020 10:43:22 +0200 In-Reply-To: <87a70v9jan.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 22 Jun 2020 17:06:40 +0100") Message-ID: <87d0303979.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 Org mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: jZaRVPAkp0YT Hi Eric, Eric S Fraga writes: > line 1696 of ox-html.el (up to date version on git) is: > > :alt (if (string-match-p "^ltxpng/" source) > > I wonder whether "^ltxpng" should actually be "^ltximg"? > > Better yet, should it not be built from the value of > org-preview-latex-image-directory, defined as a custom variable and used > in one place in ox-html? Or have I confused two different aspects of > LaTeX images? I'm asking because the hardcoded pattern doesn't pick up > the alt= text for accessibility in HTML export of LaTeX fragments. I think using `org-preview-latex-image-directory' is the way to go. I did this in 9ad3606bf in the master branch. If you have a chance to test and confirm the fix, that'd help. Thanks, -- Bastien