Fonts & Character SetsXeLaTeX | Accents with different Fonts

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
hpcalc
Posts: 3
Joined: Wed Jul 20, 2011 1:06 pm

XeLaTeX | Accents with different Fonts

Post by hpcalc »

In my text I am using a lot of characters with accents, which should be easily composed in LaTeX. This seems to be dependent on specific fonts, at least when using xelatex in MiKTeX 2.9. In particular, in many fonts I cannot compose the accent over space \'{} and in some fonts (mostly professional, for example Garamond 3 LT Std, ITC Garamond Std, ...) the \v{C} and \v{c} characters. Instead of proper accented characters I'm getting some other characters or boxes with X.

Code: Select all

\documentclass[10pt,a4paper]{book}
\usepackage{xltxtra}
%\setmainfont[Mapping=tex-text,Ligatures=Common]{Latin Modern Roman}
\setmainfont[Mapping=tex-text]{URW Palladio L}
%\setmainfont[Mapping=tex-text,Ligatures=Common]{Garamond 3 LT Std}
\begin{document}
\thispagestyle{empty}
This text is not OK: \'{ }adam\'{a}h, \v{C}u\v{c}ek.\par
This text looks better, but it's in math: $\acute{ }$ adam\'{a}h.
\end{document}
Question: Is there any way to get the (missing?) accented characters or at least the accent over space (without using the math mode)?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

XeLaTeX | Accents with different Fonts

Post by justdeath »

Everything works, if I disable your fonts or use the first one (Latin Modern Roman). The other two doesn't work.
Clipboard03.jpg
Clipboard03.jpg (6.16 KiB) Viewed 7424 times
The first accent on the first line is not visible because there is no letter written.

Command is: xelatex test.tex

And I am using TeX Live 2011 :)
dhosek
Posts: 2
Joined: Wed Jun 02, 2021 3:49 pm

XeLaTeX | Accents with different Fonts

Post by dhosek »

About a decade too late, but I thought I'd offer up that I have a solution for this for anyone else getting here via the Google:

https://www.preppylion.com/borrowing-ac ... rent-font/
Post Reply