Nenhum número gerado automaticamente com referências

Nenhum número gerado automaticamente com referências

Acabei de começar a aprender como usar o LaTeX.

Estou usando o Texmaker4.0.1 e o MiKTeX2.9 no Win7.

Está tudo bem, até chegar à parte de referência. Tentei colocar um número de sequência na frente de cada item de referência, mas não funcionou.

Aqui está o meu código:

\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}

E obtive resultado assim:

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.

O que eu quero que seja é assim:

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

Alguém poderia me ajudar ?

PS: Outra pergunta rápida, qual a diferença entre referências e citações?

Responder1

OcolaclO pacote que você carrega em seu código impede qualquer numeração de referência thebibliographydevido à maneira como ele redefine \@biblabel. O seguinte substitui essa redefinição por colacl.sty:

insira a descrição da imagem aqui

\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}

Responder2

Compilei seu código e consegui isso...

(Tive que comentar \usepackage{colacl}porque não reconheci)

Não é o que você quer?

seu código

informação relacionada