书目和目录

书目和目录

我正在用 LaTeX 写论文,这是我第一次使用它。我使用 Tufte 的模板。

我有一个参考书目,并且我还想创建一个独立于参考书目的目录(在另一页上)。

这是我的一部分代码:

\documentclass{tufte-book}

\begin{document}
Lorem ipsum \cite{ColinWare_InformationVisualization}, \cite{BenShneiderman_TheEyesHaveIt}, \cite{UsabilityFirst}.

\backmatter
\bibliography{./bib/bibliography}
\bibliographystyle{plainnat}
\bibliographystyle{plainnat}

\end{document}

并且bibliography.bib是:

@book{ColinWare_InformationVisualization,
    author = {Colin Ware},
    title = {Information visualization: perception for design},
    year = {2012},
    publisher = {Morgan Kaufmann},
    edition = {Third},
    isbn = {978-0123814647}
}

@report{BenShneiderman_TheEyesHaveIt,
    author = {Ben Shneiderman},
    title = {The eyes have it: a task by data type taxonomy for information visualizations},
    year = {1996}
}

@misc{UsabilityFirst,
    title = {{Usability first} Scientifi visualization definition},
    howpublished = {\url{http://www.usabilityfirst.com/glossary/scientific-visualization/}}
}

我想将misc元素分离为reportbook元素。 reportbook元素应该放在名为“Bibliography”的部分中,misc元素应该放在名为“Sitography”的部分中。


\usepackage[backend=biber, style=numeric, defernumbers]{biblatex}

\begin{document}

\backmatter
%\bibliography{./bibliografia/bibliography}
%\bibliography{./bibliografia/sitography}
\printbibliography[nottype=online, heading=subbibliography, title=Bibliography]
\printbibliography[type=online, heading=subbibliography, title=Sitography]
\bibliographystyle{plainnat}

错误:

在此处输入图片描述


我们快到了。这是我得到的结果:

在此处输入图片描述

为什么括号里没有数字,只有字母o?为什么标题的格式不像章节标题那样?

小册子、杂项和在线类型的元素均未打印。

@misc{GleamArt,
    ALTauthor = {Wouter Van den Broeck, Corrado Gioannini, Bruno Gonçalves, Marco Quaggiotto, Vittoria Colizza, Alessandro Vespignani},
    title = {The GLEAMviz computational tool, a publicly available software to explore realistic epidemic spreading scenarios at the global scale},
    date = {2011},
    OPTurl = {https://bmcinfectdis.biomedcentral.com/articles/10.1186/1471-2334-11-37}
}
@online{UsabilityFirst,
    ALTauthor = {},
    title = {Usability first: scientific visualization definition},
    date = {2011},
    url = {http://www.usabilityfirst.com/glossary/scientific-visualization/}
}

答案1

biblatex可以尝试这样的方法。

请注意,该filecontents位仅用于使示例自成一体。在实际文档中,您将拥有一个普通.bib文件。

该类tufte-book通常会加载natbib,因此我们明确地告诉它,我们希望通过将选项传递给文档类来完全控制我们加载哪个包nobib。(如果不这样做,则会出错,因为natbibbiblatex不兼容。)

\documentclass[nobib]{tufte-book}
\usepackage[backend=biber, style=numeric, defernumbers]{biblatex}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{ColinWare_InformationVisualization,
  author    = {Colin Ware},
  title     = {Information visualization: perception for design},
  year      = {2012},
  publisher = {Morgan Kaufmann},
  edition   = {3},
  isbn      = {978-0123814647}
}
@report{BenShneiderman_TheEyesHaveIt,
  author = {Ben Shneiderman},
  title  = {The eyes have it: a task by data type taxonomy for information visualizations},
  year   = {1996}
}
@online{UsabilityFirst,
  title = {{Usability first} Scientific visualization definition},
  url   = {http://www.usabilityfirst.com/glossary/scientific-visualization/},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
Lorem ipsum \cite{ColinWare_InformationVisualization,BenShneiderman_TheEyesHaveIt,UsabilityFirst}.

\backmatter
\printbibliography[nottype=online, heading=subbibliography, title=Bibliography]
\printbibliography[type=online, heading=subbibliography, title=Sitography]
\end{document}

在此处输入图片描述

我将在线来源作为条目,但如果您愿意,@online您可以做同样的事情。@misc

请注意,您必须运行 Biber 而不是 BibTeX,请参阅Biblatex 与 Biber:配置我的编辑器以避免未定义的引用,一般来说你现在正在使用biblatex,但不再natbib使用,所以你可能需要阅读bibtex 与 biber 以及 biblatex 与 natbib 的比较要切换到 biblatex 该怎么做?

相关内容