on the way to one universal LaTeX header.tex-file

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!

About

Peter Pan. Kann fliegen mit Feenstaub.

Tagged with: ,
Posted in LaTeX, Technik
One comment on “on the way to one universal LaTeX header.tex-file
  1. […] 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 […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Posts by topic…
…by month
Have a look at…


%d bloggers like this: