无法构建 biblatex 的 21-indexing-advanced.tex

无法构建 biblatex 的 21-indexing-advanced.tex

我在 Linux 上使用 Texlive 2011,并尝试运行此示例:

ftp://www.ctan.org/ctan/macros/latex2e/exptl/biblatex/doc/examples/21-indexing-advanced.tex

根据建议,我使用以下方法构建:

latex 21-indexing-advanced.tex
bibtex 21-indexing-advanced
latex 21-indexing-advanced.tex

第二次通过时,我得到了这个:

! Missing number, treated as zero.
<to be read again> 
                   \l@german 
l.137 \raggedright

? 

显然,那里缺少了一些东西,但我不知道是什么。有什么帮助吗?


biblatex编辑:该链接可能有些旧,但这是TexLive 2011当前版本中包含的相同示例:

$ MYLOCFILE=$(find /path/to/texlive/ -name 21-indexing-advanced.tex)
$ echo $MYLOCFILE
/path/to/texlive/2011/texmf-dist/doc/latex/biblatex/examples/21-indexing-advanced.tex
$ wget ftp://www.ctan.org/ctan/macros/latex2e/exptl/biblatex/doc/examples/21-indexing-advanced.tex
 ...

$ diff $MYLOCFILE ./21-indexing-advanced.tex
$ # nothing is output => they are identical ... 

日志文件-第一遍:

$ pdflatex 21-indexing-advanced.tex 
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 restricted \write18 enabled.
entering extended mode
(./21-indexing-advanced.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/path/to/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/path/to/texlive/2011/texmf-dist/tex/latex/base/size10.clo))
(/path/to/texlive/2011/texmf-dist/tex/latex/base/fontenc.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/base/t1enc.def))
(/path/to/texlive/2011/texmf-dist/tex/generic/babel/babel.sty
(/path/to/texlive/2011/texmf-dist/tex/generic/babel/english.ldf
(/path/to/texlive/2011/texmf-dist/tex/generic/babel/babel.def)))
(/path/to/texlive/2011/texmf-dist/tex/latex/csquotes/csquotes.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/path/to/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)
(/path/to/texlive/2011/texmf-dist/tex/latex/csquotes/csquotes.def)
(/path/to/texlive/2011/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/logreq/logreq.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/logreq/logreq.def))
(/path/to/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)
(/path/to/texlive/2011/texmf-dist/tex/latex/url/url.sty)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.def)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/authortitle.b
bx
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)
)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/cbx/authortitle.c
bx) (/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.cfg)
) (/path/to/texlive/2011/texmf-dist/tex/latex/index/index.sty

LaTeX Warning: Command \markboth  has changed.
               Check if current package is valid.


LaTeX Warning: Command \markright  has changed.
               Check if current package is valid.

)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/lbx/american.lbx
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/lbx/english.lbx))

No file 21-indexing-advanced.aux.
No file 21-indexing-advanced.bbl.
(/path/to/texlive/2011/texmf-dist/tex/latex/base/t1cmtt.fd)

LaTeX Warning: Citation 'piccato' on page 1 undefined on input line 127.


LaTeX Warning: Citation 'gaonkar' on page 1 undefined on input line 127.


LaTeX Warning: Citation 'malinowski' on page 1 undefined on input line 127.


LaTeX Warning: Citation 'coleridge' on page 1 undefined on input line 127.


LaTeX Warning: Citation 'gerhardt' on page 1 undefined on input line 127.


LaTeX Warning: Citation 'cicero' on page 1 undefined on input line 127.

[1{/path/to/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
]

LaTeX Warning: Empty bibliography on input line 135.

No file 21-indexing-advanced.ind.
No file 21-indexing-advanced.nnd.
No file 21-indexing-advanced.tnd.
(./21-indexing-advanced.aux)

LaTeX Warning: There were undefined references.


Package biblatex Warning: Please (re)run BibTeX on the file(s):
(biblatex)                21-indexing-advanced
(biblatex)                and rerun LaTeX afterwards.

 ) <~/.texlive2011/texmf-var/fonts/pk/ljfour/jknappen/ec/ecrm
