我正在写一份类似简历的文档,以便能够正式指导博士生。我面临一个与参考书目有关的主要问题。
我的书目必须这样管理:
- 多个部分:一个用于期刊,一个用于书籍,一个用于会议记录......
- 按时间顺序或倒序排列
- 我的名字必须突出显示
- 參考文獻:引述和未引用的
我可以解决第 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}