当我编译以下示例时:
\documentclass[11pt,a4paper,oneside]{book}
\usepackage{caption}
\captionsetup{margin=10pt,font=small,labelfont=bf}
\usepackage[pdftex]{hyperref}
\begin{document}
text
\end{document}
我收到“包标题警告”。最终输出看起来不错,我只是好奇这个警告是什么意思以及如何消除它。
@Martin:\listfiles 给了我这个
*File List*
book.cls 2007/10/19 v1.4h Standard LaTeX document class
bk11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
caption.sty 2009/10/09 v3.1k Customizing captions (AR)
caption3.sty 2009/10/09 v3.1k caption3 kernel (AR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
hyperref.sty 2010/04/17 v6.80x Hypertext links for LaTeX
ltxcmds.sty 2010/04/16 v1.6 LaTeX kernel commands for general use (HO)
kvsetkeys.sty 2010/03/01 v1.9 Key value parser (HO)
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)
etexcmds.sty 2010/01/28 v1.3 Prefix for e-TeX command names (HO)
pdfescape.sty 2010/03/01 v1.9 Provides hex, PDF name and string conversions
(HO)
pdftexcmds.sty 2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
ifpdf.sty 2010/01/28 v2.1 Provides the ifpdf switch (HO)
ifvtex.sty 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
ifxetex.sty 2009/01/23 v0.5 Provides ifxetex conditional
hycolor.sty 2009/12/12 v1.6 Color options of hyperref/bookmark (HO)
xcolor-patch.sty 2009/12/12 xcolor patch
letltxmacro.sty 2008/06/24 v1.3 Let assignment for LaTeX macros (HO)
pd1enc.def 2010/04/17 v6.80x Hyperref: PDFDocEncoding definition (HO)
intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty 2010/02/22 v3.7 Keyval support for LaTeX options (HO)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
bitset.sty 2007/09/28 v1.0 Data type bit set (HO)
bigintcalc.sty 2007/11/11 v1.1 Expandable big integer calculations (HO)
atbegshi.sty 2010/03/25 v1.12 At begin shipout hook (HO)
hpdftex.def 2010/04/17 v6.80x Hyperref driver for pdfTeX
atveryend.sty 2010/03/24 v1.5 Hooks at very end of document (HO)
rerunfilecheck.sty 2010/03/16 v1.6 Rerun checks for auxiliary files (HO)
uniquecounter.sty 2009/12/18 v1.1 Provides unlimited unique counter (HO)
nameref.sty 2010/04/17 v2.39 Cross-referencing by name of section
refcount.sty 2008/08/11 v3.1 Data extraction from references (HO)
gettitlestring.sty 2009/12/18 v1.3 Cleanup title references (HO)
也许该问题是由 6.80x 版本的 hyperref 引起的?
答案1
我联系了 caption 的作者 Axel Sommerfeldt,询问了去年 hyperref v6.79l 中出现的不兼容性问题。Axel 于 1 月发布了 caption 版本 3.1l,解决了这个问题。
答案2
也许您使用的是旧版本的 caption 或 hyperref?编译您的示例时我没有收到任何警告。尝试添加 \listfiles 并与我的系统上运行的文件列表进行比较。
附注:如果您在 pdf 模式下使用 pdftex,则无需为 hyperref 指定 pdftex 驱动程序。
*File List*
book.cls 2007/10/19 v1.4h Standard LaTeX document class
bk11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
caption.sty 2009/10/09 v3.1k Customizing captions (AR)
caption3.sty 2009/10/09 v3.1k caption3 kernel (AR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
hyperref.sty 2009/10/09 v6.79a Hypertext links for LaTeX
ifpdf.sty 2009/04/10 v2.0 Provides the ifpdf switch (HO)
ifvtex.sty 2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)
ifxetex.sty 2009/01/23 v0.5 Provides ifxetex conditional
hycolor.sty 2009/10/02 v1.5 Code for color options of hyperref/bookmark (HO)
xcolor-patch.sty 2009/10/02 xcolor patch
pd1enc.def 2009/10/09 v6.79a Hyperref: PDFDocEncoding definition (HO)
etexcmds.sty 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
infwarerr.sty 2007/09/09 v1.2 Providing info/warning/message (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty 2009/08/13 v3.4 Keyval support for LaTeX options (HO)
kvsetkeys.sty 2009/07/30 v1.5 Key value parser with default handler support (HO)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
bitset.sty 2007/09/28 v1.0 Data type bit set (HO)
intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
bigintcalc.sty 2007/11/11 v1.1 Expandable big integer calculations (HO)
pdftexcmds.sty 2009/09/23 v0.6 LuaTeX support for pdfTeX utility functions (HO)
ifluatex.sty 2009/04/17 v1.2 Provides the ifluatex switch (HO)
ltxcmds.sty 2009/08/05 v1.0 Some LaTeX kernel commands for general use (HO)
atbegshi.sty 2008/07/31 v1.9 At begin shipout hook (HO)
hpdftex.def 2009/10/09 v6.79a Hyperref driver for pdfTeX
nameref.sty 2007/05/29 v2.31 Cross-referencing by name of section
refcount.sty 2008/08/11 v3.1 Data extraction from references (HO)
compendium.out
compendium.out
***********