我有一份包含多个参考书目的文档,我迫切希望有多种样式可供\cite
选择。对于参考书目,我希望采用作者-年份样式,而对于目录,数字样式更合适。
下面的示例不起作用;编译会抛出一个错误,说“! Package natbib Error: Bibliography not compatible with author-year citations.
因此,我被迫在声明时使用 alsonumbers
或super
选项” natbib
。然而,这样做,我失去了引用作者年份的能力。
有没有什么办法可以解决这个问题?到目前为止,我已经尝试了很多不同的组合,但还没有找到实现这一目标的方法。
\documentclass[a4paper, oneside]{book}
\usepackage{url} % needed for sitography
\usepackage[square,sort,comma]{natbib}
\usepackage{multibib} % needed for multiple bibliography
\newcites{web}{{Sitografia}}
\begin{document}
%%%%%%%%%%%%%%%%%%%% BODY
\chapter{First}
a bib citation here \cite{Lipczak2009} and a web citation here \citeweb{web:wiki}\\.
%%%%%%%%%%%%%%%%%%%% BIBLIOGRAPHY
\cleardoublepage
\nocite{*}
%\bibliographystyle{abbrvnat}
%\bibliographystyle{natbib_ita}
\bibliographystyle{plain}
\bibliography{bibliography}
%%%%%%%%%%%%%%%%%%%% SITOGRAPHY
\cleardoublepage
%\addcontentsline{toc}{chapter}{Sitografia}
\nociteweb{*}
\bibliographystyleweb{plain}
\bibliographyweb{sitography}
\end{document}
参考书目
@article{Lipczak2009,
abstract = {replaced text},
author = {Lipczak, Marek and Hu, Yeming and Kollet, Yael and Milios, Evangelos},
issn = {16130073},
journal = {CEUR Workshop Proceedings},
pages = {157--172},
title = {{Tag sources for recommendation in collaborative tagging systems}},
volume = {497},
year = {2009}
}
图书目录
@misc{web:wiki,
title = {{Wikipedia.it}},
howpublished = {\url{https://it.wikipedia.org/}}
}