如何抑制引文的首字母?

如何抑制引文的首字母?

我正在写论文,有些引用确实很牵强。例如,一些论文引用显示为 T.Yang & Pan(2013)T.Yang & Pan(2011)(这是同一作者的两篇不同论文);此外,大多数有两位以上作者的引用都显示为唐等人(1999年)(本文有四位作者)但其中一些显示前两位作者的名字为Goldfarb,Borror 等人(2004 年)(本文有四位作者)。

所以我只需要显示作者的姓氏杨 & 潘 (2013)即使它们可能是不同的论文(学校格式要求),并且只有第一作者的姓氏作为Goldfarb 等人(2004 年)如果有两位以上的作者。

我在这里检查了一些问题,好像是这个类似问题。但是,我从 APA 网站下载了 .bst 文件,但没有找到解决方案中提到的函数,也不知道如何替换 .bst 文件。(我使用 WinEdit)/

希望有人能帮我解答一下这个问题!谢谢!

我的 bibtex 文件为

@article{GBMA2004,
  title={Three-dimensional variance dispersion graphs for mixture-process experiments},
  author={Heidi B. Goldfarb and Connie M. Borror and Douglas C. Montgomery and Christine M. Anderson-Cook},
  journal={Journal of Quality Technology},
  volume={36},
  number={1},
  pages={109--124},
  year={2004},
  publisher={American Society for Quality}
}

@ARTICLE{YP2013,
AUTHOR={Tao Yang and Rong Pan},
year={2013},
title={A Novel Approach to Optimal {ALT} Planning with Interval Censoring},
journal={Reliability, IEEE Transaction on,},
volume={to appear on June Issue},
  number =       {},
  pages =        {},
  month =        {},
  note =         {},
  abstract =     {},
  keywords =     {},
  source =       {},
}

我的 tex 文件为

\documentclass[oneside,12pt]{memoir}
\usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}
\usepackage{apacite}
\usepackage{amssymb}
\usepackage{indentfirst}
\usepackage{algorithm2e}
\usepackage{natbib}
%\usepackage[cmex10]{amsmath}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{multirow}
\usepackage{amsthm}
\usepackage{setspace}
\newtheorem{thm}{Theorem}[chapter]
\newtheorem{proposition}{Proposition}[chapter]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{definition}{Definition}[chapter]
\usepackage{caption}

\usepackage{mathptmx}
\DoubleSpacing        
\usepackage{pwasu}     
\usepackage{graphicx}      
\usepackage{pwasu}    
\usepackage{graphicx}

\def\listofsymbols{\input{memoir/symbols} \clearpage}
\def\addsymbol #1: #2#3{$#1$ \> \parbox{5.45in}{#2 \dotfill \pageref{#3}}\\}
\def\newnot#1{\label{#1}}

\chapter{INTRODUCTION}
\DoubleSpacing
\setlength{\parindent}{0.5in}
\section{Overview}
Reliability is defined as the ability of a system or component to perform its required functions under stated conditions for a specified period of time. An easier definition is: reliability is the quality over time (\citet{GBMA2004}). Nowadays, with the rapid development. And \citet{YP2013} ....
...
...
\newpage
\SingleSpace
\setlength{\beforechapskip}{-0.1in}
\renewcommand{\bibname}{REFERENCES}%\addcontentsline{toc}{chapter}{REFERENCES}
\bibliographystyle{apacite}
\bibliography{FinalReferences}
\clearpage
\addtocontents{toc}{%
 \protect\vspace{\lineskip}%
 \protect\noindent APPENDIX\protect\par
 \protect\vspace{-\lineskip}%
}
\renewcommand{\theequation}{A.\arabic{equation}}
\setcounter{equation}{0}

\end{document}

答案1

您只显示了 bibtex 文件的一部分,但您是否碰巧有两个条目,例如:

@article{YP2013,
  author = {Tao Yang and Rong Pan},
...
@article{Yang1999,
  author = {Yang and ...},
...

换句话说,名字有时出现时带有名字,有时不带名字,或者有时带有全名,有时只带有首字母?编辑 .bib 文件以确保所有名字都以一致的缩写形式出现,有时会有所帮助。

答案2

我不确定如何在 LaTeX 中严格执行此操作,但我编写了一个 Python 程序来为您执行此操作。它会查找并删除所有空格后跟单个字符和句点的实例。它还会纠正可能导致的任何逗号重复错误。

Python 程序(确保此文件和正在修改的文件位于同一文件夹中)

测试文件(您举的例子和我从最近写的一篇论文中摘录的几个例子)

修复测试(最终结果)

希望这种事情不会违反 Tex 规则,如果您不想下载,而是想在此处发布直接的硬代码,我可以在评论中做到这一点。干杯!

相关内容