AndyClifton / accessibility

A CTAN-compliant version of the LaTeX `accessibility` package
37 stars 6 forks source link

incompatibility with fancyhdr #14

Open dsavransky opened 4 years ago

dsavransky commented 4 years ago

Describe the bug Setting pagestyle to fancy causes compilation error.

To Reproduce MWE:

\documentclass[11pt,article,oneside,tagged]{article}
\usepackage[left=1in,top=1in,right=1in,bottom=1in,footskip = 0.333in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\pagestyle{fancy} 
\usepackage[tagged, highstructure]{strucPDF}

\begin{document}
test test test
\end{document}

Expected behavior Compiles correctly if \pagestyle{fancy} is commented.

Log messages With \pagestyle{fancy} uncommented produces error:

./test.tex:10: Undefined control sequence.
\\->\let \reserved@e 
                     \relax \let \reserved@f \relax \@ifstar {\let \reserved...
l.10 \end{document}

? 

Tex Installation (please complete the following information):

TheNumberOne commented 3 years ago

I can confirm that this problem still applies to the accessibility package.

AndyClifton commented 3 years ago

Thanks for the report. At the moment I’m just collecting issues pending some other developments.

dfrankdt commented 1 year ago

Any update on this incompatibility?

AndyClifton commented 1 year ago

Hi @dfrankdt - sorry for the delay in replying. I've stopped working on the package as it's basically not possible to implement something effective this way. Any change to the LaTeX kernel or any other package can be a breaking change for this package, and so it's a constant game of catch-up.

Fortunately there's an initiative by the core LaTeX team to introduce native tagging and structure as part of the LaTeX kernel. You can find out more here about the project, and current status is reported here. TL; DR: wait 1-2 years and you'll see PDF tagging automatically.