Featured Book

LaTeX Beginners Guide

Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 8 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

beamer font

Add tags Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)

beamer font

Postby palazzo on Mon Oct 25th, 2010

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
\usetheme{Boadilla}
\setbeamercovered{transparent}
}

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

\renewcommand{\rmdefault}{rm}
palazzo
 
Posts: 4
Joined: Mon Oct 25th, 2010

Re: beamer font

Postby frabjous on Mon Oct 25th, 2010

Please read this description of what a minimal working example should look like.

What are you hoping to accomplish with:
Code: Select all  •  Open in writeLaTeX
\renewcommand{\rmdefault}{rm}

? That command makes little sense to me.

In general, your preamble makes little sense with regard to fonts. First you load mathptmx, which sets the fonts to Times. Then you load palatino, which sets it to Palatino. Then you load lmodern, which sets it to Latin Modern. Then you load mathpazo, which is a different way of loading Palatino. No wonder your document is confused about fonts! You also load certain packages like ifthen more than once. Try to keep your preamble clean.

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:
Code: Select all  •  Open in writeLaTeX
\usefonttheme[stillsansserifmath]{serif}

in your preamble instead of \usefonttheme{serif} should give you serif text with sans serif math.
User avatar
frabjous
 
Posts: 2065
Joined: Fri Mar 6th, 2009
Location: Amherst, MA

Re: beamer font

Postby palazzo on Mon Oct 25th, 2010

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
\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 25th, 2010

Re: beamer font

Postby frabjous on Mon Oct 25th, 2010

If you want Computer Modern, not Latin Modern, you shouldn't load the lmodern package at all.

This works for me:

Code: Select all  •  Open in writeLaTeX
\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
}
User avatar
frabjous
 
Posts: 2065
Joined: Fri Mar 6th, 2009
Location: Amherst, MA

Re: beamer font

Postby palazzo on Mon Oct 25th, 2010

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.
palazzo
 
Posts: 4
Joined: Mon Oct 25th, 2010


Return to Text Formatting

Who is online

Users browsing this forum: No registered users and 8 guests