即使这个问题可能会因为太过局部或重复而被关闭这,我觉得这对我这样第一次使用 XeLatex 和 Biber 的人来说很有意义……我正在使用Adrien Friggeri 的简历模板但我尝试了所有方法后总是出现以下错误:
Package keyval Error: sorting undefined.
我在 Ubuntu 13.10 和 Texmaker 4.0.3-2 上安装了 Texlive 2013。我从存储库安装了 texlive-xetex 2013,并在 friggeri-cv.cls 文件中更改了 Helvetica 字体并注释了行 \setmathfont{XITS Math}。
我将 Texlive 中的快速构建更改为 XeLaTex + 查看 PDF。一开始它生成的 PDF 只有警告,而且出版物部分是空的。所以我想我必须安装 biber(也从存储库安装 0.9.9)。
由于我安装了 biber,我在 Texmaker 上遇到了上述错误。我按照这错误仍然存在。我不知道错误来自哪里。
除了使用(非常流行的)Friggeri 模板外,我猜这可能是一个值得关注的普遍问题。我真的很感激有人能给我一些帮助。非常感谢!
编辑:我附上了 @DavidCarlisle 提供的 MWE(见下文)。此示例的错误仍然存在。
%!TEX TS-program = xelatex
\documentclass[]{friggeri-cv}
\listfiles
\addbibresource{bibliography.bib}
\begin{document}
\header{aaa}{bb}
{cc}
\begin{refsection}
\nocite{*}
\printbibliography[sorting=chronological, type=inproceedings, title={local peer-reviewed conferences/proceedings}, keyword={france}, heading=subbibliography]
\end{refsection}
\printbibsection{misc}{other publications}
\printbibsection{report}{research reports}
\end{document}
答案1
如果我更改字体引用,引用的文件将正常工作。您很可能使用了过期的 biblatex。
剪切测试文件(正如你应该发布的)并添加\listfiles
我得到
%!TEX TS-program = xelatex
\documentclass[]{friggeri-cv}
\listfiles
\addbibresource{bibliography.bib}
\begin{document}
\header{aaa}{bb}
{cc}
\begin{refsection}
\nocite{*}
\printbibliography[sorting=chronological, type=inproceedings, title={local peer-reviewed conferences/proceedings}, keyword={france}, heading=subbibliography]
\end{refsection}
\printbibsection{misc}{other publications}
\printbibsection{report}{research reports}
\end{document}
它会产生如下文件列表,请检查您在系统上看到的日期并根据需要更新软件包。
*File List*
friggeri-cv.cls 2012/04/30 CV class
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
xetex.def 2014/04/28 v4.01 LaTeX color/graphics driver for XeTeX (RRM/JK)
fontspec.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
expl3.sty 2014/05/20 v4814 L3 programming layer (loader)
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
expl3-code.tex 2014/05/20 v4814 L3 programming layer
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
xparse.sty 2014/05/05 v4740 L3 Experimental document command parser
fontspec-patches.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTe
X
fixltx2e.sty 2014/05/13 v1.1q fixes to LaTeX
fontspec-xetex.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
fontenc.sty
eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty 2011/09/09 v0.981 provides access to latin accents and many oth
er characters in Unicode lower plane
eu1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern
graphicx.sty 2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 2014/05/08 v1.15 key=value parser (DPC)
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
fontspec.cfg
unicode-math.sty 2013/05/04 v0.7e Unicode maths in XeLaTeX and LuaLaTeX
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
l3keys2e.sty 2014/05/05 v4740 LaTeX2e option processing using LaTeX3 keys
catchfile.sty 2011/03/01 v1.6 Catch the contents of a file (HO)
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)
etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
fix-cm.sty 2014/05/13 v1.1q fixes to LaTeX
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
filehook.sty 2011/10/12 v0.5d Hooks for input files
unicode-math-xetex.sty
unicode-math-table.tex
tikz.sty 2013/12/13 v3.0.0 (rcs-revision 1.142)
pgf.sty 2013/12/18 v3.0.0 (rcs-revision 1.14)
pgfrcs.sty 2013/12/20 v3.0.0 (rcs-revision 1.28)
everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS)
pgfrcs.code.tex
pgfcore.sty 2010/04/11 v3.0.0 (rcs-revision 1.7)
pgfsys.sty 2013/11/30 v3.0.0 (rcs-revision 1.47)
pgfsys.code.tex
pgfsyssoftpath.code.tex 2013/09/09 (rcs-revision 1.9)
pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4)
pgfcore.code.tex
pgfcomp-version-0-65.sty 2007/07/03 v3.0.0 (rcs-revision 1.7)
pgfcomp-version-1-18.sty 2007/07/23 v3.0.0 (rcs-revision 1.1)
pgffor.sty 2013/12/13 v3.0.0 (rcs-revision 1.25)
pgfkeys.sty
pgfkeys.code.tex
pgfmath.sty
pgfmath.code.tex
pgffor.code.tex
tikz.code.tex
parskip.sty 2001/04/09 non-zero parskip adjustments
textpos.sty 2014/01/03 v1.7j
biblatex.sty 2013/11/25 v2.8a programmable bibliographies (PK/JW/AB)
biblatex2.sty 2013/11/25 v2.8a programmable bibliographies (biber) (PK/JW/AB
)
etoolbox.sty 2011/01/03 v2.1 e-TeX tools for LaTeX
kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty 2012/04/25 v1.16 Key value parser (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 2013/09/16 ver 3.4 Verb mode for urls, etc.
blx-dm.def
verbose.dbx
biblatex-dm.cfg
blx-compat.def 2013/11/25 v2.8a biblatex compatibility (PK/JW/AB)
biblatex.def
standard.bbx 2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)
authortitle.bbx 2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)
verbose.bbx 2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)
verbose.cbx 2013/11/25 v2.8a biblatex citation style (PK/JW/AB)
biblatex.cfg
geometry.sty 2010/09/12 v5.6 Page Geometry
ifvtex.sty 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
hyperref.sty 2012/11/06 v6.83m Hypertext links for LaTeX
hobsub-hyperref.sty 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
hobsub.sty 2012/05/28 v1.13 Construct package bundles (HO)
intcalc.sty 2007/09/27 v1.1 Expandable calculations with integers (HO)
kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO)
pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
bigintcalc.sty 2012/04/08 v1.3 Expandable calculations on big integers (HO)
bitset.sty 2011/01/30 v1.1 Handle bit-vector datatype (HO)
uniquecounter.sty 2011/01/30 v1.2 Provide unlimited unique counter (HO)
letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
hopatch.sty 2012/05/28 v1.2 Wrapper for package hooks (HO)
xcolor-patch.sty 2011/01/30 xcolor patch
atveryend.sty 2011/06/30 v1.8 Hooks at the very end of document (HO)
atbegshi.sty 2011/10/05 v1.16 At begin shipout hook (HO)
refcount.sty 2011/10/16 v3.4 Data extraction from label references (HO)
hycolor.sty 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
auxhook.sty 2011/03/04 v1.3 Hooks for auxiliary files (HO)
pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
hxetex.def 2012/11/06 v6.83m Hyperref driver for XeTeX
puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)
stringenc.sty 2011/12/02 v1.10 Convert strings between diff. encodings (HO)
rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
english.lbx 2013/11/25 v2.8a biblatex localization (PK/JW/AB)
t3cmr.fd 2001/12/31 TIPA font definitions
cv.bbl
nameref.sty 2012/10/27 v2.43 Cross-referencing by name of section
gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO)
cv.out
cv.out
se-ascii-print.def 2011/12/02 v1.10 stringenc: Printable ASCII characters
***********
答案2
只需删除排序选择权印刷书目来自弗里格里变种。。IE代替
\newcommand{\printbibsection}[2]{
\begin{refsection}
\nocite{*}
\printbibliography[sorting=chronological, type={#1}, title={#2}, heading=subbibliography]
\end{refsection}
}
\DeclareSortingScheme{chronological}{
\sort[direction=descending]{\field{year}}
\sort[direction=descending]{\field{month}}
}
和
\newcommand{\printbibsection}[2]{
\begin{refsection}
\nocite{*}
\printbibliography[type={#1}, title={#2}, heading=subbibliography]
\end{refsection}
}
同时删除所有使用排序来自 TeX 文件的密钥。