Неопределенная цитата

Неопределенная цитата

Я делаю свою первую библиографию и получаю ошибки уже целый час. Файл .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}

И нагрудник:

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

Не могли бы вы помочь мне справиться с этой проблемой? Спасибо.

решение1

В вашем коде есть несколько ошибок.

  1. LaTeX нужна команда, которая будет знать, где следует печатать библиографию на основе цитируемых вами книг, статей и т. д.
  2. В вашем файле bib есть некоторые ошибки. Я исправил их в моем следующем MWE (см. добавленные запятые и использование поля url).
  3. Вы используете кодировку utf-8. Вот почему я использовал пакет biblatexи программу biberдля создания библиографии, потому что biber может обрабатывать utf-8, bibtexа не.

MWE, компиляция без ошибок:

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

и полученная библиография:

результирующая библиография

Связанный контент