我正在尝试在自定义论文类在这里。
使用 bibTeX 的此类的说明请参见本文件第 5.6.2 节(第 7 页)
我正在使用cite
带有该noadjust
选项的软件包,但文中引用的格式\cite{reference1,reference2}
为 [1,2] 而不是 IEEE 样式 [1],[2];\cite{reference3,reference4,reference5,reference6}
格式为 [3-6] 而不是 [3]-[6]。
我究竟做错了什么?
梅威瑟:
\documentclass[chap]{thesis}
\usepackage[noadjust]{cite}
\begin{document}
\include{rpititle-phd} % titlepage material for PhD thesis
\include{rpiack} % include for acknowledgements
\include{rpiabs} % abstract
\include{rpichap1} % chapter 1
\include{rpichap2} % chapter 2
\include{rpibib} % bibliography
\include{rpiapp} % appendix
\end{document}
rpibib.tex 的 MWE:
\specialhead{REFERENCES}
\bibliographystyle{IEEEtran} % specify bibliography style
\begin{singlespace}
\bibliography{myrefs.bib} % Prints the bibliography here, using "myrefs.bib"
\end{singlespace}
myrefs.bib 的 MWE
@article{thisbook,
author = {Kris Kringle and Nicholas, Saint},
title ={Methods for flight with reindeer power in non-aerodynamic bodies},
journal = {Journal of Holiday Science},
volume = {25},
number = {36},
pages = {32-39},
month = {Dec.},
year = {2019},
note ={PMID: 8907435},
doi = {10.4294/jhsc4302},
URL = {https://https://dotcio.rpi.edu/services/printing-publishing/thesis-preparation}
}
@article{anotherbook,
author = {Kris Kringle and Nicholas, Saint},
title ={Methods for flight with reindeer power in non-aerodynamic bodies},
journal = {Journal of Holiday Science},
volume = {25},
number = {36},
pages = {32-39},
month = {Dec.},
year = {2019},
note ={PMID: 8907435},
doi = {10.4294/jhsc4302},
URL = {https://https://dotcio.rpi.edu/services/printing-publishing/thesis-preparation}
}
@article{yetanotherbook,
author = {Kris Kringle and Nicholas, Saint},
title ={Methods for flight with reindeer power in non-aerodynamic bodies},
journal = {Journal of Holiday Science},
volume = {25},
number = {36},
pages = {32-39},
month = {Dec.},
year = {2019},
note ={PMID: 8907435},
doi = {10.4294/jhsc4302},
URL = {https://https://dotcio.rpi.edu/services/printing-publishing/thesis-preparation}
}
答案1
定制论文课程对于引用标点符号的定义似乎不完整。
将以下内容粘贴到文件IEEEtran.cls
中thesis.cls
似乎解决了该问题:
%% CITATION AND BIBLIOGRAPHY COMMANDS
%%
%% V1.6 no longer supports the older, nonstandard \shortcite and \citename setup stuff
%
%
% Modify Latex2e \@citex to separate citations with "], ["
\def\@citex[#1]#2{%
\let\@citea\@empty
\@cite{\@for\@citeb:=#2\do
{\@citea\def\@citea{], [}%
\edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
\if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
\@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
\G@refundefinedtrue
\@latex@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
{\hbox{\csname b@\@citeb\endcsname}}}}{#1}}
% V1.6 we create hooks for the optional use of Donald Arseneau's
% cite.sty package. cite.sty is "smart" and will notice that the
% following format controls are already defined and will not
% redefine them. The result will be the proper sorting of the
% citation numbers and auto detection of 3 or more entry "ranges" -
% all in IEEE style: [1], [2], [5]--[7], [12]
% This also allows for an optional note, i.e., \cite[mynote]{..}.
% If the \cite with note has more than one reference, the note will
% be applied to the last of the listed references. It is generally
% desired that if a note is given, only one reference is listed in
% that \cite.
% Thanks to Mr. Arseneau for providing the required format arguments
% to produce the IEEE style.
\def\citepunct{], [}
\def\citedash{]--[}