在 moderncv 类中添加两个 bib 文件

在 moderncv 类中添加两个 bib 文件

假设我有两个出版物列表,一个与硕士学位有关,另一个与博士学位有关,我正在使用moderncv类来构建我的简历。我的问题是我应该使用单个 bib 文件还是必须使用两个 bib 文件?但是,我想分别显示硕士学位和博士学位的出版物列表。怎么做?

我尝试使用单个 bib 文件(pubmaster),MWE 如下。我是否应该再添加一个 bib 文件来显示与博士学位相关的出版物列表?

\documentclass[9pt,a4paper]{moderncv}

\moderncvtheme[blue]{classic}               
\usepackage[utf8]{inputenc}                   
\usepackage{amsmath}
\usepackage[scale=0.85]{geometry}
\recomputelengths                             % required when changes 
\firstname{First}
\familyname{Second}                   % optional, 
\begin{document}
\maketitle

\section{Career Objective}

\section{Skill Sets}
\cventry{Languages:} {C, C++, R, HTML Core Java and AspectJ}{}{} {}{}
\cventry{Operating Systems:} {Windows and Linux}{}{} {}{}
\cventry{Packages} {Microsoft Office}{}{} {}{}
\cventry{Scripts:} {Java Script and VB Script}{}{} {}{}
\cventry{Applications}{\LaTeX, Spreadsheet, IBM RSA, Matlab}{}{}{}{}
\cventry{Visualization Tools}{Edraw Max, ORA and Pajek}{}{}{}{}

\section{Achievements, Awards and Honors}
\cventry{2016}{International Biographical Centre (IBC)}{Listed in ``Top 100 Professionals, 2016''}{Cambridge, Engaland}{}{}


\section{Professional Affiliations}



\section{Professional Activities}

\cventry{2016}{Invited Reviewer}{International Journal of Computers and Applications}{Taylor \& Francis}{}{}



\section{Areas of Interest}
\cvlistitem {Databases, Software Engineering, Aspect-oriented Programming, Program Slicing and Service-oriented Architecture}


\section{Workshops/Short Term Courses Attended}

\section{Extra Co-Curricular Activities}
\cvlistitem{Took a lead in different college level \& inter college level Football Tournaments.}

\section{Courses \& Teaching}
\nocite{*}
\bibliographystyle{plain}
\bibliography{pubmaster} 
\section{Personal Details}
\vspace{1.0cm}
\begin{flushright}
\par
\par
\par
\par
\textbf{AABC}
\end{flushright}


\textbf{India}\\
\textbf{Last Updated: \today}
\end{document}

答案1

如果您不想使用,biblatex您可以使用包multibib

然后您需要先运行 MWE,然后运行bibtex master.aux创建出版物列表,然后运行bibtex doc.aux创建第二个书目......

在以下 MWE 中,我用 标记了重要代码% <===========

% needs: bibtex doc.aux % <==============================================
% needs: bibtex master.aux % <===========================================
\RequirePackage{filecontents}
\begin{filecontents*}{pubmaster.bib}
@article{latex,
  title={{\LaTeX} for the study},
  author={Firstname Surname},
  year={2014},
}
\end{filecontents*}

\begin{filecontents*}{pubdoc.bib}
@article{latexd,
  title={{\LaTeX} to write a doctor thesis},
  author={Firstname Surname},
  year={2015},
}
\end{filecontents*}


\documentclass[9pt,a4paper]{moderncv}

\moderncvtheme[blue]{classic}

\usepackage[utf8]{inputenc}

\usepackage{amsmath}
\usepackage[scale=0.85]{geometry}
\recomputelengths                             % required when changes 

% <=====================================================================
\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}
\usepackage{multibib}
\newcites{master,doc}{{Published as master},{Published as doc}}
% <=====================================================================

\firstname{First}
\familyname{Second}                   % optional, 


\begin{document}
\maketitle

\section{Career Objective}

\section{Skill Sets}
\cventry{Languages:} {C, C++, R, HTML Core Java and AspectJ}{}{} {}{}
\cventry{Operating Systems:} {Windows and Linux}{}{} {}{}
\cventry{Packages} {Microsoft Office}{}{} {}{}
\cventry{Scripts:} {Java Script and VB Script}{}{} {}{}
\cventry{Applications}{\LaTeX, Spreadsheet, IBM RSA, Matlab}{}{}{}{}
\cventry{Visualization Tools}{Edraw Max, ORA and Pajek}{}{}{}{}

\section{Achievements, Awards and Honors}
\cventry{2016}{International Biographical Centre (IBC)}{Listed in ``Top 100 Professionals, 2016''}{Cambridge, Engaland}{}{}


\section{Professional Affiliations}



\section{Professional Activities}

\cventry{2016}{Invited Reviewer}{International Journal of Computers and Applications}{Taylor \& Francis}{}{}



\section{Areas of Interest}
\cvlistitem {Databases, Software Engineering, Aspect-oriented Programming, Program Slicing and Service-oriented Architecture}


\section{Workshops/Short Term Courses Attended}

\section{Extra Co-Curricular Activities}
\cvlistitem{Took a lead in different college level \& inter college level Football Tournaments.}

\section{Courses \& Teaching}

\nocitemaster{*} % <====================================================
\bibliographystylemaster{plain}
\bibliographymaster{pubmaster}
\nocitedoc{*}
\bibliographystyledoc{plain}
\bibliographydoc{pubdoc} % <============================================

\section{Personal Details}
\vspace{1.0cm}
\begin{flushright}
\par
\par
\par
\par
\textbf{AABC}
\end{flushright}


\textbf{India}\\
\textbf{Last Updated: \today}
\end{document}

得到的 pdf 格式如下:

在此处输入图片描述

相关内容