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

natbibapa option of apacite errors #677

Open
mbertucci47 opened this issue Aug 26, 2024 · 3 comments
Open

natbibapa option of apacite errors #677

mbertucci47 opened this issue Aug 26, 2024 · 3 comments
Labels
currently incompatible package or class package or class that doesn't work with current version of tagging code workaround provided

Comments

@mbertucci47
Copy link
Contributor

mbertucci47 commented Aug 26, 2024

The apacite package mostly looks okay but the natbibapa option errors.

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid}
  }
\documentclass{article}

\usepackage[natbibapa]{apacite}

\title{apacite tagging test}

\begin{document}
text
\end{document}

errors with

! Illegal parameter number in definition of hook 'cmd/@lbibitem/before'.
(hooks)             Offending label: 'latex-lab-testphase-bib'.
@FrankMittelbach FrankMittelbach added the currently incompatible package or class package or class that doesn't work with current version of tagging code label Aug 27, 2024
@u-fischer
Copy link
Member

apacite redefines sometime \@lbibitem so that it no longer has arguments and the hook doesn't like that... This should work

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid}
  }
\documentclass{article}

\makeatletter
\AddToHook{package/apacite/after}{%
 \if@APAC@natbib@apa
  \def\@lbibitem[#1]#2{\NAT@swatrue\orig@nat@@lbibitem[#1]#2}%
 \fi}
\makeatother
\usepackage[natbibapa]{apacite}
\title{apacite tagging test}

\begin{document}
text
\end{document}

@FrankMittelbach
Copy link
Member

maybe this can become partially-compatible given that there is a workaround for the option that doesn't work immediately.

@mbertucci47
Copy link
Contributor Author

It was originally listed in tagging-status.yml as partially-compatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
currently incompatible package or class package or class that doesn't work with current version of tagging code workaround provided
Projects
None yet
Development

No branches or pull requests

4 participants
@FrankMittelbach @u-fischer @mbertucci47 and others