梅威瑟:
\documentclass{scrartcl}
\usepackage{csquotes}
\usepackage[
backend = biber,
sortlocale = auto,
sorting = nty,
style = authoryear-comp
]{biblatex}
\begin{filecontents}{\jobname.bib}
@book{
Sur,
author = {Surname, Name},
editor = {Test e.\,V.},
title = {Title},
year = {2000},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Test \autocite[1]{Sur}.
\printbibliography
\end{document}
错误日志(bbl
文件):
% $ biblatex auxiliary file $
% $ biblatex bbl format version 2.9 $
% Do not modify the above lines!
% This is an auxiliary file used by the 'biblatex' package.
% This file may safely be deleted. It will be recreated by
% biber as required.
\begingroup
\makeatletter
\@ifundefined{[email protected]}
{\@latex@error
{Missing 'biblatex' package}
{The bibliography requires the 'biblatex' package.}
\aftergroup\endinput}
{}
\endgroup
\refsection{0}
\datalist[entry]{nty/global//global/global}
\entry{Sur}{book}{}
\name{author}{1}{}{%
{{uniquename=0,uniquepart=base,hash=4bb983b68767bfb7760064c0db4691d7}{%
family={Surname},
familyi={S\bibinitperiod},
given={Name},
giveni={N\bibinitperiod},
givenun=0}}%
}
\name{editor}{1}{}{%
{{hash=f67e6b7b9d22061314a9ed21f1590418}{%
family={Test\bibnamedelima e.\},
familyi={T\bibinitperiod\bibinitdelim e\bibinitperiod},
given={V.},
giveni={V\bibinitperiod}}}%
}
\strng{namehash}{4bb983b68767bfb7760064c0db4691d7}
\strng{fullhash}{4bb983b68767bfb7760064c0db4691d7}
\strng{bibnamehash}{4bb983b68767bfb7760064c0db4691d7}
\strng{authorbibnamehash}{4bb983b68767bfb7760064c0db4691d7}
\strng{authornamehash}{4bb983b68767bfb7760064c0db4691d7}
\strng{authorfullhash}{4bb983b68767bfb7760064c0db4691d7}
\strng{editorbibnamehash}{f67e6b7b9d22061314a9ed21f1590418}
\strng{editornamehash}{f67e6b7b9d22061314a9ed21f1590418}
\strng{editorfullhash}{f67e6b7b9d22061314a9ed21f1590418}
\field{sortinit}{S}
\field{sortinithash}{322b1d5276f2f6c1bccdcd15920dbee6}
\field{extradatescope}{labelyear}
\field{labeldatesource}{year}
\field{labelnamesource}{author}
\field{labeltitlesource}{title}
\field{title}{Title}
\field{year}{2000}
\endentry
\enddatalist
\endrefsection
\endinput
\,
文件中不允许或者bib
存在错误?
提前感谢您的帮助和努力!
答案1
biblatex
有自己的宏。从其文档中:
\documentclass{scrartcl}
\usepackage{csquotes}
\usepackage[
backend = biber,
sortlocale = auto,
sorting = nty,
style = authoryear-comp
]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{
Sur,
author = {Surname, Name},
editor = {{Test e.\addnbthinspace{}V.}},
title = {Title},
year = {2000},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
Test \autocite[1]{Sur}.
\printbibliography
\end{document}
请注意,biblatex
在 .bib 文件中使用特定命令意味着 .bib 文件只能与biblatex
其他书目工具一起使用,并且不再兼容