多重引文浓缩版(不同类型) - FUQ

多重引文浓缩版(不同类型) - FUQ

这是一个后续问题同一括号内有多个引用


我想在同一个\cite{}命令中引用多个作者,而不是将每个作者分开。它对于某一特定类型的引用(例如仅文章)很有效,但当混合不同类型的出版物(例如@book、@article、@THESIS)时会出现错误。

\cite{ref1}, \cite{ref2} ----> [1], [2]好的!

\cite{ref1,ref2} ----> [1, 2]好!对于相同类型的引用(参考文献1参考文献2是冠词)。

\cite{ref1,ref2} ----> [1, 2] FAIL! 引用不同类型的引用(参考文献1作为一篇文章参考文献2一篇論文。

如何解决我的文档中的该问题?

OBS1:我的论文需要这种引用,但我做不到。引用包是abntcite

2. OBS2 简介:我使用的文档样式是我所在机构的标准(针对博士和硕士论文),我不知道文档类的每个细节。我甚至无法制作一个可以工作的 MWE。我仍在尝试:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{book,
  editor        = "J. C. Candy and G. C. Temes",
  title         = "Oversampling Delta-Sigma Data Converters Theory, Design and Simulation",
  publisher     = "{IEEE} Press.",
  location      = "New York",
  year          = "1992"
}
@article{article1,
  author        = "A. Castaldini and A. Cavallini and B. Fraboni and P. Fernandez and J. Piqueras",
  title         = "Midgap Traps Related to Compensation Processes in {CdTe} Alloys",
  journaltitle  = "Phys. Rev. B.",
  volume        = "56",
  number        = "23",
  year          = "1997",
  pages         = "14897-14900"
}
@article{article2,
  author        = "M. Coates and A. Hero and R. Nowak and B. Yu",
  title         = "Internet Tomography",
  journaltitle  = "IEEE J. Selected Areas Commun.",
  month         = 05,
  year          = "2002",
  note          = "to be published"
}
@THESIS{PhD1,
author = {Souza, J. R. de}, 
title = {Model},
school = inpebr,
year = {1997},
type = GESPhD,
address = sjc,
pages = {182},
note = { },
url = { }
}%
@MISC{oliveira,
   organization = {Instituto Tecnologico de Aeronautica - ITA},
   author   = {Oliveira, A. B. V. and  Walter, F.},
   title    = {Ionospheric equatorial anomaly studies during solar storms},
   year = {2005},
   url = { },
   urlaccessdate = { },
   note      = {In: International Union of Radio Science},
   address   = {São José dos Campos – SP},
   publisher = {Instituto Tecnológico de Aeronáutica},
}
\end{filecontents*}
\documentclass[12pt,twoside,onecolumn,openright,a4paper]{report}
\gdef\@tipocitacao{alf}
\DeclareOption{CitacaoNumerica}{%
    \typeout{-------------->Opcao: CitacaoNumerica}
    \gdef\@tipocitacao{num}
}
%%% Pacote da ABNTeX para referências dentro das normas %%%
\gdef\@sepbr{no} %% yes ou no para pagebackref em abnt-verbatim-entry

%\gdef\@tipocitacao{num}
\usepackage[debug,pagebackref=\@ativapbr,breaklinks,bookmarksopen=true,colorlinks=true,linkcolor=bblue,citecolor=bblue,urlcolor=bblue,filecolor=bblue,bookmarksnumbered=true,hyperindex=true,verbose=true]{hyperref}

\usepackage[\@tipocitacao,abnt-emphasize=bf,abnt-etal-cite=2,abnt-etal-list=0,abnt-repeated-title-omit=yes,abnt-show-options=warn,abnt-verbatim-entry=\@sepbr,abnt-url-package=url]{abntcite}
%% Ativa bibliografia explicita (abnt-verbatim-entry) no formato bibtex
%% incompatível com o backref.sty por enquanto (ou um ou outro)
\gdef\@ativapbr{true} %% true or false : ativa pagebackref


\bibliography{\jobname}

\begin{document}

\cite{book, article1, article2}

\printbibliography

\end{document}

答案1

现在 OP 可能已经完成了她的论文,但我们还是开始吧……

首先,我发现一些参考书目条目缺少逗号(,)和字段分隔符({ }" "),所以就是这样。另外,我不知道您是否定义了它并忘记将其放入 MWE 中,但没有标准bblue颜色hyperref,这也是这样。其次(据我所知)您应该使用 normal\usepackage进行文档编写,而不是使用类编写命令\RequirePackage,对于 也是如此\DeclareOption

最后,回答这个问题:我不太清楚问题出在哪里abntcite,老实说,我不在乎。你也不应该,因为它已被弃用。abntex类和abntcite包都有新版本,并且得到了妥善维护:abntex2abntex2cite分别,应该改用(两个手册都在 pt_BR 中)。经过适当的修改和使用,abntex2cite您的代码就可以编译了!检查一下。

\documentclass[12pt,twoside,onecolumn,openright,a4paper]{report}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{book,
  editor        = "J. C. Candy and G. C. Temes",
  title         = "Oversampling Delta-Sigma Data Converters Theory, Design and Simulation",
  publisher     = "{IEEE} Press.",
  location      = "New York",
  year          = "1992"
}

@article{article1,
  author        = "A. Castaldini and A. Cavallini and B. Fraboni and P. Fernandez and J. Piqueras",
  title         = "Midgap Traps Related to Compensation Processes in {CdTe} Alloys",
  journaltitle  = "Phys. Rev. B.",
  volume        = "56",
  number        = "23",
  year          = "1997",
  pages         = "14897-14900"
}

@article{article2,
  author        = "M. Coates and A. Hero and R. Nowak and B. Yu",
  title         = "Internet Tomography",
  journaltitle  = "IEEE J. Selected Areas Commun.",
  month         = 05,
  year          = "2002",
  note          = "to be published"
}

@THESIS{PhD1,
author = "Souza, J. R. de", 
title = "Model",
school = "inpebr",
year = "1997",
type = "GESPhD",
address = "sjc",
pages = "182"
}

@MISC{oliveira,
   organization = "Instituto Tecnologico de Aeronautica - ITA",
   author   = "Oliveira, A. B. V. and  Walter, F.",
   title    = "Ionospheric equatorial anomaly studies during solar storms",
   year = "2005",
   note      = "In: International Union of Radio Science",
   address   = "São José dos Campos – SP",
   publisher = "Instituto Tecnológico de Aeronáutica"
}
\end{filecontents*}

\usepackage[debug,
            pagebackref=true,
            breaklinks,
            bookmarksopen=true,
            colorlinks=true,
            linkcolor=blue,
            citecolor=blue,
            urlcolor=blue,
            filecolor=blue,
            bookmarksnumbered=true,
            hyperindex=true,
            verbose=true]{hyperref}

\usepackage[alf,
            abnt-emphasize=bf,
            abnt-etal-cite=2,
            abnt-etal-list=0,
            abnt-repeated-title-omit=yes,
            abnt-show-options=warn,
            abnt-verbatim-entry=no,
            abnt-url-package=url]{abntex2cite}

\begin{document}

\cite{book, article1, article2}

\bibliography{\jobname}

\end{document}

此外,如果您没有该abntex2cite软件包,请考虑将您的 TeX 发行版升级到最新版本。或者,如果您知道如何操作,请手动添加相关的类/软件包。

相关内容