## LaTeX forum ⇒ Text Formatting ⇒ beamer font

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
palazzo
Posts: 4
Joined: Mon Oct 25, 2010 6:06 am

### beamer font

hello, I was trying to change the headings using \setbeamerfont{title}{shape=\scshape,series=\bfseries} but as I use the command \renewcommand{\rmdefault}{rm} it seems to undo what I did before.

Also, I would like to combine serif text with sans-serif math. Is there a way to do it?

Thanks a lot for your help!

Ignacio

\documentclass[serif ,mathsansserif ,professionalfont]{beamer}
\usepackage{amsfonts}
\usepackage{beamerprosper}
\usepackage{mathptmx}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{lmodern}
\usepackage{hyperref}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{amsmath}
\usepackage{mathpazo}
\usepackage{hyperref}
\usepackage{multimedia}
\usepackage{amssymb}
\usepackage{amscd}
\usepackage[longnamesfirst]{natbib}
\usepackage{epstopdf}
\usepackage{floatflt}
\usepackage{ifthen}
\usepackage{pgfmath}
\usepackage{tikz,ifthen}

\mode<presentation>
{\usefonttheme{serif} % structureitalicserif,structureitalicserif
\setbeamercovered{transparent}
}

\setbeamerfont{frametitle}{shape=\scshape,series=\bfseries}
\setbeamerfont{title}{shape=\scshape,series=\bfseries}

\renewcommand{\rmdefault}{rm}

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA
Please read this description of what a minimal working example should look like.

What are you hoping to accomplish with:
\renewcommand{\rmdefault}{rm}

? That command makes little sense to me.

What fonts do you actually want?

Also, I would like to combine serif text with sans-serif math. Is there a way to do it?

Using the command:
\usefonttheme[stillsansserifmath]{serif}

in your preamble instead of \usefonttheme{serif} should give you serif text with sans serif math.

palazzo
Posts: 4
Joined: Mon Oct 25, 2010 6:06 am
Thanks, I was very confused indeed. I kept lmodern as the package for font. I think this package creates conflict when I do \setbeamerfont{frametitle}{shape=\scshape,series=\bfseries}.If I use palatino instead, the transformation takes place.

I think I realise now that the command \renewcommand{\rmdefault}{rm}
was useless because this was already exectued by some of the packages. Is there any way to select some particular font among the lmodern? ,i.e. instead of using rm, e.g. using crm10.

Thanks again.

\documentclass[]{beamer}
\usepackage{amsfonts}
\usepackage{beamerprosper}
%\usepackage{palatino}
\usepackage{lmodern}

\mode<presentation>
{\usefonttheme[stillsansserifmath]{serif} % structureitalicserif,structureitalicserif
\setbeamercovered{transparent}}

\setbeamerfont{frametitle}{shape=\scshape,series=\bfseries}

\begin{document}
\begin{frame}
\frametitle{Frame Title}
This is a slide
\end{frame}
\end{document}

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA
If you want Computer Modern, not Latin Modern, you shouldn't load the lmodern package at all.

This works for me:

\documentclass{beamer}\usepackage{amsfonts}\usepackage{beamerprosper}\usepackage[T1]{fontenc} \mode<presentation>{\usefonttheme[stillsansserifmath]{serif} % structureitalicserif,structureitalicserif\usetheme{Boadilla}\setbeamercovered{transparent}}  \setbeamerfont{frametitle}{shape=\scshape,series=\bfseries} \begin{document}\begin{frame}\frametitle{Frame Title}This is a slide \end{frame}\end{document}

palazzo
Posts: 4
Joined: Mon Oct 25, 2010 6:06 am
Thanks, that works but I like more the Latin Modern kind of letter...
How can I select a particular kind of letter in this familiy?

thanks.