我需要一个简单的工具来制作和引用{thebibliography}中的子项目,例如:
\begin{thebibliography}{9}
\bibitem{foo} foo
\subitem{fooa} bar
\subitem{foob} lorem
\end{thebibliography}
编译后我希望它看起来像这样:
[1] foo
a) bar
b) lorem
当引用
\cite{foo}
\cite{foob}
\cite{fooa, foob}
它会产生类似这样的结果:
[1]
[1b]
[1a, b]
我该怎么做以及需要哪些软件包来实现这一点?
答案1
这里有一个小例子,说明如何使用条目集biblatex
来获得以下输出:
\documentclass{article}
\usepackage[sortcites=true,
citestyle=numeric-comp,
subentry=true,
]{biblatex}
\addbibresource{\jobname.bib}
\begin{filecontents}{\jobname.bib}
@article{First,
author = {First, A.},
journal = {Journal},
pages = {1762--1776},
volume = {27},
year = {2017}
}
@article{Second,
author = {Second, B.},
journal = {Journal},
pages = {1762--1776},
volume = {27},
year = {2017}
}
@article{Third,
author = {Third, C.},
journal = {Journal},
pages = {1762--1776},
volume = {27},
year = {2017}
}
@article{Fourth,
author = {Fourth, D.},
journal = {Journal},
pages = {1762--1776},
volume = {27},
year = {2017}
}
\end{filecontents}
\defbibentryset{set}{First,Second, Third}
\begin{document}
Full entry set: \cite{set}
Individual entries of the set: \cite{First} \cite{Second} \cite{Third}
multiple entries of the entry set: \cite{First,Second}
Entry that is not part of the set: \cite{Fourth}
\printbibliography
\end{document}