accessibility icon indicating copy to clipboard operation
accessibility copied to clipboard

Incompatible with lineno package

Open cfroccajr opened this issue 4 years ago • 4 comments

When I try to load both accessibility and lineno I get this error:

`! LaTeX Error: Command \c@linenumber already defined. Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

l.671 \newcounter{linenumber} % Your command was ignored. Type I to replace it with another command, or to continue without it.`

The error varies depending on which package I load first.

cfroccajr avatar Feb 16 '21 20:02 cfroccajr

I'm hitting this too. It seems like it can be solved by changing the variable name "linecounter" to something non-conflicting at https://github.com/AndyClifton/accessibility/blob/046a20886e2879e4125f7d49e3e7cc8d5dbaae9e/source/v2x/accessibility.dtx#L1160 Are you open to a pull request?

kevinwortman avatar Jul 22 '21 23:07 kevinwortman

Please note the following news entry:

  • 23 Feb 2021: The question of accessibility in PDFs has now been taken up by the LaTeX project in a multiyear project and as a result I am stopping all work on this package and it should be considered "not maintained". See https://www.latex-project.org/publications/indexbytopic/pdf/ for news about progress by the LaTeX project.

car222222 avatar Jul 23 '21 04:07 car222222

I'm hitting this too. It seems like it can be solved by changing the variable name "linecounter" to something non-conflicting at

https://github.com/AndyClifton/accessibility/blob/046a20886e2879e4125f7d49e3e7cc8d5dbaae9e/source/v2x/accessibility.dtx#L1160

Are you open to a pull request?

Hi - yes, @kevinwortman, a pull request would be welcome, at least to record the potential solution.

AndyClifton avatar Jul 25 '21 11:07 AndyClifton

@pelinski - sorry, totally overlooked the PR and have just approved. Could you check out the new master please and see if all is OK?

AndyClifton avatar Jan 17 '23 12:01 AndyClifton