2

So I have installed TeXlive 2013 following the steps here I was previously using my custom theme called beamerthemeEinstein.sty that I placed at /usr/share/texmf/tex/latex/beamer/base/themes/theme then I run sudo texhash and it worked amazingly.

Now with TeXlive 2013 my custom theme is not recognized, I get

! LaTeX Error: File `beamerthemeEinstein.sty' not found. 

Where should I place it now? Anyone knows where to place custom themes using the 2013 version? Many thanks!

marked as duplicate by Martin Schröder, mafp, Werner, Heiko Oberdiek, Guido Jun 26 '13 at 1:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Do you have the folder /usr/local/texlive/texmf-local/tex/latex/local/? I use it to put my personal macros. – Sigur Jun 25 '13 at 1:24
  • 1
    how about ~/texmf/tex/latex? – cmhughes Jun 25 '13 at 1:32
  • 3
    AFAIK, the local folder hasn't changed and should be a subfolder of /usr/local/texlive/texmf-local/, while the distribution is installed under /usr/local/texlive/<year>. Check that the correct TeX runtime is being used (which pdflatex) and that TeX can find your custom theme (kpsewhich beamerthemeEinstein.sty). – Xavier Jun 25 '13 at 2:02
  • Thou shall not install your own files in /usr/share; see man hier and the TeXLive documentation. – Martin Schröder Jun 25 '13 at 21:48
7

The command

kpsexpand \$TEXMFLOCAL

will show you the path to the local system-wide tree which will not be modifed by updates of TL; it will usually be "next" to the texmf tree, as @sigur says.

kpsexpand \$TEXMFHOME

will show you the path to your user-specific tree, probably /home/(username)/texmf. (For more information, see TeXlive docs on user texmf trees, in particular the statement-by-omission that you don't need to refresh filename databases for new files in TEXMFHOME.

  • It is very strange... after exploring all my texlive 2013 folders, I found the themes at: /usr/local/texlive/2013/texmf-dist/tex/latex/beamer/themes/theme However, if I type 'locate beamerthemedefault.sty' I get the place it was before: /usr/local/texlive/2013/texmf-dist/tex/latex/beamer/themes/theme/beamerthemedefault.sty But there the theme is not present anymore... I moved my custom theme along with the other ones at /usr/local/texlive/2013/texmf-dist/tex/latex/beamer/themes/theme and type 'sudo texhash' but still I get ! LaTeX Error: File `beamerthemeEinstein.sty' not found. – DaniCee Jun 25 '13 at 14:16
  • @Danicee: locate does not immediately update when you move files. Its database is usually updated as part of a cronjob, but this is leading us too far afield. Your custom themes should not live in the texmf-dist tree, they belong in -- guessing from the paths you give -- /usr/local/texlive/texmf-local/tex/latex/beamer (texhash needed, systemwide) or ~/texmf/tex/latex/beamer (no texhash needed, your user only). – Ulrich Schwarz Jun 25 '13 at 15:10

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