You're misusing XeLaTeX. Your files must be saved as UTF-8 (well, it's possible to have other encodings, but it's definitely not recommended).
The inputenc
package mustn't be loaded; fontenc
may, but in your case it's completely useless. Don't load lmodern
, which is not tailored for XeLaTeX. Also textcomp
is generally useless with XeLaTeX. Finally, xunicode
shouldn't be called for (but it's not a problem, because it's already loaded by fontspec
). Use xltxtra
only if you need its features.
Moreover, the main font should be declared with \setmainfont
. Defining \normalfont
as a font family is wrong. After using \setmainfont
you can use \normalfont
for returning to a "clean state", as I did in the \addtokomafont. You can use
\rmfamily`, instead, if you just don't want the default sans serif font that's used by default in section titles, but you want to keep boldface.
Avoid direct calls of \fontspec
.
Here's a polished version of your document. The filecontents*
environment and \addbibresource{\jobname.bib}
are just for making the example selfcontained. Use \addbibresource{Biblio.bib}
in your document. Finally, since I don't have the font you want, I changed it, but you find the good call commented out.
\begin{filecontents*}{\jobname.bib}
@article{Ricoeur:2000ga,
author = {Ric{\oe}ur, Paul}, % I know that the problem is here :s
title = {{L'{\'e}criture de l'histoire et la repr{\'e}sentation du pass{\'e}}},
journal = {ahess},
year = {2000},
volume = {55},
number = {4},
pages = {731--747},
doi = {10.3406/ahess.2000.279877},
rating = {0},
date-added = {2014-01-29T09:45:37GMT},
date-modified = {2014-01-29T09:46:30GMT},
url = {http://www.persee.fr/web/revues/home/prescript/article/ahess_0395-2649_2000_num_55_4_279877},
uri = {\url{papers2://publication/doi/10.3406/ahess.2000.279877}}
}
@book{Deotte:1993ve,
author = {D{\'e}otte, Jean-Louis},
title = {{Le mus{\'e}e, l'origine de l'esth{\'e}tique}},
publisher = {L'Harmattan},
year = {1993},
address = {Paris},
language = {fran{\c c}ais},
rating = {0},
date-added = {2013-07-08T22:13:04GMT},
date-modified = {2014-01-29T10:03:20GMT},
uri = {\url{papers2://publication/uuid/4A77F971-C505-4B1A-AB84-6647B00EAAF0}}
}
\end{filecontents*}
\documentclass[12pt]{scrbook}
\usepackage[english,frenchb]{babel}
\usepackage{fontspec}
\usepackage[automark]{scrpage2}
\usepackage[babel,french=guillemets*]{csquotes}
\usepackage[natbib=true,style=authortitle-icomp,doi=false]{biblatex}
\usepackage{lipsum}
\frenchbsetup{FrenchFootnotes=false}
\MakeOuterQuote{"}
%\frenchspacing % already done by French
%\setmainfont{Adobe Garamond Pro} % I don't have it
\setmainfont{Linux Libertine O}
\addtokomafont{disposition}{\normalfont}
\addtokomafont{pageheadfoot}{\normalfont}
\addtokomafont{pagenumber}{\normalfont\small}
\addtokomafont{footnote}{\normalfont}
\addbibresource{\jobname.bib}
\AtBeginBibliography{\def\UrlFont{\\\scriptsize}}
\begin{document}
\lipsum[1]\footcite[13]{Deotte:1993ve}\lipsum[2]\footcite[13]{Ricoeur:2000ga}
\printbibliography % point 1
\end{document}
Here's a picture of the bibliography that I got after running Biber.
With TeXShop it's easy to change the encoding of a file: don't touch the general preferences, but simply add at the beginning of the file the line
% !TEX encoding = UTF-8 Unicode
Close and reopen the file. It should work correctly.
Load natbib
before babel
.
\begin{filecontents*}{\jobname.bib}
@article{vim:2008,
author={X Y},
title={Z},
journal={J},
year=2008,
}
\end{filecontents*}
\documentclass{article}
\usepackage{natbib}
\usepackage[UKenglish,italian,french]{babel}
\begin{document}
x~\cite{vim:2008}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
Best Answer
Your MWE can be further reduced to the following code:
That still produces the error message
Missing \endcsname inserted.
.As already discussed here, and here the
turkish
option ofbabel
makes the=
active. To overcome this, you could use the following if you want to keep shorthands active thoroughout the rest of the document.If you don't want to use any shorthands throughout the document, you might also be interested in globally turning them off using the
shorthands=off
option as shown in the following MWE:More information on this topic can also be found in section "1.10 Shorthands" of the
babel
manual.