%%%%%%%%%%%%%%%%%% % engine=luatex \pdfoutput=1 \pagedir TRT\bodydir TRT\pardir TRT\textdir TRT $$y=123456789 x^2 \eqno (1)$$ \bye