Abhi-1U / texor

Converting 'LaTeX' 'R Journal' Articles into 'RJ-web-articles'
https://abhi-1u.github.io/texor/
Other
7 stars 2 forks source link

JG: No alt text for included graphics (converted from PDF to PNG) #59

Closed hturner closed 1 year ago

hturner commented 1 year ago

Comment from @ajrgodfrey

There is no alt attribute for <img> tags when a PDF included with \includegraphics has been converted to an <img> tag including a PNG. In this case there should be a default alt text, e.g. alt = "graphic without alt text".

Example: RJ-2009-015

Also: is it necessary to use <div class="center"> here, or could this be done with CSS on the image?

Abhi-1U commented 1 year ago

Given, existing figures are setting alt-text as captions or image would it be better if all legacy articles left to be converted to have alt = "graphic without alt text" text as the default value, unless it is changed in the Rmd? I can set the attribute for this in the texor package as a default value, it will override the caption being a part of the alt text as well in this case.

Abhi-1U commented 1 year ago

Try out this commit https://github.com/Abhi-1U/texor/commit/31c3714e0ef0194c4dc9c26c782709b0987e2509 on the supplement material of figures.

hturner commented 1 year ago

Your commit may also fix https://github.com/Abhi-1U/texor/issues/64?