如何将参考书目文件添加到经典论文风格的简历中?

如何将参考书目文件添加到经典论文风格的简历中?

我正在使用 classicthesis 样式的 LaTeX 创建我的简历。我不想单独添加出版物,而是想添加参考书目文件。我尝试使用以下代码,但无法正常工作。

平均能量损失

\documentclass{scrartcl}

\reversemarginpar % Move the margin to the left of the page 

\newcommand{\MarginText}[1]{\marginpar{\raggedleft\itshape\small#1}} % New command defining the margin text style

\usepackage[nochapters]{classicthesis} % Use the classicthesis style for the style of the document
\usepackage[LabelsAligned]{currvita} % Use the currvita style for the layout of the document

\renewcommand{\cvheadingfont}{\LARGE\color{Maroon}} % Font color of your name at the top

\usepackage{hyperref} % Required for adding links   and customizing them
\hypersetup{colorlinks, breaklinks, urlcolor=Maroon, linkcolor=Maroon} % Set link colors

\newlength{\datebox}\settowidth{\datebox}{Spring 2011} % Set the width of the date box in each block

\newcommand{\NewEntry}[3]{\noindent\hangindent=2em\hangafter=0 \parbox{\datebox}{\small \textit{#1}}\hspace{1.5em} #2 #3 % Define a command for each new block - change spacing and font sizes here: #1 is the left margin, #2 is the italic date field and #3 is the position/employer/location field
\vspace{0.5em}} % Add some white space after each new entry

\newcommand{\Description}[1]{\hangindent=2em\hangafter=0\noindent\raggedright\footnotesize{#1}\par\normalsize\vspace{1em}} % Define a command for descriptions of each entry - change spacing and font sizes here

\addbibresource{bibliography.bib}

%----------------------------------------------------------------------------------------

\begin{document}

\thispagestyle{empty} % Stop the page count at the bottom of the first page

%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\begin{cv}

%----------------------------------------------------------------------------------------
%   WORK EXPERIENCE
%----------------------------------------------------------------------------------------

\noindent\spacedlowsmallcaps{Publications}\vspace{1em}

% \section{publications}

\printbibsection{article}{article in peer-reviewed journal} % Print all articles from the bibliography

\printbibsection{book}{books} % Print all books from the bibliography

\begin{refsection} % This is a custom heading for those references marked as "inproceedings" but not containing "keyword=france"
\nocite{*}
\printbibliography[sorting=chronological, type=inproceedings, title={international peer-reviewed conferences/proceedings}, notkeyword={france}, heading=bibheading]
\end{refsection}

\begin{refsection} % This is a custom heading for those references marked as "inproceedings" and containing "keyword=france"
\nocite{*}
\printbibliography[sorting=chronological, type=inproceedings, title={local peer-reviewed conferences/proceedings}, keyword={france}, heading=bibheading]
\end{refsection}

\printbibsection{misc}{other publications} % Print all miscellaneous entries from the bibliography

\printbibsection{report}{research reports} % Print all research reports from the bibliography

\end{cv}

\end{document}

如何将参考书目文件添加到经典论文风格的简历中?

答案1

您忘记加载biblatex您的 MWE。

此外,\printbibsection不是标准biblatex命令,它被定义friggeri-cv

\newcommand{\printbibsection}[2]{
  \begin{refsection}
    \nocite{*}
    \printbibliography[sorting=chronological, type={#1}, title={#2}, heading=subbibliography]
  \end{refsection}
}

\printbibsection但通常你不需要refsections,你可以直接使用

\documentclass{scrartcl}
\usepackage[sorting=ydnt, tyle=authortitle, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\nocite{*}

\begin{document}
\printbibliography[type=article, title={Articles}]
\printbibliography[type=book, title={Books}]
\printbibliography[nottype=article,nottype=book, title={Others}]
\end{document}

答案2

从 Friggeri 模板提供的这项工作并使用包含 @inbook、@article 等的两列表格书目我可以为您提供我的模板,以便使用来区分相同类型的出版物keywords={france}

以下 MWE 可以作为您简历的另一个开始。

\documentclass[a4paper]{article}
\usepackage{inputenc}
\usepackage[english,french]{babel}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{csquotes}
\usepackage[backend=biber, maxnames=99, sorting=ydnt, hyperref=true]{biblatex}
\usepackage[left=3cm,top=2.5cm,right=3cm,bottom=2.5cm]{geometry}

\begin{filecontents}{\jobname.bib}

@ARTICLE{mwe2012,
  author = {Smith, A. and Johnson, B. and Willians, C.},
  title = {The three most common surnames in the United States of America},
  journal = {Review of Useless Knowledge},
  year = {2012},
  volume = {8},
  number = {1},
  pages = {290--290},
  keywords={france}
}

@INPROCEEDINGS{mwe2011,
  author = {Miller, J. and Brown, D.},
  title = {Most used surnames in fake passports},
  booktitle = {Journal of Nosense Ranks},
  year = {2011},
  volume = {5},
  number = {3},
  pages = {1--130},
  pmid = {1234567}
}


@INPROCEEDINGS{mwe2015,
  author = {Miller, J. and Brown, D.},
  title = {Most used surnames in fake passports},
  booktitle = {Journal of Nosense Ranks},
  year = {2011},
  volume = {5},
  number = {3},
  pages = {1--130},
  pmid = {1234567},
  keywords = {france}
}

\end{filecontents}

\addbibresource{\jobname.bib}

\defbibenvironment{bibliography}
{\list
    %{\printtext[labelnumberwidth]{\printfield{labelnumber}}}%
    {\printtext{\addtocounter{publi}{1}[\thepubli]}}
    {\setlength{\labelwidth}{\labelnumberwidth}%
    \setlength{\leftmargin}{\labelwidth}%
    \setlength{\labelsep}{\biblabelsep}%
    \addtolength{\leftmargin}{\labelsep}%
    \setlength{\itemsep}{\bibitemsep}%
    \setlength{\parsep}{\bibparsep}}%
    \renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}

\DeclareFieldFormat[article]{title}{#1}
\DeclareFieldFormat[book]{title}{#1}
\DeclareFieldFormat[inproceedings]{title}{#1}
\DeclareFieldFormat[inproceedings_fr]{title}{#1}
\DeclareFieldFormat[misc]{title}{#1}
\DeclareFieldFormat[report]{title}{#1}
\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat[article]{volume}{\textbf{#1}}
\DeclareFieldFormat[unpublished]{title}{#1}

\DeclareBibliographyDriver{article}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
\begin{tabular}{p{0.9\textwidth}}
    \printfield{title}\\
    \printnames{author}\\
    \printfield{journaltitle}%
    \addcomma\space%
    \printfield{volume}%
    \iffieldundef{number}{}{\space(\printfield{number})}%
    \addcomma\space%
    \printfield{pages}%
    \addcomma\space%
    \printfield{year}.
\end{tabular}
\vspace{.5em}
\hrule
\usebibmacro{finentry}}

\DeclareBibliographyDriver{inproceedings}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
\begin{tabular}{p{0.9\textwidth}}
    \printfield{title}\\
    \printnames{author}\\
    \printfield{booktitle}%
    \addcomma\space%
    \printfield{volume}%
    \iffieldundef{number}{}{\space(\printfield{number})}%
    \addcomma\space%
    \printfield{pages}%
    \addcomma\space%
    \printlist{location}
    \addcomma\space%
    \printfield{year}.
\end{tabular}
\vspace{.5em}
\hrule
\usebibmacro{finentry}}

\begin{document}
\selectlanguage{french}
\section{Liste de publications (extrait)}

\newcounter{publi}
\nocite{*}

\selectlanguage{english}
\setcounter{publi}{0}
\printbibliography[type=article, title={Revues internationales avec comité de lecture}, heading=subbibliography]

\setcounter{publi}{0}
\printbibliography[type=inproceedings, title={Conférences internationales avec comité de lecture}, notkeyword={france}, heading=subbibliography]

\selectlanguage{french}
\setcounter{publi}{0}
\printbibliography[type=inproceedings, title={Conférences nationales avec comité de lecture}, keyword={france}, heading=subbibliography]
\end{document}

相关内容