根据文章类型整理出版物列表

根据文章类型整理出版物列表

通过tufte-book模板(使用natbib),我想在文档末尾包含我的出版物列表,按类型组织:我想有一个会议论文部分和一个会议海报部分。

我该怎么做?另外,我是否应该在 .bib 文件中添加某种标记以便更轻松地识别海报?

目前,我只有一个包含所有出版物的页面,没有任何部分:

\documentclass{tufte-book}
\usepackage{lipsum}

\begin{document}

\chapter{Chapter One}
\lipsum[1-9]

\begingroup
\renewcommand\refname{List of Publications}
\input{my_publications.bbl}
\endgroup

\end{document}

这是 my_publications.tex:

\documentclass{article}
\usepackage{natbib}
\begin{document}
\nocite{*}
\bibliographystyle{plain}
\bibliography{list_of_my_publications}
\end{document}

这是list_of_my_publications.bib:

@inproceedings{poster1,
  title={Title of first poster},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some workshop},
  pages={157--158},
  year={2014},
}

@inproceedings{poster2,
  title={Title of second poster},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some other workshop},
  year={2015}
}

@inproceedings{conference_paper1,
  title={Title of first paper},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some conference},
  pages={10--19},
  year={2015},
}


@inproceedings{conference_paper2,
  title={Title of second paper},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some other conference},
  year={2016},
}

答案1

您可能需要根据自己的需求调整参考书目的样式,但这里有一个基本模式。使用 分类条目,entrysubtype然后.bibsubtype打印参考书目时用于过滤条目。natbib=true是一个兼容性选项。nobib告诉类不要真正加载natbibdefernumbers=true停止参考书目中奇怪的编号。是否需要它取决于您使用的样式。有关详细信息,请参阅 Biblatex 的文档。

编译顺序:pdflatex -> biber -> pdflatex -> pdflatex。您首选的引擎可以用 pdfTeX 替代,例如latex或者lualatex而不是pdflatex

\begin{filecontents}{\jobname.bib}
@inproceedings{poster1,
  title={Title of first poster},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some workshop},
  pages={157--158},
  year={2014},
  entrysubtype={poster},
}

@inproceedings{poster2,
  title={Title of second poster},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some other workshop},
  year={2015},
  entrysubtype={poster},
}

@inproceedings{conference_paper1,
  title={Title of first paper},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some conference},
  pages={10--19},
  year={2015},
  entrysubtype={paper},
}

@inproceedings{conference_paper2,
  title={Title of second paper},
  author={Twain, Mark and Shakespeare, William},
  booktitle={Proceedings of some other conference},
  year={2016},
  entrysubtype={paper},
}
\end{filecontents}

\documentclass[nobib]{tufte-book}
\usepackage{lipsum}
\usepackage[backend=biber,natbib=true,defernumbers=true]{biblatex}
\bibliography{\jobname}

\begin{document}

\chapter{Chapter One}
\lipsum[1-9]

\nocite{*}
\renewcommand\bibname{List of Publications}
\printbibheading
\printbibliography[subtype=poster,heading=subbibliography,title=Posters]
\printbibliography[subtype=paper,heading=subbibliography,title=Papers]

\end{document}

分割书目

相关内容