Skip to content

caption.sty and caption3.sty breaks hungarian language support

Two lines of caption.sty and caption3.sty breaks hungarian (magyar) documents. I'm using lualatex with texlive 2018, but I think it's the same with others.

Reproduce: use "magyar" default language with \usepackage{caption}

Expected outcome: generate pdf

Actual outcome: lualatex dies with the following error message:

! Undefined control sequence.
<recently read> \addto 
       
l.1167 \caption@tempa{magyar}

What’s the problem: If the following lines are active in the files caption.sty and caption3.sty tex dies:

\caption@tempa{hungarian}%
\caption@tempa{magyar}%

Temporary fix: If I comment out the offending lines, the compilation runs successfully.