引用同一作者、不同来源的问题

引用同一作者、不同来源的问题

我正在使用 Jabref 和 \IEEEtrans 包。我尝试在参考文献中引用同一作者的不同来源(两次)。它出现了两次,但作者姓名只出现了一次。我想要像这样

[1] M. Shapiro,“轮胎制造”,2012 年。

[2] M. Shapiro,“热力学性质”,2012年。

需要帮忙

\documentclass[a4paper,12pt]{article}
%------------------------------------------------------------------
\usepackage{ragged2e}
\usepackage{gensymb}
\usepackage{tabto}
\usepackage[none]{hyphenat}
\usetikzlibrary{calc}
\usepackage{soul}
\usepackage{datetime}
\newdate{date}{23}{09}{2016}
\date{\displaydate{date}}
\newcommand\HRule{\rule{\textwidth}{1pt}}
\usepackage{tabularx} % extra features for tabular environment
\usepackage{graphicx} % takes care of graphic including machinery
\usepackage[left=3cm,right=1in,top=1in,bottom=1in]{geometry} % decreases margins
\usepackage{cite} % takes care of citations
%\usepackage{biblatex}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[R]{\thepage}

\begin{document}
this is \cite{Shapiro1,Shapiro2}
\bibliographystyle{IEEEtran}
\bibliography{LiteratureReveiw}

\end{document}


@TechReport{Shapiro1,
  author      = {Shapiro, M.},
  title       = {Development of the enthalpy storage materials, mixture of methyl stearate and methyl palmitate},
  institution = {Florida Solar Energy Center},
  year        = {1989},
}
@TechReport{Shapiro2,
  author      = {Shapiro, M.},
  title       = {Development of the enthalpy storage materials, mixture of capric acid and lauric acid with fire retardants},
  institution = {Florida Solar Energy Center},
  year        = {1989},
}

答案1

首先,请允许我正确定义问题。问题出在IEEEtran书目中,其中同名的作者被替换为-------。作为一个例子,当我重新生成您的代码时,我看到了以下内容: 在此处输入图片描述

这是由于IEEEtrans.bst样式所致。为了解决这个问题,您应该IEEEtranBSTCTL在 bib 数据库中定义一个条目并更改默认值,如下CTLdash_repeated_names所示:

\begin{filecontents}{\jobname.bib}
@IEEEtranBSTCTL{IEEEexample:BSTcontrol,
CTLdash_repeated_names= "no",
}
\end{filecontents}

因此我们可以在主文件中使用宏执行如下操作:

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@IEEEtranBSTCTL{IEEEexample:BSTcontrol,
CTLdash_repeated_names= "no",
}

@TechReport{Shapiro1,
  author      = {Shapiro, M.},
  title       = {Development of the enthalpy storage materials, mixture of methyl stearate and methyl palmitate},
  institution = {Florida Solar Energy Center},
  year        = {1989},
}
@TechReport{Shapiro2,
  author      = {Shapiro, M.},
  title       = {Development of the enthalpy storage materials, mixture of capric acid and lauric acid with fire retardants},
  institution = {Florida Solar Energy Center},
  year        = {1989},
}
\end{filecontents}

\documentclass{IEEEtran}


\begin{document}

\bstctlcite{IEEEexample:BSTcontrol}

First one \cite{Shapiro1}. This is the second one \cite{Shapiro2}.


\bibliographystyle{IEEEtran}
\bibliography{\jobname}
\end{document}

我们\bstctlcite{IEEEexample:BSTcontrol}在 tex 文件主体中激活此更改。因此结果如下: 在此处输入图片描述

卑鄙的伎俩:\vspace{0mm}一个卑鄙的伎俩是在作者名字中 添加一个,例如\vspace{0mm}Shapiro。当然,我们完全不推荐这样做。希望这对你有帮助。

答案2

这是使用IEEEtran: 时的正常输出,而不是重复作者姓名,而是使用破折号。

\begin{filecontents*}{\jobname.bib}
@TechReport{Shapiro1,
  author      = {Shapiro, M.},
  title       = {Development of the enthalpy storage materials, mixture of methyl stearate and methyl palmitate},
  institution = {Florida Solar Energy Center},
  year        = {1989},
}
@TechReport{Shapiro2,
  author      = {Shapiro, M.},
  title       = {Development of the enthalpy storage materials, mixture of capric acid and lauric acid with fire retardants},
  institution = {Florida Solar Energy Center},
  year        = {1989},
}
\end{filecontents*}

\documentclass[a4paper,12pt]{article}

\begin{document}
this is \cite{Shapiro1,Shapiro2}
\bibliographystyle{IEEEtran}
\bibliography{\jobname}

\end{document}

在此处输入图片描述

如果您不想要破折号,请使用不同的参考书目样式。或者,更复杂一点,将IEEEtran.bst工作目录复制到名称下IEEEtran-mod.bst,并将第 128 行从

FUNCTION {default.is.dash.repeated.names} { #1 }

FUNCTION {default.is.dash.repeated.names} { #0 }

\bibliographystyle{IEEEtran-mod}现在在您的文档中使用,然后再次运行pdflatex,您将获得bibtexpdflatex

在此处输入图片描述

相关内容