bibtex、ieeetr スタイルで引用をグループ化する

bibtex、ieeetr スタイルで引用をグループ化する

私は参考文献を作成するためにbibtex、 を参考文献スタイルで使用していますieeetr。 IEEE スタイル マニュアルを読みましたが、引用は別の括弧で囲む必要があることはわかっています (例: ) [3], [4]

ただし、連続する場合、たとえば 3 つ以上のグループの場合はハイフンで区切る必要があることはわかっています[5]-[10]が、ieetrスタイルではこれを自動的に実行しないようです。何かアイデアはありますか? すでにパッケージを使用してみましたcite

MWE:

\documentclass{article} 
\usepackage{cite} 
\begin{document} 
This is my text, and here are some citations \cite{article1}, \cite{article2}, \cite{article3}.
\bibliography{examplebib} 
\bibliographystyle{ieeetr} 
\end{document}

そしてbibファイル「examplebib.bib」

@article{article1,
  author    = {Doe, John},
  title     = {Title of article},
  journal   = {journal of article},
  year      = {2017},
  volume    = {11},
  number    = {1},
  pages     = {11--13},
  publisher = {Journal Publisher},
}
@article{article2,
  author    = {Doe, John},
  title     = {Title of article},
  journal   = {journal of article},
  year      = {2017},
  volume    = {11},
  number    = {1},
  pages     = {11--13},
  publisher = {Journal Publisher},
}
@article{article3,
  author    = {Doe, John},
  title     = {Title of article},
  journal   = {journal of article},
  year      = {2017},
  volume    = {11},
  number    = {1},
  pages     = {11--13},
  publisher = {Journal Publisher},
}

答え1

この引用スタイルに近似したものは、次のパッケージを使用して実現できますnatbib

\usepackage[numbers,sort&compress]{natbib}
\setcitestyle{square,citesep={],[}}
\bibliographystyle{IEEEtranN}

次に、 を使用\cite{article1,article3}して を取得できます[1],[3]。ただし、 のような連続した範囲は、\cite{article1,article2,article3}依然として を返します[1-3]。この動作はハードコードされており、\citeコマンドを再定義しない限り変更できません。

もう一つの選択肢は、パッケージbiblatexbiblatex-ieeeパッケージ(この答えなぜbabel必要なのか):

\documentclass{article} 
\usepackage[english]{babel}
\usepackage[style=ieee,backend=bibtex]{biblatex}
\addbibresource{examplebib.bib}

\begin{document}
This is my text, and here are some citations \cite{article1,article2,article3}.
\printbibliography
\end{document}

これにより、パッケージのバージョン1.2d biblatex-ieeeCTAN)。圧縮は、私の TeXLive ディストリビューションが提供するバージョンである 1.1n では機能しません。

関連情報