How to define a new font family on Beamer?
I've tried this way, but I get Undefined control sequence
:
\newfontfamily\fff{xxx.ttf}
Any good idea, please?
Thanks in advance!
\documentclass[12pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage{biblatex}
\newcommand\palatino{\fontfamily{ppl}\selectfont}
\begin{document}
\begin{frame}{\palatino Title in Palatino}{Subtitle}
foo
\end{frame}
\end{document}
A list of the family names for pdftex
is available here: http://mirrors.ctan.org/info/fontname/fontname.pdf (p. 30ff)
If you want to use a TrueType or OpenType font then use xelatex
or lualatex
. Then it is easier, for example:
\newfontfamily\DVS{Deja Vu Sans}
ttf
file as a font style with pdfLaTeX ?
\newfontfamily
is part of the packagefontenc
You are not able to use this with pdfLaTeX. If you are willing to change to LuaLaTeX, I can show you an answer. If not, you have to search for packages which load the font you like.T1
option. But, in my case i'm note able to compile my presentation with another compiler. I can only use here pdfLaTex. In fact I'm just trying to reproduce this font style. If you have another suggestion to get arround this situation, you can post it as an answer.fontspec
package, notfontenc
. And getting this font to work with pdflatex is possible but not easy. Can you really not use xelatex?