Text Formattingbeamer font

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

beamer font

Post by palazzo »

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}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

beamer font

Post by frabjous »

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

What are you hoping to accomplish with:

Code: Select all

\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

\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

Re: beamer font

Post by palazzo »

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}
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

beamer font

Post by frabjous »

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

This works for me:

Code: Select all

\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

Re: beamer font

Post by palazzo »

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.
Post Reply