我正在使用 MacTex 和 Latexian 撰写论文。我将其用于biblatex
参考书目,一切都运行良好,直到我发现我可以使用 更改字母标签/DeclareLabelalphaTemplate
。我从这里得到了这个想法:Biblatex 字母风格,如 [Smith, 2005]
因为这在我的论文和上面发布的问题的答案的最小示例中只产生了“未知的控制序列”。以下是基于上述问题以及我在论文中使用的内容的示例:
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\listfiles
\usepackage[backend=biber,style=alphabetic,maxalphanames=1]{biblatex}
\addbibresource{testbib.bib}
\renewcommand*{\labelalphaothers}{}
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field{labelname}
\field{label}
}
\labelelement{
\literal{,\addhighpenspace}
}
\labelelement{
\field{year}
}
}
\begin{document}
\cite{Leroy1978a,Leroy1978b}
\citeauthor{Witt1991}
\footcite{Schmidt-Ott1993}
\printbibliography
\end{document}
testbib.bib 包含:
@article{Leroy1978a,
author = {Leroy, Rodney L.},
journal = {Corrosion-NACE},
keywords = {Inhibitor,Zink},
mendeley-tags = {Inhibitor,Zink},
number = {3},
pages = {98--109},
title = {{Chelate Inhibitors for Zinc and Galvanized Products}},
volume = {34},
year = {1978}
}
@article{Leroy1978b,
author = {Leroy, Rodney L.},
journal = {Corrosion-NACE},
keywords = {Inhibitor,Zink},
mendeley-tags = {Inhibitor,Zink},
number = {4},
pages = {113--119},
title = {{Polythioglycolate Passivation of Zinc}},
volume = {34},
year = {1978}
}
@book{Witt1991,
address = {D\"{u}sseldorf},
author = {Witt, C. A.},
edition = {2. Auflage},
isbn = {3870171715},
keywords = {Inhibitor,Zink},
mendeley-tags = {Inhibitor,Zink},
publisher = {Aluminium-Verlag},
title = {{Korrosionsinhibitoren f\"{u}r Aluminium, Blei, Kupfer und Zink}},
year = {1991}
}
@phdthesis{Schmidt-Ott1993,
author = {Schmidt-Ott, K.},
school = {Staatliche Akademie der Bildenden K\"{u}nste Stuttgart},
title = {{Reinigung von Silberoberfl\"{a}chen}},
type = {Diplomarbeit},
year = {1993}
}
我尝试通过从 1.7 更新到 2.2 并将 biber 更新到 1.2 来解决这个问题biblatex
。现在我不再收到“未知控制序列”,但我也没有任何参考书目。我的引文现在被打印为引文键。包括文件列表的日志文件显示:
*File List*
scrartcl.cls 2012/07/29 v3.11b KOMA-Script document class (article)
scrkbase.sty 2012/07/29 v3.11b KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
scrbase.sty 2012/07/29 v3.11b KOMA-Script package (KOMA-Script-independent basics and keyval usage)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty 2012/06/15 v3.12 KOMA-Script package (loading files)
tocbasic.sty 2012/04/04 v3.10b KOMA-Script package (handling toc-files)
scrsize11pt.clo 2012/07/29 v3.11b KOMA-Script font size class option (11pt)
typearea.sty 2012/07/29 v3.11b KOMA-Script package (type area)
biblatex.sty 2012/08/17 v2.2 programmable bibliographies (PK/JW/AB)
biblatex2.sty 2012/08/17 v2.2 programmable bibliographies (biber) (PK/JW/AB)
etoolbox.sty 2011/01/03 v2.1 e-TeX tools for LaTeX
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)
ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO)
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)
etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
logreq.sty 2010/08/04 v1.0 xml request logger
logreq.def 2010/08/04 v1.0 logreq spec v1.0
ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
blx-dm.def
alphabetic.dbx
biblatex-dm.cfg
blx-compat.def 2012/08/17 v2.2 biblatex compatibility (PK/JW/AB)
biblatex.def
standard.bbx 2012/08/17 v2.2 biblatex bibliography style (PK/JW/AB)
alphabetic.bbx 2012/08/17 v2.2 biblatex bibliography style (PK/JW/AB)
alphabetic.cbx 2012/08/17 v2.2 biblatex citation style (PK/JW/AB)
biblatex.cfg
english.lbx 2012/08/17 v2.2 biblatex localization (PK/JW/AB)
TSWLatexianTemp_000053.bbl
***********
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) TSWLatexianTemp_000053
(biblatex) and rerun LaTeX afterwards.
当我biber
手动运行它时,我得到:
ERROR - Cannot find control file 'TSWLatexianTemp_000005.bcf'! -
did you pass the "backend=biber" option to BibLaTeX?
我不知道哪里出了问题,因为bcf
文件与其他文件在同一个文件夹中,而且我使用了backend=biber
。
biblatex
您知道无需降级和不使用即可解决此问题的方法/DeclareLabelalphaTemplate
吗?
答案1
以下是测试的结论(由 Audrey 和 PLK 指导):
问题似乎出在 biblatex 2.2 的 biber 集成上。发布的示例在手动编译时可以运行(latex-run、使用 bcf 文件的 biber-run、latex-run)。它可以与能够使用 biber 的编辑器一起使用,但目前 Latexian 不是其中之一。