使用多语种且以希伯来语为第二语言会扰乱对齐环境

使用多语种且以希伯来语为第二语言会扰乱对齐环境

编辑:使用来自 TL 2015 的 xelatex 时出现问题,使用来自 TL 2017 的 xelatex 时一切正常。

这是一个工作示例

\documentclass[]{report}

\usepackage{amsmath}

\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{David CLM}


\begin{document}
\begin{align}
1 + 1 = 2
\\
1 + 2 = 3
\end{align}
\end{document}

对齐环境如下所示 在此处输入图片描述

移除后

 \setotherlanguage{hebrew}

我得到了期望的结果:

在此处输入图片描述

如何使用希伯来语而不弄乱对齐环境的编号?

谢谢你,

吉拉德

答案1

\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{David CLM}

使用最新的 TL2018:

在此处输入图片描述

*File List*
  report.cls    2018/09/03 v1.4i Standard LaTeX document class
  size10.clo    2018/09/03 v1.4i Standard LaTeX file (size option)
 amsmath.sty    2018/12/01 v2.17b AMS math features
 amstext.sty    2000/06/29 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2016/03/08 v2.02 operator names
polyglossia.sty    2018/04/07 v1.43 Alternative to Babel for XeLaTeX and LuaLaT
eX
etoolbox.sty    2018/08/19 v2.5f e-TeX tools for LaTeX (JAW)
makecmds.sty    2009/09/03 v1.0a extra command making commands
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
fontspec.sty    2018/07/30 vv2.6h Font selection for XeLaTeX and LuaLaTeX
  xparse.sty    2018-10-17 L3 Experimental document command parser
   expl3.sty    2019-01-01 L3 programming layer (loader) 
expl3-code.tex    2019-01-01 L3 programming layer 
l3xdvipdfmx.def    
fontspec-xetex.sty    2018/07/30 vv2.6h Font selection for XeLaTeX and LuaLaTeX

 fontenc.sty
   tuenc.def    2018/08/11 v2.0j Standard LaTeX file
fontspec.cfg
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
gloss-english.ldf    polyglossia: module for english
gloss-hebrew.ldf    polyglossia: module for hebrew
hebrewcal.sty    2015/04/17 v2.6 Hebrew calendar for polyglossia (adapted from 
hebcal.sty in Babel)
    bidi.sty    2018/12/11 v35.4 Bidirectional typesetting in plain TeX and LaT
eX
   iftex.sty    2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX,
 and LuaTeX
biditools.sty    2018/12/11 v1.9 Programming tools for bidi package
zref-abspage.sty    2018/11/21 v2.27 Module abspage for zref (HO)
zref-base.sty    2018/11/21 v2.27 Module base for zref (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
kvsetkeys.sty    2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty    2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
kvdefinekeys.sty    2016/05/16 v1.4 Define keys (HO)
pdftexcmds.sty    2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO)
   ifpdf.sty    2018/09/07 v3.3 Provides the ifpdf switch
 auxhook.sty    2016/05/16 v1.4 Hooks for auxiliary files (HO)
atbegshi.sty    2016/06/09 v1.18 At begin shipout hook (HO)
latex-xetex-bidi.def    2018/10/11 v1.3.6 bidi adaptations for `latex.ltx' for 
XeTeX engine
footnote-xetex-bidi.def    2017/08/09 v1.1 bidi footnote macros for XeTeX engin
e
report-xetex-bidi.def    2017/06/09 v0.8 bidi adaptations for standard report c
lass for XeTeX engine
amsmath-xetex-bidi.def    2018/01/08 v1.1 bidi adaptations for amsmath package 
for XeTeX engine
amstext-xetex-bidi.def    2016/09/12 v0.2 bidi adaptations for amstext package 
for XeTeX engine
loadingorder-xetex-bidi.def    2017/12/29 v0.97 making sure that bidi is the la
st package loaded
cal-util.def
babel-hebrewalph.def    2010/03/02 Babel definitions for Hebrew numerals
 Adapted from hebrew.ldf (2005/03/30 v2.3h)
 ***********

相关内容