-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unexpected WORD_REPEAT_RULE on big multiline formulas with aligned #83
Comments
I guess the reason is |
Thanks for observing this. You are the first who comments on the equation parsing. :) My assumption is as follows. In order to shift the '+' operators on the second and third line to the right, you write
I have used the pure yalafi filter on your example, changed to this style (still with the nested aligned environment). The result is
A minor remark: you say '+' at the end of the line and repeat it at the beginning of the next one. Is this intentional? |
I think both ways of using I intentionally place Do we really need to have several lines after YaLafi parsing from one |
Yes, agreed. I just took my style from examples in the amsmath documentation.
I used it in my documents to find punctuation problems. For instance, if you have two equations in one align block, then there should be a comma after the first equation. See the section in README. Was always wondering whether this might be too sophisticated for other people. A simpler version that only extracts trailing punctuation is here. At least in German, it is really helpful, as it helps LT to check whether a sentence is properly terminated before starting the next one. One could provide an option for yalafi to turn on this simpler behaviour for displayed equations. This should insert rotating replacements like V-V-V with appended extracted trailing punctuation. |
It's not clear for me. Is it issue what I've found or it's normal behavior? By the way, look at the output:
it contains |
It's the currently expected behaviour. I agree with you that the detailed equation parsing may be a bit overdone, as it is based on my personal style for displayed equations. What do you think of the yalafi / yalafi.shell option proposed above that will condense the whole displayed equation into one single replacement like V-V-V, with added punctuation if present? You can temporarily fix the current status with the hack described here. If you write
in your document preamble and
then this should suppress the warning. While LeTeX ignores the argument of \LTadd, yalafi includes it during equation parsing.
Yes, the base yalafi filter does not yet support '--lang ru', so it takes 'en' as default. I'll open a new issue for that. |
I have a latex-file with math formulas
For example I have equation:
and yalafi yields WORD_REPEAT_RULE on this line:
The text was updated successfully, but these errors were encountered: