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}

그리고 턱받이 파일 "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-ieee(CTAN). TeXLive 배포판이 제공하는 버전인 1.1n에서는 압축이 작동하지 않습니다.

관련 정보