使用 bibliographystyle plainnat 时,如何抑制同一作者的杂项元素的自动刻字?

使用 bibliographystyle plainnat 时,如何抑制同一作者的杂项元素的自动刻字?

当使用以下 TeX 时:

\documentclass[12pt]{article}
\usepackage{natbib}
\usepackage{lipsum}
\usepackage{hyperref}
\bibliographystyle{plainnat}

\begin{filecontents}{test.bib}
@misc{centers2017underlying,
  title        = {\textit{Underlying Cause of Death 1999-2017 on CDC WONDER Online Database, released December, 2018. Data are from the Multiple Cause of Death Files, 1999-2017, as compiled from data provided by the 57 vital statistics jurisdictions through the Vital Statistics Cooperative Program}},
  author       = {{Centers for Disease Control and Prevention and National Center for Health Statistics}},
  howpublished = {\url{https://wonder.cdc.gov/ucd-icd10.html}},
  note         = {Accessed: 2019-03-01},
}

@misc{icdcomparabilityratios,
  title        = {{A Guide to State Implementation of ICD-10 for Mortality; Part II: Applying Comparability Ratios}},
  author       = {{Centers for Disease Control and Prevention and National Center for Health Statistics}},
  howpublished = {\url{https://www.cdc.gov/nchs/data/statab/document-for-the-states.pdf}},
  note         = {Accessed: 2019-03-01},
}
\end{filecontents}

\begin{document}

\lipsum[1]
\nocite{*}
\bibliography{test}
\end{document}
% Create PDF on Linux: FILE=test; pkill -9 -f ${FILE} &>/dev/null; rm -f ${FILE}*aux ${FILE}*bbl ${FILE}*bib ${FILE}*blg ${FILE}*log ${FILE}*out ${FILE}*pdf &>/dev/null; pdflatex -halt-on-error ${FILE}; bibtex ${FILE} && pdflatex ${FILE} && pdflatex ${FILE} && (xdg-open ${FILE}.pdf &)

由于作者相同(以红色突出显示),因此每个 URL 后都会添加自动字母:

问题图像

可以通过指定来覆盖自动刻字year,但我没有其他内容可以放在那里。

改为可以\bibliographystyle{plain}解决问题,但我需要plainnat

我该如何去掉这个自动刻字?

编辑:正如一个答案所建议的那样,添加year一个不打印任何内容的命令仍然会留下一个悬空逗号(也用于\usepackage[hidelinks]{hyperref}使其容易看到):

在此处输入图片描述

答案1

\nothing一个解决方法是在每个重复的命令末尾添加一些命令author。例如:

\newcommand\nothing{}
@misc{centers2017underlying,
  title        = {\textit{Underlying Cause of Death 1999-2017 on CDC WONDER Online Database, released December, 2018. Data are from the Multiple Cause of Death Files, 1999-2017, as compiled from data provided by the 57 vital statistics jurisdictions through the Vital Statistics Cooperative Program}},
  author       = {{Centers for Disease Control and Prevention and National Center for Health Statistics}},
  howpublished = {\url{https://wonder.cdc.gov/ucd-icd10.html}},
  note         = {Accessed: 2019-03-01},
}

@misc{icdcomparabilityratios,
  title        = {\textit{A Guide to State Implementation of ICD-10 for Mortality; Part II: Applying Comparability Ratios}},
  author       = {{Centers for Disease Control and Prevention and National Center for Health Statistics\nothing}},
  howpublished = {\url{https://www.cdc.gov/nchs/data/statab/document-for-the-states.pdf}},
  note         = {Accessed: 2019-03-01},
}

答案2

添加一些未显示的内容:

\begin{filecontents}{test.bib}
    @misc{centers2017underlying,
        title        = {\textit{Underlying Cause of Death 1999-2017 on CDC WONDER Online Database, released December, 2018. Data are from the Multiple Cause of Death Files, 1999-2017, as compiled from data provided by the 57 vital statistics jurisdictions through the Vital Statistics Cooperative Program}},
        author       = {{Centers for Disease Control and Prevention and National Center for Health Statistics}},
        howpublished = {\url{https://wonder.cdc.gov/ucd-icd10.html}},
        note         = {Accessed: 2019-03-01\noShow{a}},
    }

    @misc{icdcomparabilityratios,
        title        = {{A Guide to State Implementation of ICD-10 for Mortality; Part II: Applying Comparability Ratios}},
        author       = {{Centers for Disease Control and Prevention and National Center for Health Statistics}},
        howpublished = {\url{https://www.cdc.gov/nchs/data/statab/document-for-the-states.pdf}},
        note         = {Accessed: 2019-03-01\noShow{b}},
    }
\end{filecontents}
\documentclass[12pt]{article}
\usepackage{lipsum}
\usepackage{hyperref}
\usepackage{natbib}
\bibliographystyle{plainnat}
\providecommand{\noShow}[1]{}
\begin{document}
    \lipsum[1]
    \nocite{*}
    \bibliography{test}
\end{document}

相关内容