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 am trying to use a true type font in my presentation but I cannot do that withxelatex. Pdf is created although a warning is displayed but font is not chosen one. Warning is below:

(/usr/share/texmf-dist/tex/latex/beamer/translator/dicts/translator-theorem-dictionary/
translator-theorem-dictionary-English.dict)
! Extended mathchar used as mathchar (104865811).
<to be read again> 
               \relax 
l.7 \begin{document}

? 
(./basic.nav)

A basic presentation is like below.

\documentclass{beamer}

\usepackage[no-math]{fontspec}
\setmainfont[Mapping=tex-text]{Ahem}
\usepackage[defaultmathsizes]{mathastext}

\begin{document}
\title{Title}
\author{Author}
\maketitle
\end{document}

IS it possible to use true type fonts with beamer?

EDIT: Changing class to article produces expected result.

share|improve this question
    
Isn't the Ahem font a test font? I'm not sure why you would want it for your main font. Your document compiles for me. Have you tried a different TrueType font? What TeX distribution are you using? –  Alan Munn Dec 16 '12 at 4:22
    
Try using the professionalfont theme, see tex.stackexchange.com/a/26829/86 –  Loop Space Dec 16 '12 at 8:52

1 Answer 1

up vote 5 down vote accepted

There is no problem with current TeXLive 2012. However, Ahem has only 4 "characters" XPE and <space> which can already be simulated by normal square rules. Then you do not need the font at all. My working example with Ahem:

\documentclass{beamer}

\usepackage[defaultmathsizes]{mathastext}
\usepackage[no-math]{fontspec}
\newfontface\ahem{Ahem}
\begin{document}
\begin{frame}
X PE \ahem X PE
\end{frame}

\end{document}

enter image description here

share|improve this answer
    
This works like a charm. –  Ricardo Cristian Ramirez Dec 16 '12 at 14:32

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.