内联引用“et al.”字体格式问题

内联引用“et al.”字体格式问题

这是我第一次向 StackExchange 提问,所以请耐心等待!我使用两种字体撰写论文,一种是用于正文的衬线字体,一种是用于表格和图片标题的无衬线字体。其中一些标题包含带有“et al.”的内联引用 - 但是,它们没有遵循标题的无衬线字体,而是保留了衬线字体。下面显示了一个最小示例(以及生成它的代码)。

在此处输入图片描述

\documentclass{article}

%Temporary Bibliography
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{alberts_2008,
  place={New York}, 
  title={Molecular Biology of the Cell}, 
  publisher={Garland Science}, 
  author={Alberts, Bruce and others}, 
  year={2008}
}
\end{filecontents}
\immediate\write18{bibtex \jobname}

%Load packages
\usepackage{booktabs}
\usepackage{fontspec}
\usepackage[colon, authoryear]{natbib}

%Set fonts
\setromanfont{Times New Roman}
\setsansfont{Helvetica}

%Define Caption Options
\usepackage[labelfont={bf,sf,singlespacing},
                textfont={sf,singlespacing},
                justification={justified,RaggedRight},
                singlelinecheck=false,
                margin=0pt]{caption}

\begin{document}
The quick brown fox jumps over the lazy dog \citep{alberts_2008}.

\begin{table}
\caption{Sample data}
\centering
\begin{tabular}{ccc}
Sample & A    & B   \\
One    & 7.5  & 5.5 \\
Two    & 3.45 & 3.4
\end{tabular}
\caption*{

From \citep{alberts_2008}}
\end{table}

%Print Bibliography
\bibliographystyle{cell}
\bibliography{\jobname}
\end{document}

我愿意接受任何类型的解决方案!此外,感谢一些发帖者的建议,我已经对这个例子进行了相当多的整理。

答案1

如果您不必使用bibtex,则可以使用以下方法来规避该问题biblatex

\documentclass{article}

%Temporary Bibliography
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{alberts_2008,
  place={New York}, 
  title={Molecular Biology of the Cell}, 
  publisher={Garland Science}, 
  author={Alberts, Bruce and others}, 
  year={2008}
}
\end{filecontents}

\usepackage[natbib=true, style=authoryear, giveninits=true]{biblatex}
\DeclareFieldFormat{title}{#1}
\addbibresource{\jobname.bib}

%Define Caption Options
\usepackage[labelfont={bf,sf,singlespacing},
                textfont={sf,singlespacing},
                justification={justified,RaggedRight},
                singlelinecheck=false,
                margin=0pt]{caption}

\begin{document}
The quick brown fox jumps over the lazy dog \citep{alberts_2008}.

\begin{table}
\caption{Sample data}
\centering
\begin{tabular}{ccc}
Sample & A    & B   \\
One    & 7.5  & 5.5 \\
Two    & 3.45 & 3.4
\end{tabular}
\caption*{From \citep{alberts_2008}}
\end{table}

%%Print Bibliography
\printbibliography
\end{document}

在此处输入图片描述

相关内容