Simple Beamer’s Theme Modification in Linux

If you have been using beamer, and know how powerfull it is to build slides, I guess you already thinked about how to change some stuff in its themes. Let me give a simple example how to do that. In this example I’m interested in to change the default’s theme color.

First you need to copy the /usr/share/texmf/tex/latex/beamer/themes/theme/beamerthemedefault.sty and paste it and rename to beamerthemeRed.sty. When you open it, there is something like:




In order to create a new theme with a new color, we’re going to change the color theme used in our new Red theme. So, change the \usecolortheme{default} to \usecolortheme{red}. At this point, our beamerthemeRed.sty looks like that:




so we need now to generate the file that will be used by this theme to make everything red. The file is located at /usr/share/texmf/tex/latex/beamer/themes/color directory. So we will copy the beamercolorthemedefault.sty and paste it renamed as beamercolorthemered.sty and its content has something like:

\definecolor{beamer@blendedblue}{rgb}{0.2,0.2,0.7} % use structure theme to change

But now we will change it to the red color

\definecolor{beamer@blendedblue}{rgb}{1.0,0.0,0.0} % use structure theme to change

Now, what you need to do is to use this theme in your presentation, lets do it using the following commands:


Before you compile your presentation, you need to make sure to refresh the Latex packages databases, so this way Latex know that you’ve added a new theme:

sudo mktexlsr

Now, what you need is to compile your presentation and voilĂ . That is it.


About these ads

One Response to Simple Beamer’s Theme Modification in Linux

  1. N.Soundararajan says:

    a very useful information! Indeed

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: