今天早上,我用待处理的软件包更新更新了本地 MikTeX 发行版。现在,如果页面包含链接,我会看到一个完全蓝色的页面,但只有在使用 XeLaTeX 编译时才会出现这种情况。删除后ocgx2
问题就解决了,但这是我在实际文档中需要的软件包。
我不明白的是,今天早上ocgx2
都没有hyperref
更新,根据包管理器的说法,它们分别是在 1 月初和 1 月底安装的。
有什么方法可以修复这个问题吗?
最小示例:
\documentclass{article}
\usepackage[colorlinks=true,urlcolor=blue]{hyperref}
\usepackage[ocgcolorlinks]{ocgx2}
\begin{document}
\href{http://tex.stackexchange.com}{link}
\end{document}
更新前的结果和更新后使用 LaTeX 编译的结果:
更新后使用 XeLaTeX 编译的结果:
输出\listfiles
:
*File List*
article.cls 2019/12/20 v1.4l Standard LaTeX document class
size10.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
hyperref.sty 2020/01/14 v7.00d Hypertext links for LaTeX
ltxcmds.sty 2019/12/15 v1.24 LaTeX kernel commands for general use (HO)
iftex.sty 2019/11/07 v1.0c TeX engine tests
pdftexcmds.sty 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty 2019/12/03 v1.5 Providing info/warning/error messages (HO)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
kvsetkeys.sty 2019/12/15 v1.18 Key value parser (HO)
kvdefinekeys.sty 2019-12-19 v1.6 Define keys (HO)
pdfescape.sty 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
hycolor.sty 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
letltxmacro.sty 2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
auxhook.sty 2019-12-17 v1.6 Hooks for auxiliary files (HO)
kvoptions.sty 2019/11/29 v3.13 Key value format for package options (HO)
pd1enc.def 2020/01/14 v7.00d Hyperref: PDFDocEncoding definition (HO)
intcalc.sty 2019/12/15 v1.3 Expandable calculations with integers (HO)
etexcmds.sty 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
url.sty 2013/09/16 ver 3.4 Verb mode for urls, etc.
bitset.sty 2019/12/09 v1.3 Handle bit-vector datatype (HO)
bigintcalc.sty 2019/12/15 v1.5 Expandable calculations on big integers (HO)
atbegshi.sty 2019/12/05 v1.19 At begin shipout hook (HO)
hxetex.def 2020/01/14 v7.00d Hyperref driver for XeTeX
puenc.def 2020/01/14 v7.00d Hyperref: PDF Unicode definition (HO)
stringenc.sty 2019/11/29 v1.12 Convert strings between diff. encodings (HO)
rerunfilecheck.sty 2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
atveryend.sty 2019-12-11 v1.11 Hooks at the very end of document (HO)
uniquecounter.sty 2019/12/15 v1.4 Provide unlimited unique counter (HO)
ocgx2.sty 2019/11/07 v0.48 ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx
xparse.sty 2020-02-25 L3 Experimental document command parser
expl3.sty 2020-02-25 L3 programming layer (loader)
l3backend-xdvipdfmx.def 2020-02-23 L3 backend support: xdvipdfmx
l3keys2e.sty 2020-02-25 LaTeX2e option processing using LaTeX3 keys
ocgbase.sty 2019/11/04 v0.17 support package for ocgx2.sty
pdfbase.sty 2020/01/27 v0.36 driver independent access to low-level PDF features
ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions
color.sty 2019/11/23 v1.2a Standard LaTeX Color (DPC)
color.cfg 2016/01/02 v1.6 sample color configuration
xetex.def 2017/06/24 v5.0h Graphics/color driver for xetex
nameref.sty 2019/09/16 v2.46 Cross-referencing by name of section
refcount.sty 2019/12/15 v3.6 Data extraction from label references (HO)
gettitlestring.sty 2019/12/15 v1.6 Cleanup title references (HO)
href.out
href.out
se-ascii-print.def 2019/11/29 v1.12 stringenc: Printable ASCII characters
***********