[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug?] should ltxpng be ltximg in ox-html?
From: |
Bastien |
Subject: |
Re: [bug?] should ltxpng be ltximg in ox-html? |
Date: |
Sat, 05 Sep 2020 10:43:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Eric,
Eric S Fraga <e.fraga@ucl.ac.uk> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug?] should ltxpng be ltximg in ox-html?,
Bastien <=