我如何使用多语种来表达右至左文本?

我如何使用多语种来表达右至左文本?

如果我bidi在之前加载包polyglossia,我会收到以下错误:

l.243 \__xpg_at_package_hook:nnn{luabidi}{package/luabidi/after}{%
polyglossia.sty: Missing $ inserted.
<inserted text>
                 $

如果我polyglossia在加载之前加载bidi,或者根本不加载bidi,我会收到以下错误:

test.aux:11: Package polyglossia Error: right-to-left, but (lua)bidi package
was not loaded!.

See the polyglossia package documentation for explanation.

文档中没有提及这个错误polyglossia

梅威瑟:

\documentclass{article}

\usepackage{polyglossia} % Switch these two lines
\usepackage{bidi}        % to see the other error
\usepackage{libertine}

\setmainlanguage{english}
\setotherlanguage{hebrew}

\begin{document}

\begin{hebrew}
    הרצליה ביזנס פארק בניין G קומה 9\\
               רחוב מדינת היהודים 85\\
\end{hebrew}

\end{document}

相关内容