与我之前提出的问题类似(但不完全相同),我现在遇到一些 bib 项目字段没有显示,即月份、城市和国家
我的喵喵:
\documentclass{book}
\usepackage[backend=bibtex,citestyle=authoryear,
bibstyle=chem-biochem,citetracker=true,
maxcitenames=2,giveninits=false,
maxbibnames=99,isbn=false,url=false,
urldate=comp,natbib=true]{biblatex}
\renewcommand{\mkbibnamefamily}[1]{\textsc{#1}}
\DefineBibliographyStrings{english}{%
andothers = {\em et\addabbrvspace al\adddot}
}
\defbibenvironment{bibliography}
{\list
{}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endlist}
{\item}
\addbibresource{LitDaten.bib}
\usepackage{filecontents}
\begin{filecontents}{LitDaten.bib}
@BOOK{Rost2005,
AUTHOR = {Rost, Detlef H.},
YEAR = {2005},
month = {5},
TITLE = {Interpretation und Bewertung pädagogisch-Studien -
},
EDITION = {2. überarb. u. erw. A.},
ISBN = {978-3-825-28306-3},
PUBLISHER = {Beltz},
city= {kinjuira},
country = {tong},
}
\end{filecontents}
\begin{filecontents}{Datatop.bib}
@BOOK{Jeff2021,
AUTHOR = {Jeff, Jeff H.},
YEAR = {1984},
month ={2},
TITLE = {something important but unseen
},
EDITION = {1283},
ISBN = {123-4-567-78999-0},
PUBLISHER = {penugin},
city= {seatle},
country = {italy},
}
\end{filecontents}
\begin{document}
asdfasdf asd \cite{Rost2005} fasdf asdf \cite{Jeff2021} asdf asdf
\printbibliography[title=Bibliography]
\end{document}
我必须使用
\DeclareBibliographyDriver
包括缺少的 biblabel 字段?
答案1
这里有两件事。首先,city
和country
不是 biblatex 可以识别的字段,因此会被忽略。您有location
。第二是日期格式。样式chem-biochem
设置选项date = year
,您可以使用将其恢复为 biblatex 的默认设置date = comp
。此外,您应该更喜欢 biblatex 日期语法,格式为date = {YYYY-MM},
。
在全:
\documentclass{article}
\usepackage[backend=bibtex,citestyle=authoryear,
bibstyle=chem-biochem,citetracker=true,
maxcitenames=2,giveninits=false,
maxbibnames=99,isbn=false,url=false,
urldate=comp,natbib=true,date=comp]{biblatex}
\renewcommand{\mkbibnamefamily}[1]{\textsc{#1}}
\DefineBibliographyStrings{english}{%
andothers = {\em et\addabbrvspace al\adddot}
}
\defbibenvironment{bibliography}
{\list
{}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endlist}
{\item}
\addbibresource{LitDaten.bib}
\usepackage{filecontents}
\begin{filecontents}{LitDaten.bib}
@BOOK{Rost2005,
AUTHOR = {Rost, Detlef H.},
date = {2005-05},
TITLE = {Interpretation und Bewertung pädagogisch-Studien},
EDITION = {2. überarb. u. erw. A.},
ISBN = {978-3-825-28306-3},
PUBLISHER = {Beltz},
location = {Kinjuira, Tong},
}
@BOOK{Jeff2021,
AUTHOR = {Jeff, Jeff H.},
date = {1984-02},
TITLE = {something important but unseen},
EDITION = {1283},
ISBN = {123-4-567-78999-0},
PUBLISHER = {penguin},
location = {Seatle, Italy},
}
\end{filecontents}
\begin{document}
asdfasdf asd \cite{Rost2005} fasdf asdf \cite{Jeff2021} asdf asdf
\printbibliography[title=Bibliography]
\end{document}