Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

As soon as I use fontspec in my biblatex xelatex document, my quotes stop appearing as proper quotes ", and start appearing as a pair of `` and ''.

My minimal working example, first:

\documentclass{book}
\listfiles
\usepackage[stretch=10]{microtype}
\usepackage[quiet]{fontspec}
\usepackage[backend=biber]{biblatex}
\usepackage{hyperref}
\addbibresource{./bibliography/references.bib}


\begin{document}
Hello world [\cite{Bonaini_Memoria}]

\printbibliography
\end{document

Everything looks good here: enter image description here

then I add setmainfont:

\documentclass{book}
\listfiles
\usepackage[stretch=10]{microtype}
\usepackage[quiet]{fontspec}
\usepackage[backend=biber]{biblatex}
\usepackage{hyperref}
\addbibresource{./bibliography/references.bib}


\setmainfont{Linux Libertine O}
\begin{document}
Hello world [\cite{Bonaini_Memoria}]

\printbibliography
\end{document}

and the thing breaks:

enter image description here

For completeness here is my bibliography biblatex entry:

@Article{Bonaini_Memoria,
  author="Bonaini, F.",
  title={Memoria unica sincrona di Leonardo Fibonacci novamente scoperta.},
  journaltitle="Giornale Storico degli Archivi Toscani.",
  date=1857,
  volume="Vol. I.",
  pages={239--246},
  language={italian}

This seems a mystery to me! Any help would be greatly appreciated.

EDIT: What is weird, is if I take out the setmainfont directive, and instead usepackage{libertineotf} everything works great. :?

share|improve this question
add comment

1 Answer 1

Putting \setmainfont[Mapping=tex-text]{Linux Libertine O} should be useful for this case.

Please see this post by Alan Munn on fonts. That question and answer both by Alan is excellent for font management.

share|improve this answer
    
Did I put the right link? –  percusse Mar 9 '12 at 2:13
    
@percusse Thanks a lot. That is it. and what a post it is. –  Harish Kumar Mar 9 '12 at 2:15
    
In his answer Alan uses [Ligatures=TeX]. What is the advantage of using [Mapping=tex-text] or vise versa? –  drozzy Mar 9 '12 at 2:29
    
In fact Ligatures should be used instead, as per fontspec manual: but for consistency Ligatures=TeX will perform the same function as Mapping=tex-text. –  drozzy Mar 9 '12 at 2:31
    
[Mapping=tex-text] I believe was an old way of indicating that fontspec should replicate the typical ligature behavior of Latex. It is now the way that tells XeTeX to use these ligatures whereas Ligatures=TeX is for LuaTeX. Fontspec will work with Ligature=TeX when using XeTeX; I do not think th reverse is true. –  Amphipolis Mar 9 '12 at 19:51
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.