Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\usetheme{THEMENAME}

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
5  
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
add comment

1 Answer

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

\ProvidesPackage{beamerthemeTHEMENAME}
share|improve this answer
    
Thanks. works well. –  naught101 Jun 10 '12 at 12:51
add comment

Your Answer

 
discard

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.