1000.600pk> <~/.texlive2011/texmf-var/fonts/pk/ljfour/jknappe
n/ec/ecbx1000.600pk> <~/.texlive2011/texmf-var/fonts/pk/ljfou
r/jknappen/ec/ectt1440.600pk> <~/.texlive2011/texmf-var/fonts
/pk/ljfour/jknappen/ec/ecbx1440.600pk>
Output written on 21-indexing-advanced.pdf (1 page, 12739 bytes).
Transcript written on 21-indexing-advanced.log.

..然后bibtex 21-indexing-advanced——然后第二遍:

$ pdflatex 21-indexing-advanced.tex 
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 restricted \write18 enabled.
entering extended mode
(./21-indexing-advanced.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/path/to/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/path/to/texlive/2011/texmf-dist/tex/latex/base/size10.clo))
(/path/to/texlive/2011/texmf-dist/tex/latex/base/fontenc.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/base/t1enc.def))
(/path/to/texlive/2011/texmf-dist/tex/generic/babel/babel.sty
(/path/to/texlive/2011/texmf-dist/tex/generic/babel/english.ldf
(/path/to/texlive/2011/texmf-dist/tex/generic/babel/babel.def)))
(/path/to/texlive/2011/texmf-dist/tex/latex/csquotes/csquotes.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/path/to/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)
(/path/to/texlive/2011/texmf-dist/tex/latex/csquotes/csquotes.def)
(/path/to/texlive/2011/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/logreq/logreq.sty
(/path/to/texlive/2011/texmf-dist/tex/latex/logreq/logreq.def))
(/path/to/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)
(/path/to/texlive/2011/texmf-dist/tex/latex/url/url.sty)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.def)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/authortitle.b
bx
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)
)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/cbx/authortitle.c
bx) (/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.cfg)
) (/path/to/texlive/2011/texmf-dist/tex/latex/index/index.sty

LaTeX Warning: Command \markboth  has changed.
               Check if current package is valid.


LaTeX Warning: Command \markright  has changed.
               Check if current package is valid.

)
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/lbx/american.lbx
(/path/to/texlive/2011/texmf-dist/tex/latex/biblatex/lbx/english.lbx))
 (./21-indexing-advanced.aux) (./21-indexing-advanced.bbl)

Package biblatex Warning: backend=biber required by .bib file.
(biblatex)                Some features may not work properly.

(/path/to/texlive/2011/texmf-dist/tex/latex/base/t1cmtt.fd) [1{/path/to/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
Overfull \hbox (18.58575pt too wide) in paragraph at lines 137--137
\T1/cmr/m/n/10 (1961), pp. 579^^U588[][]; Wein-berg, Steven. ^^P  A Model of Le
p-tons.^^Q In: \T1/cmr/m/it/10 Phys. Rev. Lett.

Overfull \hbox (15.22781pt too wide) in paragraph at lines 137--137
\T1/cmr/m/n/10 rated Pd-N-heterocyclic car-benes in Mizoroki-Heck re-ac-tions.^
^Q In: \T1/cmr/m/it/10 J. Organomet.
! Missing number, treated as zero.
<to be read again> 
                   \l@german 
l.137 \raggedright

? 

答案1

该示例biblatex使用选项设置加载babel=hyphen并发出\nocite{*}。因此参考书目将biblatex-examples.bib根据字段中指示的模式将每个条目连字符化hyphenation。错误

! Missing number, treated as zero.
<to be read again> 
                   \l@german

发生这种情况是因为至少有一个条目有hyphenation = {german}而你没有德语连字模式安装。下一个版本将发出警告:

Package biblatex Warning: No hyphenation patterns for 'german'

该示例也得到了改进,以避免在日志文件中出现\markboth/警告消息。\markright

相关内容