![在希伯来语文档中查看棋盘时出现问题](https://linux22.com/image/428444/%E5%9C%A8%E5%B8%8C%E4%BC%AF%E6%9D%A5%E8%AF%AD%E6%96%87%E6%A1%A3%E4%B8%AD%E6%9F%A5%E7%9C%8B%E6%A3%8B%E7%9B%98%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
正如您所见,它是相反的......
以下是 MWE:
\documentclass[hebrew,english]{scrartcl}
\usepackage{fontspec}
\makeatletter
\newfontfamily\hebrewfont[Script=Hebrew]{Arial}
\newfontfamily\hebrewfonttt[Script=Hebrew]{Arial}
\newfontfamily\hebrewfontsf[Script=Hebrew]{Arial}
\usepackage{skak}
\makeatother
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\begin{document}
\newgame
\showboard
\par
\end{document}
你知道如何正确显示棋盘吗?(用希伯来语或其他 RTL 文档)。
谢谢你!
答案1
您可以将棋盘包裹在\begin{english}
和中\end{english}
。
\documentclass[hebrew,english]{scrartcl}
\usepackage{fontspec}
\makeatletter
\newfontfamily\hebrewfont[Script=Hebrew]{Arial}
\newfontfamily\hebrewfonttt[Script=Hebrew]{Arial}
\newfontfamily\hebrewfontsf[Script=Hebrew]{Arial}
\usepackage{skak}
\makeatother
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\begin{document}
\begin{english}
\newgame
\showboard
\par
\end{english}
\end{document}