classics 包抛出奇怪的错误消息

classics 包抛出奇怪的错误消息

我无法编译使用 classics 包构建的任何文档,包括包文档源文件。我已在 tex 发行版中正确安装了包 (v0.1 2013/02/02),并尝试使用 pdfTeX 3.1415926-2.5-1.40.14 进行编译。

以下是软件包文档中的一个最小失败示例:

\documentclass[11pt]{article}
\usepackage{classics}
\newclassic{Homer}{#1|:#1}
\begin{document}
\cite[{\Homer{3}[100--2]}]{Odyssey}
\begin{thebibliography}{10}
\bibitem[Od.]{Odyssey} Homer. \textit{Odyssey}.
\end{thebibliography}
\end{document}

当我尝试使用以下方法构建此文件时

latex 测试.tex

我得到:

LaTeX 警告:第 1 页上的引用“Odyssey”在输入行 6 上未定义。

! 未定义的控制序列。\LaTeX3 错误:序列被误用。l.6 \cite[{\Homer{3}[100--2]}]{Odyssey}

如果我尝试强制它完成构建过程,它最终会挂起并显示:

? ! __prg_break 的参数:有一个额外的 }。\par l.6 \cite[{\Homer{3}[100--2]}]{Odyssey}

? 失控的论点? ! 段落在 __prg_break: 完成之前结束。 \par l.6 \cite[{\Homer{3}[100--2]}]{Odyssey}

答案1

最新更新失败,使用稍旧的 TL2013 可以工作,希望约瑟夫明天早上路过...(然后我会删除这个答案)

如果我添加\listfiles到序言中,我得到以下内容,您可能想要与您获得的版本进行比较:

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
classics.sty    2013/02/02 v0.1 Cite classic works
   expl3.sty    2013/07/28 v4582 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/07/24 v4565 L3 Argument expansion
    l3tl.sty    2013/07/28 v4581 L3 Token lists
   l3seq.sty    2013/07/28 v4581 L3 Sequences and stacks
   l3int.sty    2013/07/28 v4581 L3 Integers
 l3quark.sty    2013/07/21 v4564 L3 Quarks
   l3prg.sty    2013/07/28 v4581 L3 Control structures
 l3clist.sty    2013/07/28 v4581 L3 Comma separated lists
 l3token.sty    2013/07/28 v4581 L3 Experimental token manipulation
  l3prop.sty    2013/07/28 v4581 L3 Property lists
   l3msg.sty    2013/07/28 v4581 L3 Messages
  l3file.sty    2013/07/28 v4581 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/07/09 v4521 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/07/24 v4576 L3 Experimental additions to l3kernel
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
  xparse.sty    2013/07/28 v4582 L3 Experimental document command parser
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
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
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)
supp-pdf.mkii
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
 ***********

答案2

2014 年 1 月 6 日对 LaTeX3 树的更新已经解决了这个错误。

相关文件是

l3candidates.dtx 4643 2014-01-06 13:28:06Z

可以通过以下方式查看修正比较 TeX Live 存储库中的版本

这个错误是在\seq_mapthread_function:NNN之前的快照中被修改的。

答案3

这些版本演示了所报告的错误。测试文档是在更新 TeX Live 后 30 秒内编译的。

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2014.1.6)  6 JAN 2014 00:24
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 78 languages loaded.
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
Package: l3bootstrap 2013/12/29 v4629 L3 Experimental bootstrap code
Package: l3names 2013/12/29 v4630 L3 Namespace for primitives
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
Package: expl3 2013/12/31 v4634 L3 Experimental code bundle wrapper
Package: l3basics 2013/07/28 v4581 L3 Basic definitions
Package: l3expan 2013/08/17 v4584 L3 Argument expansion
Package: l3tl 2013/12/27 v4625 L3 Token lists
Package: l3seq 2013/12/14 v4623 L3 Sequences and stacks
Package: l3int 2013/08/02 v4583 L3 Integers
Package: l3quark 2013/12/14 v4623 L3 Quarks
Package: l3prg 2013/08/25 v4587 L3 Control structures
Package: l3clist 2013/07/28 v4581 L3 Comma separated lists
Package: l3token 2013/08/25 v4587 L3 Experimental token manipulation
Package: l3prop 2013/12/14 v4623 L3 Property lists
Package: l3msg 2013/07/28 v4581 L3 Messages
Package: l3file 2013/10/13 v4596 L3 File and I/O operations
Package: l3skip 2013/07/28 v4581 L3 Dimensions and skips
Package: l3keys 2013/12/08 v4614 L3 Experimental key-value interfaces
Package: l3fp 2013/12/31 v4633 L3 Floating points
Package: l3box 2013/07/28 v4581 L3 Experimental boxes
Package: l3coffins 2013/12/14 v4624 L3 Coffin code layer
Package: l3color 2012/08/29 v4156 L3 Experimental color support
Package: l3luatex 2013/07/28 v4581 L3 Experimental LuaTeX-specific functions
Package: l3candidates 2013/12/31 v4633 L3 Experimental additions to l3kernel
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package: xparse 2013/12/31 v4634 L3 Experimental document command parser
Package: classics 2013/02/02 v0.1 Cite classic works
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
[Loading MPS to PDF converter (version 2006.09.02).]
Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX 
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf
Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO)
Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)
Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
Package grfext Info: Graphics extension search list:
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live

那么最近的更新中可能存在错误吗?

相关内容