出版物部分中的每个条目看起来都很好,直到标题和年份之间的分隔线出现,然后我发现出版物标题和年份之间有三个难看的空格分隔线;例如,
J.D. Salinger, The Catcher in the Rye, (1951).
括号中的年份被做成了超链接,删除这个链接也没什么用。(我也非常不喜欢标题后面的逗号和年份括起来的括号,但如果更改它们带来的麻烦大于其价值,那我也就接受它们了。)
请注意,代码在 Overleaf 上,而不是我的本地机器上。
这是.bib:
@CONTROL{REVTEX42Control}
@CONTROL{apsrev42Control,author="00",pages="1",title="0",year="0"}
@article{Hohertz_Factors_2020,
author = {Hohertz, Matt},
title = {Bounds for the zeros of {C}ollatz polynomials, with necessary and sufficient strictness conditions},
url = {https://arxiv.org/pdf/2012.08006.pdf},
year = {2020}
}
和.tex:
\documentclass[12pt]{article}
%% Define some new colors
\usepackage{xcolor}
\definecolor{mBlue}{RGB}{51, 77, 167}
\newcommand{\blue}[1]{{\color{mBlue}#1}}
%% Page and text formatting
\usepackage[left=1.0in, right=1.0in, top=1.0in, bottom=1.0in]{geometry} % margins
\usepackage{setspace}
\singlespacing % No more than 6 lines of text per inch
\usepackage{amsmath, amsfonts}
\usepackage[T1]{fontenc}
\usepackage{times}
%\usepackage{hyperref}
%% Make the sections start with (a), (b), etc.
\renewcommand\thesection{(\alph{section})}
\renewcommand\thesubsection{(\alph{subsection})}
%% Set up footer
\usepackage{fancyhdr}
\fancypagestyle{CVfooter}
{
\lhead{}
\chead{}
\rhead{}
\lfoot{\small{Matt Hohertz}}
\cfoot{\small{\today}}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.5pt}
}
%% Set up hyperlinks
\usepackage[linktoc=page]{hyperref}
\hypersetup{
colorlinks = true,
urlcolor = mBlue,
citecolor = mBlue,
linkcolor = mBlue,
}
%% Set up citations and bibliography
\usepackage{bibunits}
\usepackage[sort&compress,super]{natbib}
\defaultbibliographystyle{apsrev4-2}
\setcitestyle{comma}
\setlength{\bibsep}{0pt}
\renewcommand{\bibnumfmt}[1]{\ \ \ #1.}
\renewcommand\refname{\vspace{-7mm}}
%% This allows us to start a bibliography with arbitrary number
\usepackage{etoolbox}
\makeatletter
\newcommand*{\newbibstartnumber}[1]{%
\apptocmd{\thebibliography}{%
\global\c@NAT@ctr #1\relax
\addtocounter{NAT@ctr}{-1}%
}{}{}%
}
\makeatother
%% Reduce whitespace around lists (globally)
\usepackage{enumitem}
\setlist[itemize]{nosep,left=0pt}
\setlist[enumerate]{nosep}
\setlist[description]{nosep}
%% Formatting for sections
\usepackage[compact]{titlesec}
\titleformat*{\section}{\normalsize\bfseries}
\titlespacing*{\section}{0mm}{2mm}{1mm}[0mm] % left top bottom right
\titleformat*{\subsection}{\normalsize\bfseries}
\titlespacing*{\subsection}{0mm}{2mm}{1mm}[0mm]
\titleformat*{\subsubsection}{\normalsize\bfseries\itshape}
\titlespacing*{\subsubsection}{0mm}{1mm}{0mm}[0mm]
\begin{document}
\pagestyle{CVfooter}
\section{Research Experience}
\vspace{1mm}
\noindent \textbf{\textit{\ \ Author or co-author}}
\begin{bibunit}
\nocite{apsrev42Control}
\nocite{Hohertz_Collatz_2020, Hohertz_Factors_2020, Hohertz2020, HohertzKalantari2020}
\putbib[publications]
\end{bibunit}
\end{document}