作者andrew43 (讨厌有好心推文後删文者)
看板LaTeX
标题Re: [问题] citation格式
时间Tue Jun 9 06:52:11 2015
一个完整的例子。
\documentclass[a4paper, 12pt, oneside]{book}
\usepackage{cite}
% 这是重点; 从 IEEEtran.cls 找来的
\def\citepunct{], [}
\def\citedash{]--[}
\begin{document}
\verb+\cite{ref1}+
\cite{ref1}
\verb+\cite{ref1, ref2}+
\cite{ref1, ref2}
\verb+\cite{ref1, ref2, ref3}+
\cite{ref1, ref2, ref3}
\begin{thebibliography}{99}
\bibitem{ref1}
This is ref1.
\bibitem{ref2}
This is ref2.
\bibitem{ref3}
This is ref3.
\end{thebibliography}
\end{document}
※ 引述《Buuuster (Born slippy)》之铭言:
: 已爬文,但找不到解答。
: 以前用latex写paper时,是直接引用IEEE上的公版
: \documentclass[journal]{IEEEtran}
: \usepackage{cite}
: 当时跑出来的多重citation是[1]-[9],这是我想要的
: 但现在写论文时,用网路上大大分享的格式
: \documentclass[a4paper, 12pt, oneside]{book}
: \usepackage{cite}
: 这样跑出来的是[1-9],在我们领域比较少人这样用
: 我也不确定跟\documentclass有无关系,但其他似乎都无关
: 不知道有没有办法让多重citation是[1]-[9]?谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 122.117.37.172
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LaTeX/M.1433803935.A.917.html
1F:推 Buuuster: 非常感激!加入关键那两行就可以了,谢谢 06/10 01:55