-
Notifications
You must be signed in to change notification settings - Fork 35
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
\leqno is broken in r2l paragraphs. #259
Comments
This wouldn’t be the first workaround to fix some issue in luatex math. Currently there is a dirty hack related to |
The only idea I have for a fix is to use Do you think it is too involved for such a small thing? |
@Udi-Fogiel Any answer from luatex-dev? I've devised a pure TeX solution, somewhat ad hoc and hackish, which seems to work, at least in simple cases: \AddBabelHook[hebrew]{equation}{afterextras}{%
\def\beforeequation{%
\vskip-\baselineskip\vskip\abovedisplayskip
\begin{otherlanguage*}{english}\pardir TLT
\def\afterequation{\end{otherlanguage*}}}}
\let\afterequation\relax
\AddBabelHook[english]{equation}{afterextras}{%
\let\beforeequation\relax}
\AddToHook{env/equation/before}{\beforeequation}
\AddToHook{env/equation/after}{\afterequation} Although there are some workarounds in |
This is more a bug in the LuaTeX engine, but babel need to be aware of that (and maybe to find a workaround if it won't be fixed).
Here is a small example
This break files that use r2l script as a second language.
Here is an example using babel
I've sent an email to luatex-dev, I'll update if and when I'll get an answer.
The text was updated successfully, but these errors were encountered: