我有一份包含参考书目的文档,我想将部分参考书目打印两次。我的 *.tex 文件是:
\documentclass{article}
\begin{document}
Some Text...~\cite{doc1}
Here I would like to print some of bibliography, with possibly the same style as the normal bibliography.
Let's say I'd like to show here doc1 and doc2, i.e. some cited and some uncited ones.
Some more text...
\bibliography{texFiles/bibliography}
\end{document}
我的 *.bib 文件是
@misc{doc1,
url = "http://tex.stackexchange.com/questions",
}
@misc{doc2,
url = "http://tex.stackexchange.com/tags",
}
@misc{doc3,
url = "http://tex.stackexchange.com/users",
}
我该怎么做?我尝试将所有要打印的文件放在一个单独的 *.bib 文件中,但随后我需要定义,\nocite{*}
并且所有其他文档也会打印在正常参考书目中。
请注意,我不能使用biblatex
,因为我有一个必须遵循的*.bst 文件。
答案1
这是如何使用的示例bibunits
。它展示了如何对不同的书目使用不同的样式,但显然您可以使用相同的样式。请注意,这些样式不会排版 url,因此我添加了作者以使一切正常:
\documentclass{article}
\usepackage{bibunits}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{doc1,
author = {Author, A. N.},
year = 1066,
url = "http://tex.stackexchange.com/questions",
}
@misc{doc2,
author = {Author, A. Nother},
year = 1543,
url = "http://tex.stackexchange.com/tags",
}
@misc{doc3,
author = {Author, A. Third},
year = 3012,
url = "http://tex.stackexchange.com/users",
}
\end{filecontents}
\begin{document}
\begin{bibunit}[plain]
Some Text...~\cite{doc1}
Here I would like to print some of bibliography, with possibly the same style as the normal bibliography.
Let's say I'd like to show here doc1 and doc2, i.e. some cited and some uncited ones.\nocite{doc2}
\putbib[\jobname]
\end{bibunit}
\begin{bibunit}[alpha]
Some more text\dots \cite{doc3}
\putbib[\jobname]
\end{bibunit}
\end{document}
编译:
pdflatex <filename>.tex
bibtex bu1.aux
bibtex bu2.aux
pdflatex <filename>.tex
pdflatex <filename>.tex
或者latex
代替pdflatex
或任何你喜欢的内容。