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

Fix space-separated single character commands #71

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lluchs
Copy link

@lluchs lluchs commented Feb 25, 2025

These commits fix the handling of single-character commands with a letter.

First, \b would usually not produce the correct output, since there are no composed characters with an underline in Unicode.

Second, these commands were only supported with a brace argument, like \c{c}. However, TeX also accepts these with the argument separated with a space, like \c c. This form comes up in the output of zotero-better-bibtex.

There aren't composed characters with underlines in Unicode. For
example, \b{b} should result in "b\u{332}".
TeX commands can accept arguments either with braces (\c{c}) or after a
space (\c c). This commit adds support for the latter style.
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