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.

I have the following:

\usepackage{fontspec}
\setromanfont [Ligatures={Common}, Numbers={OldStyle}]{Palatino}

And compile with this:

xelatex main.tex

I use:

``word''

But the quotes are never curly as they should be. I can only get the curly quotes when using the default font.

Ideas?

share|improve this question

2 Answers 2

up vote 12 down vote accepted

You need to use the option Ligatures=TeX (or Mapping=tex-text for older version of fontspec), e.g.:

\setmainfont [Ligatures={Common,TeX}, Numbers={OldStyle}]{Palatino}
share|improve this answer
    
Sorry, but that didn't work for me. img.skitch.com/20110713-kp3sbip3qw4e773kh4wgabk6jq.jpg –  Honza Pokorny Jul 13 '11 at 19:52
1  
One should also use \setmainfont, as \setromanfont is deprecated in recent versions of fontspec. –  egreg Jul 13 '11 at 19:53
2  
Yes, it works: "curly" quotes in Palatino are not curly. :) –  egreg Jul 13 '11 at 19:54
    
@egreg - that didn't do it either –  Honza Pokorny Jul 13 '11 at 19:54
    
Oh! Really? That's kind of odd, no? –  Honza Pokorny Jul 13 '11 at 19:55

I found a useful fix at the link below, after many hours of searching:

https://github.com/jgm/pandoc/issues/889

Basically change

\setmonofont[]{$monofont$}

to

\setmonofont[Mapping=tex-ansi]{$monofont$}
share|improve this answer

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.