Document Classesbeamer | Looking into the Sources of a Theme

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
wcw
Posts: 20
Joined: Thu Mar 08, 2012 12:35 pm

beamer | Looking into the Sources of a Theme

Post by wcw »

I am studying customizing the beamer theme and I want to look into the beamer theme source file for customizing my own theme. Can somebody tell me the approach to the theme file and how can i open the theme file?

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer | Looking into the Sources of a Theme

Post by localghost »

All kind of themes are located in one folder inside the TeX installation tree which itself contains sub-folders for the different type of themes (color, font, …). On my Linux system this is the following path

Code: Select all

/usr/share/texmf/tex/latex/beamer/themes/
Ony a Wind0ws system with MiKTeX as TEX distribution this will probably look like this (or similar).

Code: Select all

C:\Program Files\MiKTeX 2.9\tex\latex\beamer\themes
For example, if you want to find out where the »default« beamer theme is located, use the tools of the Kpathsea library on the command line.

Code: Select all

kpsewhich beamerthemedefault.sty
As you can see, the file names for a theme follow a certain scheme. They are all named beamertheme‹nameoftheme›.sty for the main themes. Other themes (color, font, …) are named similar. I think the beamer user guide has some more information about that.


Thorsten
Post Reply