Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--gladtex should not be deprecated #4607

Closed
humenda opened this issue Apr 28, 2018 · 6 comments
Closed

--gladtex should not be deprecated #4607

humenda opened this issue Apr 28, 2018 · 6 comments

Comments

@humenda
Copy link
Contributor

humenda commented Apr 28, 2018

Hi

Pandoc reports --gladtex as deprecated option and the release notes flag it as "ancient". Though it is not the most modern approach, it is one of the few approaches accessible to both (blind) screen reader users and sighted users at the same time, for instance when working collaboratively on a machine. This is one of the reasons why it is really easy to read Wikipedia articles with a screen reader, because formulas are rendered as image (and as LaTeX in the alt tag, at the same time).

As a side note, I'm aware that some accessibility exists for MathJS, but this doesn't really work with braille displays. Despite, GladTeX is still active.

I therefore request to exclude GladTeX from the list of deprecated flags.

Thanks

@jgm
Copy link
Owner

jgm commented May 2, 2018

because formulas are rendered as image (and as LaTeX in the alt tag, at the same time).

The same is true for --webtex, which is still supported:

% pandoc --webtex
$e^2$
<p><img style="vertical-align:middle" src="https://latex.codecogs.com/png.latex?e%5E2" alt="e^2" title="e^2" /></p>

If you want something that will work offline, you can use --self-contained with this and get:

<p><img style="vertical-align:middle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQBAMAAADUulMJAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAZom7MkTNEO+ZIlR2q912Xf9AAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAXUlEQVQIHWNgAALuQxNAFEMNwyUwHcYgBqa5GDTBNAPDKwjNGwChj3CBae7taxgYGAUV1v//xMBgyOAKEmRKYFcH0RwTBQtAdP0CEAmkCxjYQTRbAIMIiGZXBMsDAMJeDuhZ3lkvAAAAAElFTkSuQmCC" alt="e^2" title="e^2" /></p>

@link2xt
Copy link
Collaborator

link2xt commented May 2, 2018

But doesn't webtex require internet access, using non-free service and submitting your data to third party? I think some standalone option to converting math to images should be left.

@jgm
Copy link
Owner

jgm commented May 3, 2018 via email

@humenda
Copy link
Contributor Author

humenda commented May 4, 2018 via email

@jgm
Copy link
Owner

jgm commented May 9, 2018

It would have been helpful if you'd made this request when gladtex support was deprecated (six months ago). Now that it has been removed, it is harder to restore, but I can do it.

@jgm jgm closed this as completed in b7356d3 May 9, 2018
@humenda
Copy link
Contributor Author

humenda commented May 9, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants