zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL) for use with LaTeX
MIT License
66 stars 8 forks source link

"\ " causing problem with embedded \emph? #67

Closed nickw2066 closed 3 months ago

nickw2066 commented 4 months ago

Describe the bug It seems "\ " causes a problem with embedded \emph within the \cite options. See below.

Additional information

To Reproduce

% !TEX encoding = UTF-8 Unicode
\documentclass{article}

\begin{filecontents}[overwrite, noheader]{\jobname.json}
[
    {
        "id": "Hardy2019-Gemsfr",
        "type": "book",
        "author": [
            {
                "family": "Hardy",
                "given": "H. H.",
                "suffix": "II"
            }
        ],
        "title": "Exegetical Gems from Biblical Hebrew: A Refreshing Guide to Grammar and Interpretation",
        "title-short": "Gems from Biblical Hebrew",
        "publisher-place": "Grand Rapids, MI",
        "publisher": "Baker Academic",
        "issued": {
            "date-parts": [
                [
                    "2019"
                ]
            ]
        }
    }
]
\end{filecontents}

\usepackage{citation-style-language}
\cslsetup{style = chicago-fullnote-bibliography}
\addbibresource{\jobname.json}

\begin{document}

\dots\ dalam Kej.\ 8:11 sebagai penanda keterkejutan:
``\emph{The dove returned to him
at sunset, \emph{and incredibly}, a fresh-picked olive branch
was in its mouth!}''\cite[prefix = {\dots\ dalam Kej.\ 8:11
sebagai penanda keterkejutan: ``\emph{The dove returned to him
at sunset, \emph{and incredibly}, a fresh-picked olive branch
was in its mouth!}''; lihat },
page = {194 (tekanan saya)}]{Hardy2019-Gemsfr}

\end{document}

Screenshots Main text:

Screenshot 2024-07-09 at 12 21 04 PM

Citation:

Screenshot 2024-07-09 at 12 21 10 PM
zepinglee commented 4 months ago

Are you referring to the italic "and incredibly" in the footnote which is expected to be upright?

nickw2066 commented 4 months ago

Yes

zepinglee commented 4 months ago

Ah it turns out to be a bug in the Lua module and it's fixed in bc67668.