Cita indefinida

Cita indefinida

Estoy haciendo mi primera bibliografía y recibo errores desde hace una hora. El archivo .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}

Y el babero:

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

¿Podría ayudarme a solucionar este problema? Gracias.

Respuesta1

Hay varios errores en su código.

  1. LaTeX necesita un comando para saber dónde debe imprimir la bibliografía, en función de los libros, artículos, etc. citados.
  2. Su archivo dorsal tiene algunos errores. Los corregí en mi siguiente MWE (consulte las comas agregadas y el uso del campo url).
  3. Estás utilizando la codificación utf-8. Esa es la razón por la que utilicé el paquete biblatexy el programa biberpara crear la bibliografía, porque biber puede manejar utf-8, bibtexno.

MWE, compilando sin errores:

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

y la bibliografía resultante:

bibliografía resultante

información relacionada