LaTeX forum ⇒ Text Formattingbeamer 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

Postby palazzo » Mon Oct 25, 2010 7:01 am

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}

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA

Postby frabjous » Mon Oct 25, 2010 7:46 am

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

What are you hoping to accomplish with:
  1. \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:
  1. \usefonttheme[stillsansserifmath]{serif}

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

Link:
BBcode:
HTML:
Hide post links
Show post links

palazzo
Posts: 4
Joined: Mon Oct 25, 2010 6:06 am

Postby palazzo » Mon Oct 25, 2010 3:58 pm

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}

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA

Postby frabjous » Mon Oct 25, 2010 6:11 pm

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

This works for me:

  1. \documentclass{beamer}
  2. \usepackage{amsfonts}
  3. \usepackage{beamerprosper}
  4. \usepackage[T1]{fontenc}
  5.  
  6. \mode<presentation>
  7. {\usefonttheme[stillsansserifmath]{serif} % structureitalicserif,structureitalicserif
  8. \usetheme{Boadilla}
  9. \setbeamercovered{transparent}}
  10.  
  11.  
  12. \setbeamerfont{frametitle}{shape=\scshape,series=\bfseries}
  13.  
  14. \begin{document}
  15. \begin{frame}
  16. \frametitle{Frame Title}
  17. This is a slide
  18. \end{frame}
  19. \end{document}

Link:
BBcode:
HTML:
Hide post links
Show post links

palazzo
Posts: 4
Joined: Mon Oct 25, 2010 6:06 am

Postby palazzo » Mon Oct 25, 2010 6:55 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Text Formatting”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests