zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL)
MIT License
62 stars 7 forks source link

New command not working in cite #36

Closed nickw2066 closed 11 months ago

nickw2066 commented 1 year ago

Describe the bug Cite is producing an empty footnote.

Additional information

JSON

[
    {
        "id": "Wallace1996-GreekG",
        "type": "book",
        "author": [
            {
                "family": "Wallace",
                "given": "Daniel B."
            }
        ],
        "title": "Greek Grammar Beyond the Basics: An Exegetical Syntax of the New Testament",
        "title-short": "Greek Grammar",
        "source": "Accordance",
        "publisher-place": "Grand Rapids, MI",
        "publisher": "Zondervan",
        "issued": {
            "date-parts": [
                [
                    "1996"
                ]
            ]
        }
    }
]

No Problem

% !TEX encoding = UTF-8 Unicode
\documentclass[12pt]{article}

\usepackage{citation-style-language}
\cslsetup{style = turabian-fullnote-bibliography}
\addbibresource{myBib.json}

\newcommand{\myCommandToday}{new command}

\begin{document}

Test.\cite[prefix = {new command word.
}, page = {419}]{Wallace1996-GreekG}

\newpage
\printbibliography
\end{document}

Problem

% !TEX encoding = UTF-8 Unicode
\documentclass[12pt]{article}

\usepackage{citation-style-language}
\cslsetup{style = turabian-fullnote-bibliography}
\addbibresource{myBib.json}

\newcommand{\myCommandToday}{new command}

\begin{document}

Test.\cite[prefix = {\myCommandToday word.
}, page = {419}]{Wallace1996-GreekG}

\newpage
\printbibliography
\end{document}
zepinglee commented 1 year ago

@nickw2066 Thanks for your feedback!

This bug should be fixed in 17546ae.

Screenshot 2023-03-30 at 19 33 29
nickw2066 commented 1 year ago

Thank you. Has this update been released yet?

zepinglee commented 1 year ago

Yes, it's in v0.4.0.