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

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

Closed
nickw2066 opened this issue Jul 9, 2024 · 3 comments
Closed

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

nickw2066 opened this issue Jul 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@nickw2066
Copy link

nickw2066 commented Jul 9, 2024

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

Additional information

  • TeX distribution: MacTeX 2024
  • Package citation-style-language version: v0.5.0
  • LaTeX engine: lualatex

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
Copy link
Owner

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

@nickw2066
Copy link
Author

Yes

@zepinglee
Copy link
Owner

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

@zepinglee zepinglee added the bug Something isn't working label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants