我有一个格式的文件,bibtex
其中包含如下记录:
@BOOK{11980,
author = "French, A. P.",
title = "Vibrations and Waves",
publisher = " ",
year = 1971,
numpages = 327,
language = "english",
edition = " ",
}
我也想使用它biblatex
biber
,但biblatex
理解pagetotal
为 entry 而不是numpages
。如何numpages->pagetotal
在不更改.bib
-file 的情况下重新定义
我的 MuWE:
\documentclass[11pt, a4paper]{article}
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{csquotes}
\usepackage{selinput}
\SelectInputEncodingList{utf8,cp1251}
\inputencoding{utf8}
\usepackage[russian]{babel}
\usepackage[mis]{xecyr}
\setmainfont{Times New Roman}
\newfontfamily\cyrillicfont{Times New Roman}
\DeclareRobustCommand{\No}{\ifmmode{\nfss@text{\textnumero}}\else\textnumero\fi}
\usepackage[%
backend=biber,
bibstyle=gost-numeric,
language=auto,
babel=other,
sorting=none,
doi=false,
eprint=true,
isbn=false,
dashed=false,
]{biblatex}
\addbibresource{e:/projects/LaTeX/MyPackage/MyBaseXe.bib}
\DeclareDefaultSourcemap[datatype=bibtex]{%
\map{
\step[fieldsource=numpages, fieldtarget=pagetotal]
}
}
\begin{document}
Some text \cite{LL1,LL2,SivP5, Siv1}.
\printbibliography
\end{document}
我收到错误Undefined control sequence. \DeclareDefaultSourcemap
答案1
根据您的评论,我解决了这个问题。
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=numpages,fieldtarget=pagetotal]
}
}
}