TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a multiple-author document that I want to use a custom theme for. The document is stored in git, and I would like to store the theme file in the same directory (or a sub-directory), so that it we can keep track of them.

The theme file is called beamerthemeTHEMENAME.sty. I've tried storing it in the same directory, and including it with


But beamer refuses to find it. This is really annoying, because when I compile with my document latexmk -pdf ... I can manually change the theme name to ./beamerthemeTHEMENAME.sty during compilation, and it works fine, but beamer just doesn't look in the local directory.

Is there any way to force beamer to look for theme files in the current working directory, or a subdirectory of it?

share|improve this question
I copied beamerthemeMadrid.sty to beamerthemeMyMadrid.sty, changed the \ProvidesPackage line to reflect the new name and \usetheme{MyMadrid} found the file in the current directory. – egreg Jun 10 '12 at 11:05
@egreg: that works for me too, if I change the directory in the \ProvidesPackageRCS $Header: to ./beamerthemeTHEMENAME.sty. Put that in an answer, and I'll accept it. It'd be good if someone could provide an explanation of the \ProvidesPackageRCS command, since google returns 0 results for it... – naught101 Jun 10 '12 at 11:20
up vote 7 down vote accepted

I don't think that the local theme wasn't read in. Probably you got a spurious warning about the name.

Change the \ProvidesPackageRCS line into

share|improve this answer
Thanks. works well. – naught101 Jun 10 '12 at 12:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.