I am using babel to typeset a book with English as the main language and Arabic as the second language. I want to have the title ant the author written in both English and Arabic. However, the author looks really weird.
The English is supposed to be on the left and the Arabic is supposed to be on the right. Furthermore, why are the letters in the opposite order? Here is a minimal working example:
\documentclass{book}
\usepackage[bidi=basic]{babel}
\babelprovide[main, import]{english}
\babelprovide[onchar = ids fonts]{arabic}
\babelfont{rm}[Ligatures = TeX]{STIX Two Text}
\babelfont[arabic]{rm}[Renderer = HarfBuzz, Scale = MatchLowercase]{Kitab}
\title{Title لقب}
\author{Author مؤلف}
\begin{document}
\maketitle
\end{document}
bidi=basic
tobidi=bidi-l
almost works, but it breaks sectioning. (As of January 2023.)\author
in bidireectional documents?tabular
, which enters in math mode. This MWE works fine in TeXLive 2021, so it’s a recent bug, which can be reproduced with\begin{tabular}[t]{c} Author مؤلف \end{tabular}
. As a workaround, use a couple of boxes:\mbox{Author} \mbox{مؤلف}
.\begin{tabular}[t]{c|} Author مؤلف \end{tabular}
the vrule appear on the left of the text.\mbox{}
workaround works for me.