
私はLaTeXの使い方を学び始めたばかりです。
私はWin7でTexmaker4.0.1とMiKTeX2.9を使用しています。
参照部分に到達するまではすべて正常です。各参照項目の前にシーケンス番号を取得しようとしましたが、機能しません。
これが私のコードです:
\documentclass[11pt]{article}
\usepackage{colacl}
\usepackage[numbers]{natbib}
\sloppy
\title{Report}
\author{Z.Pyyyy}
\begin{document}
\maketitle
\begin{abstract}
Hello, world.
\end{abstract}
\section{Chapter 1}
Text, Text\cite{Pan}.
\begin{thebibliography}{100}
\bibitem{Boney96} Boney, L., Tewfik, A.H., and Hamdy, K.N., ``Digital Watermarks for Audio Signals," \emph{Proceedings of the Third IEEE International Conference on Multimedia}, pp. 473-480, June 1996.
\bibitem{MG} Goossens, M., Mittelbach, F., Samarin, \emph{A LaTeX Companion}, Addison-Wesley, Reading, MA, 1994.
\bibitem{HK} Kopka, H., Daly P.W., \emph{A Guide to LaTeX}, Addison-Wesley, Reading, MA, 1999.
\bibitem{Pan} Pan, D., ``A Tutorial on MPEG/Audio Compression," \emph{IEEE Multimedia}, Vol.2, pp.60-74, Summer 1998.
\end{thebibliography}
\end{document}
そして次のような結果が得られました:
Report
Z.Pyyyy
Abstract
Hello, world.
Chapter 1
Text, Text[4].
Reference
Boney, L., Tewfik, A.H., and Hamdy, K.N., "Digital Watermarks for Audio Signals", Proceedings of the Third IEEE International Conference on Multimedia}, pp. 473-480, June 1996.
Goossens, M., Mittelbach, F., Samarin, A LaTeX Companion, Addison-Wesley, Reading, MA, 1994.
Kopka, H., Daly P.W., A Guide to LaTeX, Addison-Wesley, Reading, MA, 1999.
Pan, D., ``A Tutorial on MPEG/Audio Compression," IEEE Multimedia, Vol.2, pp.60-74, Summer 1998.
私が望むのは次のようなものです:
...
Reference
[1] Boney, L., Tewfik, A.H., and Hamdy, K.N., "Digital Watermarks for Audio Signals", Proceedings of the Third IEEE International Conference on Multimedia}, pp. 473-480, June 1996.
[2] Goossens, M., Mittelbach, F., Samarin, A LaTeX Companion, Addison-Wesley, Reading, MA, 1994.
[3] Kopka, H., Daly P.W., A Guide to LaTeX, Addison-Wesley, Reading, MA, 1999.
[4] Pan, D., ``A Tutorial on MPEG/Audio Compression," IEEE Multimedia, Vol.2, pp.60-74, Summer 1998.
誰か助けてくれませんか?
PS: もう一つの簡単な質問ですが、参考文献と引用の違いは何ですか?
答え1
のcolacl
コードにロードする パッケージは、thebibliography
を再定義する方法により、内での参照番号付けを妨げます\@biblabel
。次のコードは、 によってその再定義をオーバーライドしますcolacl.sty
。
\documentclass[11pt]{article}
\usepackage{colacl}
\usepackage[numbers]{natbib}
\makeatletter
\def\@biblabel#1{\def\citename##1{##1}[#1]\hfill}
\makeatother
\sloppy
\title{Report}
\author{Z.Pyyyy}
\begin{document}
\maketitle
\begin{abstract}
Hello, world.
\end{abstract}
\section{Chapter 1}
Text, Text\cite{Pan}.
\begin{thebibliography}{100}
\bibitem{Boney96} Boney, L., Tewfik, A.H., and Hamdy, K.N., ``Digital Watermarks for Audio Signals," \emph{Proceedings of the Third IEEE International Conference on Multimedia}, pp. 473-480, June 1996.
\bibitem{MG} Goossens, M., Mittelbach, F., Samarin, \emph{A LaTeX Companion}, Addison-Wesley, Reading, MA, 1994.
\bibitem{HK} Kopka, H., Daly P.W., \emph{A Guide to LaTeX}, Addison-Wesley, Reading, MA, 1999.
\bibitem{Pan} Pan, D., ``A Tutorial on MPEG/Audio Compression," \emph{IEEE Multimedia}, Vol.2, pp.60-74, Summer 1998.
\end{thebibliography}
\end{document}
答え2
あなたのコードをコンパイルしたら、次のようになりました...
\usepackage{colacl}
(認識されなかったためコメントしました)
それはあなたが望んでいることではないですか?