I have modified my LaTeX Header.tex to be used in both, beamer-presentations and normal Documents (article or whatever). You can just test if beamer was used as documentsclass and in that case do some more specific stuff. See:
% if beamer-presentation do do some more \makeatletter \@ifclassloaded{beamer}{ % BEAMER PRESENTATION APPEARANCE % % which themes do i have installed? % ~$ for theme in beameroutertheme beamerinnertheme beamertheme beamercolortheme; do % echo "For $theme you can use the following:"; % echo $(locate $theme|awk -F"$theme"'|.sty' '{print $2}'); % echo ""; % done % Torino AnnArbor Antibes Bergen Berkeley Berlin Boadilla CambridgeUS Copenhagen Darmstadt Dresden Frankfurt Goettingen Hannover Ilmenau JuanLesPins Luebeck Madrid Malmoe Marburg Montpellier PaloAlto Pittsburgh Rochester Singapore Szeged Warsaw boxes default bars classic compatibility lined plain shadow sidebar split tree JLTree bidiJLTree \usetheme{Berlin} % infolines miniframes shadow sidebar smoothbars smoothtree split tree decolines \useoutertheme{smoothbars} % circles inmargin rectangles rounded, fancy \useinnertheme[shadow]{rounded} \usepackage{color} \definecolor{mygreen}{rgb}{0.2, 0.58, 0.19} \usecolortheme[named=mygreen]{structure} \setbeamercovered{transparent} \setbeamerfont{frametitle}{family=\rmfamily,size*={12}{14},shape=\scshape} % % quoted citation command \zitat[heading]{citation} \newcommand{\zitat}[2][]{ \begin{block}{#1} \begin{quote} \glqq{}#2\grqq{} \end{quote} \end{block} } % subfigure counter resets every frame \@addtoreset{subfigure}{framenumber} % Insert a table of contents slide on every new section \AtBeginSection[] { \begin{frame}{\contentsname} \tableofcontents[currentsection,currentsubsection,hideothersubsections] \end{frame} } } { % here would be everything that has to be loaded not in beamer-, but only in normal latex-documents } \makeatother
Have a nice weekend!
Advertisements
[…] bit longer is the piece of code that you have to add to your Header.tex file. But note, that you only need LaTeX-code here. Customization does not involve bibtex-style […]