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 found that XeLaTeX cannot map letters with more than two diacritics correctly. For example, \v{\"{u}} or \v{ü} cannot produce the expected ǚ correctly. I've tried many fonts, so I think it may not depend on fonts. Any tricky way to fix this? Thanks!

share|improve this question
3  
It is font dependent. See also tex.stackexchange.com/questions/12562/… –  Ulrike Fischer Apr 16 '11 at 10:47
    
Why don’t you just use ǚ directly? At least with some fonts it produces better results. –  Debilski Apr 17 '11 at 22:08
add comment

1 Answer

up vote 7 down vote accepted

It certainly does depend on the font. Here's a selection from my machine (a Mac).

% !TEX TS-program = XeLaTeX

\documentclass[12pt]{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\newfontfamily\libertine{Linux Libertine O}
\newfontfamily\times{Times New Roman}
\newfontfamily\charis{Charis SIL}
\newfontfamily\minion{Minion Pro}
\newfontfamily\luxiserif{Luxi Serif}
\newfontfamily\biolinum{Linux Biolinum O}
\newfontfamily\lmr{Latin Modern Roman}
\newfontfamily\junicode{Junicode}
\newfontfamily\cambria{Cambria}
\newfontfamily\arialmt{Arial Unicode MS}
\newfontfamily\doulos{Doulos SIL}
\newcommand{\testchar}{\v{\"{u}} or \v{ü}}
\begin{document}
\begin{tabular}{lr}
Linux Libertine O &{\libertine\testchar}\\
Junicode & {\junicode\testchar}\\
Charis SIL &{\charis\testchar}\\
Doulos SIL & {\doulos\testchar}\\
Latin Modern &{\lmr\testchar}\\
Times New Roman &{\times\testchar}\\
Minion Pro &{\minion\testchar}\\
Luxi Serif & {\luxiserif\testchar}\\
Linux Biolinum O & {\biolinum\testchar}\\
Cambria & {\cambria\testchar}\\
Arial Unicode MS & {\arialmt\testchar}
\end{tabular}
\end{document}

output of code

share|improve this answer
    
Linux Libertine does not work for me on Linux. Might be OS dependent. –  Caramdir Apr 16 '11 at 3:38
    
@Caramdir Linux Libertine or Linux Libertine O? Or maybe you have duplicate fonts in your system? –  Alan Munn Apr 16 '11 at 3:43
    
Linux Libertine O (I just copied your example and removed all other fonts (as I don't have most of them). –  Caramdir Apr 16 '11 at 3:46
1  
Charis SIL works. Maybe I have an outdated version of Linux Libertine O. –  Caramdir Apr 16 '11 at 3:48
3  
Yes. Version 4.7.5 (from the website) works, while 4.4.1 (from Ubuntu packages) doesn't. –  Caramdir Apr 16 '11 at 3:56
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.