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

Latex commands spanning multiple lines are broken #174

Open
albertz opened this issue May 30, 2021 · 1 comment
Open

Latex commands spanning multiple lines are broken #174

albertz opened this issue May 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@albertz
Copy link
Contributor

albertz commented May 30, 2021

Example:

Done before \cite{paper1,
paper2,
paper3}.

I see that #51 might be related.

@sylvainhalle
Copy link
Owner

The section Helping TeXtidote in the readme alludes to this by saying:

Keep the arguments of a command on a single line.

I think we could replace the regex for citations so that it tolerates spanning over multiple lines, but it should be tested, as the implementation of AnnotatedString, as you point out, is a bit flaky.

@sylvainhalle sylvainhalle added the enhancement New feature or request label Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants