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

autolang=other causes "\begin{document} ended by \end{otherlanguage}" error #1377

Open
pauloney opened this issue Aug 22, 2024 · 6 comments
Open
Labels
bug fixedindev Fixed in current DEV version

Comments

@pauloney
Copy link
Collaborator

pauloney commented Aug 22, 2024

This is an MWE that works perfectly well in TL'23:

\documentclass{article}
\begin{filecontents*}{\jobname.bib}
@BOOK{Rudin,
    author = {Rudin, W.},
    note = {Also available in Chinese in \textcite{Rudin-chi}},
    pages = {x+342},
    publisher = {McGraw-Hill},
    series = {International Series in Pure and Applied Mathematics},
    title = {Principles of Mathematical Analysis},
    year = {1987},
    langid = {english},
}

@book{Rudin-chi,
     author = {Rudin, W.},
      title = {\textchinese{分析學探源}},
  publisher = {\textchinese{聯經出版事業公司}},
    address = {\textchinese{台北市}},
       note = {English original in \textcite{Rudin}},
       year = {1979},
     langid = {chinese},
}
\end{filecontents*}

\usepackage{polyglossia}
\usepackage{csquotes}
\setmainlanguage{english}
\setotherlanguage{chinese}

\newfontfamily\chinesefont[Script=CJK,Scale=0.9]{Noto Serif CJK JP}

\usepackage[style=authoryear,
            language=auto,
            autolang=other,
            backend=biber]{biblatex}

\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

but after I upgraded today to TL'24, I get:

! LaTeX Error: \begin{document} ended by \end{otherlanguage}.

And removing the \textchinese{} commands to use the "langid" field does not help either. Same error occur.

@moewew
Copy link
Collaborator

moewew commented Aug 23, 2024

I can't test right now because I'm at the wrong computer, but this could be related to #1350 (unfortunately, the solution for #1348 is far from straightforward, so we haven't come round to releasing the fix yet - we probably should, but I'll be pretty busy over the next weeks and away from the right machines).

@pauloney
Copy link
Collaborator Author

pauloney commented Aug 23, 2024 via email

@moewew
Copy link
Collaborator

moewew commented Aug 23, 2024

I think, biblatex v3.20 was released shortly after TeX Live 2024, so you might be lucky here. I didn't check that, though.

@pauloney
Copy link
Collaborator Author

pauloney commented Aug 23, 2024 via email

@moewew
Copy link
Collaborator

moewew commented Aug 26, 2024

Turns out it is not exactly the same issue as #1350 since the problem here is not resolved by the fix for that issue.

@moewew
Copy link
Collaborator

moewew commented Dec 5, 2024

Should hopefully be fixed with bcaa45f.

The problem was similar to #1350, but the fix I initially committed for that issue didn't work here, so I had to redo it.

@moewew moewew changed the title Problem with TL'24 autolang=other causes "\begin{document} ended by \end{otherlanguage}" error Dec 5, 2024
@moewew moewew added the fixedindev Fixed in current DEV version label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixedindev Fixed in current DEV version
Projects
None yet
Development

No branches or pull requests

2 participants