![如何打印一份包括引用和未引用参考文献的参考书目?](https://linux22.com/image/414319/%E5%A6%82%E4%BD%95%E6%89%93%E5%8D%B0%E4%B8%80%E4%BB%BD%E5%8C%85%E6%8B%AC%E5%BC%95%E7%94%A8%E5%92%8C%E6%9C%AA%E5%BC%95%E7%94%A8%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE%E7%9A%84%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%EF%BC%9F.png)
我正在写一份类似简历的文档,以便能够正式指导博士生。我面临一个与参考书目有关的主要问题。
我的书目必须这样管理:
- 多个部分:一个用于期刊,一个用于书籍,一个用于会议记录......
- 按时间顺序或倒序排列
- 我的名字必须突出显示
- 參考文獻:引述和未引用的
我可以解决第 1 点至第 3 点的问题,但是每次我想打印引用的参考文献和非引用的参考文献时,引用的参考文献都会被放置在每个子部分(期刊、书籍……)的开头,而不会保留原始的引用顺序(按时间顺序或按时间倒序排列)。如何解决这个问题?
我的模板使用multibib
包和BibTeX
。
以下是我的代码示例:
\documentclass[french]{hdrapplication}
\usepackage{ae,lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{textgreek}
\usepackage{hyperref}
\usepackage{array}
\usepackage{color}
\usepackage{xstring}
%\usepackage[resetlabels]{multibib} % Present in the appropriate cls file
\newcites{bookall}{Books}
\newcites{journalall}{Journals}
\newcites{proceedingsall}{Conferences}
\newcites{othersall}{Others}
\begin{document}
My first publication \citeproceedings{RN1} was published in 2006...
With this Phd student, we publised 2 papers \citejournal{RN2}\citeproceedings{RN3}...
\section{References}
% Name & bold
\def\FormatName#1{%
\IfSubStr{#1}{StefM}{\textbf{#1}}{#1}%
}
\begingroup
\makeatletter
\renewcommand{\@seccntformat}[1]{}
\renewcommand{\refname}{}%
\makeatother
\bibliographystylebook{unsrt}
\bibliographybook{myBiblio_book}
\nocitebook{*}
\bibliographystylejournal{unsrt}
\bibliographyjournal{myBiblio_journal}
\nocitejournal{*}
\bibliographystyleproceedings{unsrt}
\bibliographyproceedings{myBiblio_proceedings}
\nociteproceedings{*}
\bibliographystyleotherss{unsrt}
\bibliographyothers{myBiblio_others}
\nociteothers{*}
\endgroup
\end{document}
配置: - TeXMaker 5.0.3 - MiKTeX 2.9 - BiBTeX
答案1
请从此找到适合我的解决方案!
\documentclass[french]{hdrapplication}
\usepackage{ae,lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{textgreek}
\usepackage{hyperref}
\usepackage{array}
\usepackage{color}
\usepackage{xstring}
\usepackage[backend=biber,style=numeric-comp,sorting=ynt,defernumbers=true,maxbibnames=99,url=false]{biblatex}
\usepackage{csquotes}
\addbibresource{myBiblio.bib}
% https://tex.stackexchange.com/questions/33330/make-one-authors-name-bold-every-time-it-shows-up-in-the-bibliography
\usepackage{xstring}
\usepackage{etoolbox}
\newboolean{bold}
\newcommand{\makeauthorsbold}[1]{%
\DeclareNameFormat{author}{%
\setboolean{bold}{false}%
\renewcommand{\do}[1]{\expandafter\ifstrequal\expandafter{\namepartfamily}{####1}{\setboolean{bold}{true}}{}}%
\docsvlist{#1}%
\ifthenelse{\value{listcount}=1}
{%
{\expandafter\ifthenelse{\boolean{bold}}{\mkbibbold{\namepartfamily\addcomma\addspace \namepartgiveni}}{\namepartfamily\addcomma\addspace \namepartgiveni}}%
}{\ifnumless{\value{listcount}}{\value{liststop}}
{\expandafter\ifthenelse{\boolean{bold}}{\mkbibbold{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni}}{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni}}%
{\expandafter\ifthenelse{\boolean{bold}}{\mkbibbold{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni\addcomma\isdot}}{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni\addcomma\isdot}}%
}
\ifthenelse{\value{listcount}<\value{liststop}}
{\addcomma\space}{}
}
}
\makeauthorsbold{StefM}
\begin{document}
My report...
\nocite{*}
\printbibliography[type=inbook, heading=subbibliography, title=Books]
\printbibliography[type=article, heading=subbibliography, title=Journal,resetnumbers=false]
\printbibliography[type=inproceedings, heading=subbibliography, title=Conference proceedings,resetnumbers=false]
\printbibliography[type=misc, heading=subbibliography, title=Others,resetnumbers=false]
\end{document}