XeLaTeX,bidi,hyperref,longtable 冲突

XeLaTeX,bidi,hyperref,longtable 冲突

看一下这个 XeLaTeX 文件:

\documentclass{memoir}
\usepackage{longtable}
\usepackage{hyperref}
\usepackage{bidi}

\begin{document}
  \begin{longtable}{l}
    x
  \end{longtable}
\end{document}

当我尝试编译它时,出现以下错误:

! Undefined control sequence.
<argument> \@currentHref 

l.10   \end{longtable}

如果我从包列表中删除其中一个hyperref或一个,一切都会正常。不幸的是,我需要这两个包。bidi

我能做些什么?

编辑:添加 \listfiles

\listfiles命令给出以下列表:

 *File List*
       x.tex
  memoir.cls    2013/05/30 v3.7b configurable book, report, article document class
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifetex.sty    2011/12/15 v1.2 ifetex
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
   mem10.clo    2008/01/30 v0.3 memoir class 10pt size option
mempatch.sty    2009/07/24 v6.0f Patches for memoir class v1.6180339
longtable.sty    2004/02/01 v4.11 Multi-page Table package (DPC)
hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX
hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
  hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)
 intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)
  bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)
uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)
letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
 hopatch.sty    2012/05/28 v1.2 Wrapper for package hooks (HO)
xcolor-patch.sty    2011/01/30 xcolor patch
atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)
atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)
refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)
 hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
 auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
  pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
memhfixc.sty    2013/05/30 v1.17 nameref/hyperref package fixes for memoir class
  hxetex.def    2012/11/06 v6.83m Hyperref driver for XeTeX
   puenc.def    2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)
stringenc.sty    2011/12/02 v1.10 Convert strings between diff. encodings (HO)
rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
    bidi.sty    2014/02/05 v14.6 Bidirectional typesetting in plain TeX and LaTeX
   iftex.sty    2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX,
 and LuaTeX
biditools.sty    2013/04/10 v0.2 Programming tools for bidi package
zref-abspage.sty    2012/04/04 v2.24 Module abspage for zref (HO)
zref-base.sty    2012/04/04 v2.24 Module base for zref (HO)
latex-xetex-bidi.def    2013/10/10 v1.1.5 bidi adaptations for `latex.ltx' for XeTeX engine
footnote-xetex-bidi.def    2013/04/26 v0.8 bidi footnote macros for XeTeX engine
memoir-xetex-bidi.def    2010/07/25 v0.5 bidi adaptations for memoir class for XeTeX engine
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
   xetex.def    2013/04/29 v0.96 LaTeX color/graphics driver for XeTeX (RRM/JK) 
graphicx-xetex-bidi.def    2012/01/01 v0.4 bidi adaptations for graphicx package for XeTeX engine
hyperref-xetex-bidi.def    2013/04/08 v0.7 bidi adaptations for hyperref package for XeTeX engine
array-xetex-bidi.def    2010/08/01 v0.2b bidi adaptations for array package for XeTeX engine
longtable-xetex-bidi.def    2013/04/01 v0.3 bidi adaptations for longtable package for XeTeX engine
loadingorder-xetex-bidi.def    2013/05/22 v0.95 making sure that bidi is the last package loaded
 nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section
gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)
       x.out
       x.out
se-ascii-print.def    2011/12/02 v1.10 stringenc: Printable ASCII characters
 ***********

答案1

似乎关键的区别在于,在当前的 texlivebidi

Package: bidi 2015/02/17 

您的版本比 旧了一年。您至少应该更新bidi,它显然已经修复了这个问题。

相关内容