biblatex 的单元格引用样式

biblatex 的单元格引用样式

使用 biblatex,有没有办法格式化引文和参考书目以匹配 Cell 系列期刊的风格?

搜索引擎显示 bibtex 的 .bst 文件,但没有显示 biblatex 的 .bst 文件。

或者,假设之前没有使用过 biblatex,是否有关于如何格式化 .bbx 的良好参考?

答案1

作为细胞作者须知仅为文章、书籍和章节/会议录提供示例,修改标准样式并不那么困难。

\documentclass{article}
\usepackage[style=authoryear, giveninits=true]{biblatex}
\usepackage{xpatch}

% Some general changes
\DeclareNameAlias{sortname}{last-first}
\renewcommand*{\bibinitdelim}{}
\renewbibmacro*{in:}{%
    \iffieldequalstr{entrytype}{inproceedings}{%
        \printtext{\bibstring{in}\addspace}%
    }{}%
}

% Changes for Book
\csletcs{abx@macro@publisher+location+date@orig}{abx@macro@publisher+location+date}
\renewbibmacro*{publisher+location+date}{%
    \printtext[parens]{\usebibmacro{publisher+location+date@orig}}
}
\DeclareFieldFormat[book]{title}{#1\printunit{\addspace}}

% Changes for inproceedings
\DeclareFieldFormat[inproceedings]{title}{#1\isdot}
\DeclareFieldFormat{booktitle}{#1\addcomma}
\xpatchbibmacro{byeditor+others}{%
    \usebibmacro{byeditor+othersstrg}%
    \setunit{\addspace}%
    \printnames[byeditor]{editor}%
    \clearname{editor}%
}{%
    \printnames[byeditor]{editor}%
    \clearname{editor}
    \addcomma\addspace
    \bibstring{editor}
    \setunit{\addspace}%
}{}{}

% Changes in Article
\DeclareFieldFormat[article]{title}{#1}
\DeclareFieldFormat[article]{journaltitle}{#1\isdot}
\DeclareFieldFormat[article]{volume}{\textit{#1}}
\DeclareFieldFormat[article]{pages}{#1}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{SL00,
  author = {Sondheimer, N and Lindquist, S},
  year = {2000},
  title = {Rnq1: an epigenetic modifier of protein function in yeast.},
  journaltitle = {Mol. Cell},
  volume = {5},
  pages = {163--172}
}
@INPROCEEDINGS{King03,
  author = {King, S M},
  editor = {M Schliwa},
  title = {Dynein motors: Structure, mechanochemistry and regulation},
  booktitle = {Molecular Motors},
  publisher = {Wiley-VCH Verlag GmbH},
  pages = {45--78},
  address = {Weinheim, Germany},
  year = {2003}
}
@BOOK{CJZ97,
  author = {Cowan, W M and Jessell, T M and Zipursky, S L},
  title = {Molecular and Cellular Approaches to Neural Development},
  publisher = {Oxford University Press},
  address = {New York},
  year = {1997}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\usepackage{url}
\begin{document}

\nocite{*}

See examples at \url{http://www.cell.com/cell/authors}

\noindent Cowan, W.M., Jessell, T.M., and Zipursky, S.L. (1997). Molecular and Cellular Approaches to Neural Development (New York: Oxford University Press).

\noindent King, S.M. (2003). Dynein motors: Structure, mechanochemistry and regulation. In Molecular Motors, M. Schliwa, ed. (Weinheim, Germany: Wiley-VCH Verlag GmbH), pp. 45--78.

\noindent Sondheimer, N., and Lindquist, S. (2000). Rnq1: an epigenetic modifier of protein function in yeast. Mol. Cell \textit{5}, 163--172.

\printbibliography

\end{document}

相关内容