我正在尝试将我的出版物列表打印在我的简历上。它在 LaTeX 中目前看起来像这样:
\nocite{*}
\printbibliography
我想删除“参考文献标题”。添加[heading=none]
到后,\printbibliography
我得到以下结果:
这确实会删除标题,但也会删除条目的编号。我怎样才能恢复条目编号?
更新:
我在用这模板。
更新 2:
以下是 MWE:
blee.bib:
@article{leeSquiggleUserfriendlyTwodimensional2018,
title = {Squiggle: A User-Friendly Two-Dimensional {{DNA}} Sequence Visualization Tool},
issn = {1367-4803, 1460-2059},
shorttitle = {Squiggle},
doi = {10.1093/bioinformatics/bty807},
journal = {Bioinformatics},
author = {Lee, Benjamin D},
editor = {Hancock, John},
month = sep,
year = {2018},
file = {/Users/BenjaminLee/Zotero/storage/LRIZZCAE/Lee - Squiggle a user-friendly two-dimensional DNA sequ.pdf}
}
@article{leePythonImplementationCodon2018,
title = {Python {{Implementation}} of {{Codon Adaptation Index}}},
volume = {3},
issn = {2475-9066},
doi = {10.21105/joss.00905},
number = {30},
journal = {Journal of Open Source Software},
author = {Lee, Benjamin D.},
month = oct,
year = {2018},
pages = {905},
file = {/Users/BenjaminLee/Zotero/storage/V3MQVKZW/Lee - 2018 - Python Implementation of Codon Adaptation Index.pdf}
}
简历.cls:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Medium Length Professional CV - RESUME CLASS FILE
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% This class file defines the structure and design of the template.
%
% Original header:
% Copyright (C) 2010 by Trey Hunner
%
% Copying and distribution of this file, with or without modification,
% are permitted in any medium without royalty provided the copyright
% notice and this notice are preserved. This file is offered as-is,
% without any warranty.
%
% Created by Trey Hunner and modified by www.LaTeXTemplates.com
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesClass{resume}[2010/07/10 v0.9 Resume class]
\LoadClass[11pt,letterpaper]{article} % Font size and paper type
\usepackage[parfill]{parskip} % Remove paragraph indentation
\usepackage{array} % Required for boldface (\bf and \bfseries) tabular columns
\usepackage{ifthen} % Required for ifthenelse statements
\pagestyle{empty} % Suppress page numbers
\let\ori@document=\document
% Defines the rSection environment for the large sections within the CV
\newenvironment{rSection}[1]{ % 1 input argument - section name
\sectionskip
\MakeUppercase{\bf #1} % Section title
\sectionlineskip
\hrule % Horizontal line
\begin{list}{}{ % List for each individual item in the section
\setlength{\leftmargin}{1.5em} % Margin within the section
}
\item[]
}{
\end{list}
}
% The below commands define the whitespace after certain things in the document - they can be \smallskip, \medskip or \bigskip
\def\namesize{\huge} % Size of the name at the top of the document
\def\addressskip{\smallskip} % The space between the two address (or phone/email) lines
\def\sectionlineskip{\medskip} % The space above the horizontal line for each section
\def\nameskip{\bigskip} % The space after your name at the top
\def\sectionskip{\medskip} % The space after the heading section
cv4.tex:
\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins
\usepackage{biblatex}
\addbibresource{blee.bib}
\begin{document}
\begin{rSection}{Publications}
\nocite{*}
\printbibliography[]
\end{rSection}
\end{document}
答案1
rSection
是通过list
环境定义的。\printbibliography
也作为列表实现,并且当这些列表嵌套而没有脱离垂直模式时,可能会导致奇怪的效果。
\leavevmode
我能找到的最简单的解决方案是在之前发布\printbibliography
\documentclass{resume} % Use the custom resume.cls style
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\begin{rSection}{Publications}
\nocite{sigfridsson,worman,geer,nussbaum}
\leavevmode\printbibliography[heading=none]
\end{rSection}
\end{document}