Skip to content

fix: replace quarks in stroichiometry parsing#23

Open
disidrosi wants to merge 1 commit into
cgnieder:masterfrom
disidrosi:master
Open

fix: replace quarks in stroichiometry parsing#23
disidrosi wants to merge 1 commit into
cgnieder:masterfrom
disidrosi:master

Conversation

@disidrosi

Copy link
Copy Markdown

Replace \q_mark with \s_stop in \__chemformula_parse_stoich:w and l__chemformula_stoich_tl to prevent infinite expansion loops during chemical formula compilation. Scan marks are safer as they expand to \scan_stop: rather than themselves.

Fixes compilation error: "Argument of \use_non:n has an extra }"

Credit: Fix provided by jlab on Stack Exchange
https://tex.stackexchange.com/a/746654/148997

Replace `\q_mark` with `\s_stop` in `\__chemformula_parse_stoich:w` and
`l__chemformula_stoich_tl` to prevent infinite expansion loops during
chemical formula compilation. Scan marks are safer as they expand to
`\scan_stop:` rather than themselves.

Fixes compilation error: "Argument of \use_non:n has an extra }"

Credit: Fix provided by jlab on Stack Exchange
https://tex.stackexchange.com/a/746654/148997
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

Successfully merging this pull request may close these issues.

1 participant