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

Can't use mathematics notation in prefixes #49

Closed
kotobuki opened this issue Nov 18, 2023 · 1 comment
Closed

Can't use mathematics notation in prefixes #49

kotobuki opened this issue Nov 18, 2023 · 1 comment

Comments

@kotobuki
Copy link

First of all, thank you very much for creating and maintaining such a helpful tool. I would like to report a bug as follows.

Describe the bug
It's not possible to use mathematics notation in prefixes.

Additional information

  • TeX distribution: TeX Live 2023
  • Package citation-style-language version: 0.4.5
  • LaTeX engine: xelatex

To Reproduce

\documentclass{article}

\begin{filecontents}[overwrite, noheader]{\jobname.json}
[
    {
        "id": "ITEM-1",
        "type": "book",
        "author": [
            {
                "family": "D’Arcus",
                "given": "Bruce"
            }
        ],
        "issued": {
            "date-parts": [
                [
                    2005
                ]
            ]
        },
        "publisher": "Routledge",
        "title": "Boundaries of dissent: Protest and state power in the media age"
    }
]
\end{filecontents}

\usepackage[style = apa]{citation-style-language}
\addbibresource{\jobname.json}
\usepackage{hyperref}

\begin{document}
\cite[prefix = {That typically happens in 10$^{-15}$ seconds. See }]{ITEM-1}

\printbibliography
\end{document}
...exmf/scripts/citation-style-language/citeproc-output.lua:1981: bad argument #1 to 'gsub' (string expected, got table)
@zepinglee
Copy link
Owner

Thanks for your report and this is fixed in 7f295a5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants