发信人: scl (Hello, friends), 信区: TeX
标 题: 参考文献引用 [2-5], or [2] - [5]方法
发信站: 水木社区 (Sun Sep 17 06:40:15 2006), 站内
别笑偶,偶也是刚刚知道怎么用,估计还有些同学不知道,写出来希望对大家有点用。这个方法对我有用,不知道是否是通用的,我不懂这些语法,如果不对请大家指点一下,谢谢。
如果只需要象[2-5], 很简单,用\usepakage{cite}就可以了,不行的话,请去download最新的cite.sty文件。
如果要象[2] - [5],除了用\usepakage{cite}外,再加下面一段:
\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}}
\def\citepunct{], [}
\def\citedash{]--[}
我是放在.cls文件里用的,不知道放在别的地方行不行。还有,上面的#1, #2啥的不知道会有什么问题(别笑偶,真的不知道,没有去学LaTex语法)
--
Life is happy~~
※ 来源:·水木社区 http://newsmth.net·[FROM: 128.194.79.*]
2008-04-21
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment