我尝试在文档中使用 Biber 和词汇表,同时使用不同的语言。实际上,一切都运行良好,但它会输出一些错误,这些错误更多的是警告,因为还生成了正确的 PDF。尽管如此,这些错误还是让我在开发环境 Eclipse 和 Texlipse 插件中感到烦恼。
这是我的 MWE:
\documentclass[12pt]{article}
\usepackage{filecontents}
\begin{filecontents*}{superBib.bib}
@book{bohm_sys,
title = {System-Entwicklung in der Wirtschaftsinformatik},
isbn = {978-3-7281-2762-4},
pagetotal = {702},
publisher = {vdf Hochschulverlag {AG}},
author = {Böhm, Rolf},
date = {2002},
langid = {german},
keywords = {Systemdenken}
}
@online{james_scrum_2012,
title = {Scrum Reference Card},
url = {http://scrumreferencecard.com/ScrumReferenceCard.pdf},
titleaddon = {Scrum Reference Card},
type = {Knowledge},
author = {James, Michael},
date = {2012},
keywords = {{SCRUM}}
}
\end{filecontents*}
%% BIBER BibLatex
\usepackage[backend=biber,style=numeric,sorting=ynt, natbib=true]{biblatex}%
\addbibresource{superBib.bib}
\usepackage[ngerman,polish,english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[babel,german=quotes]{csquotes}
\usepackage[T1]{fontenc} %
\usepackage[colorlinks]{hyperref}
\usepackage[acronym,toc,nonumberlist,section]{glossaries}
\makeglossaries
\begin{document}
\selectlanguage{english}
%% Set some Acronyms and Glossary Entries
\newacronym{acr:ram}{RAM}{Random-access memory}
\newacronym{acr:csv}{CSV}{Comma-separated values}
\newglossaryentry{glo:btrat}{name={bitrate},description={It effects the file-size and quality of a video}}
\newglossaryentry{glo:dynamicweb}{name={dynamic website},description={server generated code}}
\newglossaryentry{glo:staticweb}{name={static website},description={hard coded content, server just delivers the document}}
%% Print Acronym and Glossary
\printglossary[type=\acronymtype,style=list, title=List of Abbreviations, toctitle=List of Abbreviations]
\glsaddall[types=main] %added all defined Glossentries
\printglossary[type=main,style=altlist, title=Glossary, toctitle=Glossary]
\printbibliography[heading=bibintoc,title={Bibliography}]
\section{Cites}
Hello \citet{james_scrum_2012} and another \parencite{bohm_sys}
\section{Acr and Glo}
% Here we use \gls{acr:ram} and followed by a GlossaryEntry: \gls{glo:btrat}
\selectlanguage{ngerman}
Hallo Welt
\end{document}
一些错误信息:
! Missing \endcsname inserted.
<to be read again>
\bbl@loaded
l.47 \begin{document}
! Extra \endcsname.
\cslet ...>\expandafter \let \csname #1\endcsname
#2
l.47 \begin{document}
! Extra \endcsname.
\blx@maplang ...d \csname abx@extras@#2\endcsname
\expandafter \noexpand \cs...
l.47 \begin{document}
! Extra \endcsname.
\blx@maplang ... \csname abx@strings@#2\endcsname
}\csxappto {noextras#1}{\n...
l.47 \begin{document}
("C:\Program Files\MiKTeX 2.9\tex\latex\tools\.tex" File ignored)
! Missing \endcsname inserted.
<to be read again>
\bbl@loaded
l.47 \begin{document}
如果你取消注释属于词汇表的所有内容,则会出现一个警告
! Undefined control sequence.
<argument> ...docsvlist \expandafter {\bbl@loaded
}\ifboolexpr { not test {\...
l.47 \begin{document}
Babel 包可能是罪魁祸首吗?
我正在使用一个小的批处理文件来生成输出 - 一般步骤是:
pdflatex
makeindex -q -s *.ist -t *.alg -o *.acr *.acn
makeindex -q -s *.ist -t *.glg -o *.gls *.glo
比伯
pdflatex
pdflatex
编辑:解决方案是更新
这babel
太旧了 - 使用MikTeX 更新管理器而不是包管理器现在一切都好了!