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

Compatibility Issue with TeX Live 2024: \refcmpd before \cmpd Causes Compilation Failure #26

Open
pikakolendo02 opened this issue Jan 9, 2025 · 0 comments

Comments

@pikakolendo02
Copy link

Description

The chemnum package exhibits a compatibility issue in TeX Live 2024 when using \refcmpd before \cmpd. While the same code compiles successfully in TeX Live 2022, it fails in TeX Live 2024 with the following error:

! File ended while scanning use of __prop_map_tokens:nw. \par <*> main.tex

This issue seems related to changes in the LaTeX3 (expl3) programming layer introduced in newer LaTeX kernel versions.

Example Code

This minimal code works fine in TeX Live 2022 (with pdflatex or xelatex) but fails in TeX Live 2024:

\documentclass{article}
\usepackage{chemnum}

\title{chemnum test}

\begin{document}

\maketitle

\section{}
\refcmpd{test}, \cmpd{test}

\end{document}

Here is an excerpt of the error log from TeX Live 2024:

! File ended while scanning use of \__prop_map_tokens:nw.
<inserted text> 
                \par 
<*> main.tex
            
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
<*> main.tex
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

1 participant