integr-abile / axessibility

LaTeX package that makes mathematical formulae accessible via screen reader and braille display
14 stars 13 forks source link

axessibility is not compatible with lualatex #22

Open SeSodesa opened 1 year ago

SeSodesa commented 1 year ago

Currently, the package file package/axessibility.sty contains the following line:

https://github.com/integr-abile/axessibility/blob/3e9291689235d35a767ab03d45bbd5b8684423fd/package/axessibility.sty#L350

Not only is the symbol \pdfoptionpdfminorversion deprecated in favour of \pdfminorversion in newer versions of pdflatex, the compiler lualatex does not define either of these symbols. When compiling a document with the line

\RequirePackage[accsupp]{axessibility}

the compilation fails with the error

/usr/local/texlive/2022/texmf-dist/tex/latex/axessibility/axessibility.sty:350:
 Undefined control sequence.
l.350 \pdfoptionpdfminorversion
                             =6

It would be a simple thing to fix this with the package ifluatex, by setting the PDF version with \directlua or other lualatex means, if luatex has been invoked.