无法使用 \capitalisewords 将 \citeauthor 大写

无法使用 \capitalisewords 将 \citeauthor 大写

我正在处理一位姓氏为“dos Santos”的引文作者。我想将“dos”大写,因为它出现在句子的开头。这是我的主要论文代码。

\documentclass[conference]{IEEEtran}
%\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the
%first footnote. If that is
%unneeded, please comment it out.
%\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage[numbers,square,comma]{natbib}
\usepackage{mfirstuc}
%\usepackage[useprefix=false,backend=natbib]{biblatex}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\begin{document}
\capitalisewords{\Citeauthor{10.1145/3196321.3196342}}

\bibliographystyle{unsrtnat}
\bibliography{refs} 
\end{document}

这是我的 refs.bib

@inproceedings{10.1145/3196321.3196342,
author = {dos Santos, Rodrigo Magalh\~{a}es and Gerosa, Marco Aur\'{e}lio},
title = {Impacts of Coding Practices on Readability},
year = {2018},
isbn = {9781450357142},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3196321.3196342},
doi = {10.1145/3196321.3196342},
abstract = {Several conventions and standards aim to improve maintainability of software code. However, low levels of code readability perceived by developers still represent a barrier to their daily work. In this paper, we describe a survey that assessed the impact of a set of Java coding practices on the readability perceived by software developers. While some practices promoted an enhancement of readability, others did not show statistically significant effects. Interestingly, one of the practices worsened the readability. Our results may help to identify coding conventions with a positive impact on readability and, thus, guide the creation of coding standards.},
booktitle = {Proceedings of the 26th Conference on Program Comprehension},
pages = {277–285},
numpages = {9},
keywords = {code comprehension, software developers' opinions survey, code readability, programming style, coding best practices},
location = {Gothenburg, Sweden},
series = {ICPC '18}
}

每次我尝试使用 pdfLatex 编译它时,我都会得到以下信息

! Argument of \@citex has an extra }.
<inserted text> 
                \par 
l.59 ...ords{\Citeauthor{10.1145/3196321.3196342}}

我不知道如何解决这个问题,也找不到任何地方的解决方案。

答案1

我认为你可以用以下方式引用:

\begin{thebibliography}{1}

\bibitem{DosSantos}
Dos Santos, Rodrigo Magalh\~{a}es and Gerosa, Marco Aur\'{e}lio, "Impacts of Coding Practices on Readability",  \emph{In Proceedings of the 26th Conference on Program Comprehension (ICPC '18). Association for Computing Machinery, New York, NY, USA, 277–285. DOI:https://doi.org/10.1145/3196321.3196342}
\end{thebibliography}

并在文中引用:

Random text Dos {\em et al.} \cite{DosSantos}

相关内容