我正在使用 Arch Linux,但我从网络安装了 TeX Live,这样我就可以使用它tlmgr
来安装一组最少的软件包,并且可以根据需要添加它们。
这是一个.tex
文件:
\documentclass{minimal}
\usepackage{fontspec}
\begin{document}
Forsan et haec olim meminisse iuvabit.
\end{document}
尝试在其上运行 XeLaTeX 时出现以下问题:
! LaTeX Error: File `ifpdf.sty' not found.
如果我运行:
tlmgr install ifpdf
我得到:
package ifpdf not present in package repository.
我不确定如何进行,并且有几个相关问题:
tlmgr
只是无法安装依赖项吗?我安装fontspec
时没有问题。如果需要,ifpdf
为什么不安装它fontspec
?既然
ifpdf
看起来是一个合法的包,为什么没有安装呢?有没有更好的方法可以让我自行调查这个问题?
答案1
要找到样式文件所在的 TeXLive 包,请运行
voss@shania:~> tlmgr search ifpdf
iftex - Am I running under pdfTeX, XeTeX or LuaTeX?
oberdiek - A bundle of packages submitted by Heiko Oberdiek.
安装oberdiek
捆绑包即可获得 ifpdf
用作\listfiles
文档的第一行。然后您将在日志文件末尾获得一个文件列表:
*File List*
minimal.cls 2001/05/25 Standard LaTeX minimal class
fontspec.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
expl3.sty 2013/11/19 v4610 L3 Experimental code bundle wrapper
l3names.sty 2012/12/07 v4346 L3 Namespace for primitives
l3bootstrap.sty 2013/07/28 v4581 L3 Experimental bootstrap code
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty 2013/07/28 v4581 L3 Basic definitions
l3expan.sty 2013/08/17 v4584 L3 Argument expansion
l3tl.sty 2013/09/16 v4592 L3 Token lists
l3seq.sty 2013/07/28 v4581 L3 Sequences and stacks
l3int.sty 2013/08/02 v4583 L3 Integers
l3quark.sty 2013/07/21 v4564 L3 Quarks
l3prg.sty 2013/08/25 v4587 L3 Control structures
l3clist.sty 2013/07/28 v4581 L3 Comma separated lists
l3token.sty 2013/08/25 v4587 L3 Experimental token manipulation
l3prop.sty 2013/07/28 v4581 L3 Property lists
l3msg.sty 2013/07/28 v4581 L3 Messages
l3file.sty 2013/10/13 v4596 L3 File and I/O operations
l3skip.sty 2013/07/28 v4581 L3 Dimensions and skips
l3keys.sty 2013/07/28 v4581 L3 Experimental key-value interfaces
l3fp.sty 2013/11/18 v4601 L3 Floating points
l3box.sty 2013/07/28 v4581 L3 Experimental boxes
l3coffins.sty 2012/09/09 v4212 L3 Coffin code layer
l3color.sty 2012/08/29 v4156 L3 Experimental color support
l3luatex.sty 2013/07/28 v4581 L3 Experimental LuaTeX-specific functions
l3candidates.sty 2013/11/18 v4602 L3 Experimental additions to l3kernel
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
xparse.sty 2013/11/19 v4609 L3 Experimental document command parser
fontspec-patches.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTe
X
fixltx2e.sty 2006/09/13 v1.1m fixes to LaTeX
fontspec-xetex.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
fontenc.sty
eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty 2011/09/09 v0.981 provides access to latin accents and many oth
er characters in Unicode lower plane
eu1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
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)
fontspec.cfg
t3cmr.fd 2001/12/31 TIPA font definitions
***********