참조가 포함된 자동 생성 번호 없음

참조가 포함된 자동 생성 번호 없음

방금 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.

누구든지 나를 도와줄 수 있나요?

추신: 또 다른 간단한 질문입니다. 참고문헌과 인용의 차이점은 무엇입니까?

답변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}( 인식하지 못해서 댓글을 달게 되었습니다 .)

그것은 당신이 원하는 것이 아닌가?

당신의 코드

관련 정보