Citação indefinida

Citação indefinida

Estou fazendo minha primeira bibliografia e estou recebendo erros há uma hora. O arquivo .tex:

\documentclass[francais,10pt,twosides,a4paper]{report}

\usepackage[francais,polutonikogreek]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{url}
\usepackage{textgreek}

\begin{document}
\begin{quotation}
 notre âme. \cite{ref1}
 \end{quotation}
 \end{document}

E o babador:

@book
{ref1,
  title = {Manuel d’Épictète}
  author = {Arrien}
  publisher = {Wikisource \url{https://fr.wikisource.org/wiki/Manuel_d>%E2%80>>%99%C3%89pict%C3%A8te_(trad._Thurot)#I._Distinction_entre_ce_qui_d.C3.A9pend_de_nous_et_ce_
 qui_ne_d.C3.A9pend_pas_de_nous}},
  note = {Traduit par Jean-François Thurot} 
  year = {1889}
}

Você poderia me ajudar a lidar com esse problema? Obrigado.

Responder1

Existem vários erros no seu código.

  1. O LaTeX precisa de um comando para saber onde deve imprimir a bibliografia, com base nos livros citados, artigos etc.
  2. Seu arquivo bib contém alguns erros. Eu os corrigi no seguinte MWE (veja as vírgulas adicionadas e o uso do campo url).
  3. Você está usando a codificação utf-8. Por isso usei pacote biblatexe programa biberpara criar a bibliografia, porque o biber aguenta utf-8, bibtexnão.

MWE, compilando sem erros:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
@article{einstein,
  author  = {Albert Einstein},
  title   = {{Zur Elektrodynamik bewegter Körper}. ({German}) 
             [{On} the electrodynamics of moving bodies]},
  journal = {Annalen der Physik},
  volume  = {322},
  number  = {10},
  pages   = {891--921},
  year    = {1905},
  DOI     = {http://dx.doi.org/10.1002/andp.19053221004},
}
@book{ref1,
  title     = {Manuel d’Épictète},
  author    = {Arrien},
  publisher = {Wikisource},
  url       = {https://fr.wikisource.org/wiki/Manuel_d>%E2%80>>%99%C3%89pict%C3%A8te_(trad._Thurot)#I._Distinction_entre_ce_qui_d.C3.A9pend_de_nous_et_ce_
 qui_ne_d.C3.A9pend_pas_de_nous},
  note      = {Traduit par Jean-François Thurot}, 
  year      = {1889},
}
\end{filecontents*}


\documentclass[francais,10pt,twosides,a4paper]{report}

\usepackage[francais,polutonikogreek]{babel}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}    %

\usepackage{lmodern}
\usepackage[hyphens]{url} %  <==========================================
\usepackage{textgreek}

\usepackage[
  backend=biber, % bibtex  % bibtex or biber (prefered)
  natbib=true,
  style=numeric,
  sorting=none  % none, nty % no sorting or standard sorting
]{biblatex} %  <========================================================
\addbibresource{\jobname.bib} % calls bib file to create the bibliography

\begin{document}
We first cite Albert Einstein~\cite{einstein}, second~\cite{adams} and 
third the \LaTeX{} Companian~\cite{goossens}.

\begin{quotation}
 notre âme. \cite{ref1}
\end{quotation}

\printbibliography
\end{document}

e a bibliografia resultante:

bibliografia resultante

informação relacionada