| 1 |
\documentclass{scrartcl} |
| 2 |
%Warning: I use a modified vc script so this will not compile unless you remove the \GITTag from the footer or download the modified version from my website. |
| 3 |
\immediate\write18{./vc} |
| 4 |
\input{vc} |
| 5 |
\usepackage[T1]{fontenc} |
| 6 |
\usepackage{scrpage2} |
| 7 |
\pagestyle{scrheadings} |
| 8 |
\setkomafont{pagefoot}{\small\normalfont\sffamily} |
| 9 |
\ifoot[\GITTag\ \VCDateISO]{\GITTag\ \VCDateISO} |
| 10 |
\ofoot[\GITAbrHash]{\GITAbrHash} |
| 11 |
\usepackage{microtype} |
| 12 |
\usepackage{url} |
| 13 |
\usepackage{libertine} |
| 14 |
\usepackage{inconsolata} |
| 15 |
\author{Seamus Bradley} |
| 16 |
\title{The colourchange package} |
| 17 |
\usepackage{listings} |
| 18 |
\lstloadlanguages{[LaTeX]TeX} % I need to tell listings how I want code typeset. Here come some options: |
| 19 |
\lstset{% |
| 20 |
basicstyle=\ttfamily\small, |
| 21 |
commentstyle=\itshape\ttfamily\small, |
| 22 |
showspaces=false, |
| 23 |
showstringspaces=false, |
| 24 |
breaklines=true, |
| 25 |
breakautoindent=true, |
| 26 |
captionpos=t, |
| 27 |
frame=single, |
| 28 |
escapeinside={(*}{*)}, |
| 29 |
} |
| 30 |
\begin{document} |
| 31 |
\maketitle |
| 32 |
|
| 33 |
\vspace{-2\normalbaselineskip} |
| 34 |
\begin{center} |
| 35 |
\small \url{[email protected]}\\ |
| 36 |
\url{http://www.seamusbradley.net/tex.php} |
| 37 |
\end{center} |
| 38 |
|
| 39 |
\section{Introduction} |
| 40 |
|
| 41 |
The \lstinline+colourchange+ package provides options for changing the colour of beamer's structural elements. |
| 42 |
There are two ways to do this: manual and automatic. |
| 43 |
|
| 44 |
\section{Manual} |
| 45 |
|
| 46 |
The command \lstinline+\selectmanualcolour+ sets the colour to its argument. |
| 47 |
It accepts any named colour understood by \lstinline+xcolor+. |
| 48 |
|
| 49 |
\section{Automatic} |
| 50 |
|
| 51 |
There are two options that automatically change the colour: \lstinline+slidechange+ and \lstinline+framechange+. |
| 52 |
Pass one of these to the package as an option and the colour of the structure will slowly change from one colour to another. |
| 53 |
To set what colours the transition should be between, use: \lstinline+\selectcolourchange{first}{second}+ which makes the colour transition from |
| 54 |
\lstinline+first+ to \lstinline+second+ over the course of the presentation. |
| 55 |
|
| 56 |
You will need to compile twice to see the effect since \lstinline+colourchange+ needs to know how many slides there are so it knows how far |
| 57 |
through the presentation it is at a given point. |
| 58 |
|
| 59 |
\section{Usage} |
| 60 |
I have been testing this by calling it as a standard package, I'm not sure how \lstinline+\usecolortheme+ deals with package options. |
| 61 |
So if you want to use the manual colour changing option, all you need is: \lstinline+\usepackage{colourchange}+. |
| 62 |
If you want one of the automatic colourchange options call \lstinline+\usepackage[slidechange]{colourchange}+ or |
| 63 |
\lstinline+\usepackage[framechange]{colourchange}+. |
| 64 |
|
| 65 |
You can pass the option \lstinline+defaultstyle+ to the package, this sets up the structural elements (the inner and outer theme) so that they use the colours. |
| 66 |
Otherwise, you can use Beamer's own \lstinline+\useinnnertheme+ and \lstinline+\useoutertheme+ to use the themes Beamer defines. |
| 67 |
Call inner and outer themes separately. |
| 68 |
Some ``all inclusive'' themes call a colour theme themselves and this can lead to only some elements changing colour. |
| 69 |
|
| 70 |
Use the \lstinline+draft+ option to turn off the colour transitions. |
| 71 |
|
| 72 |
\section{Known problems} |
| 73 |
|
| 74 |
The \lstinline+smoothbars+ and \lstinline+smoothtrees+ outer themes do some funky stuff with shading and colours, so they aren't currently supported. |
| 75 |
All other outer and inner themes looked alright. |
| 76 |
Testing was, however, pretty basic: not all combinations were tested. |
| 77 |
|
| 78 |
\section{How it works} |
| 79 |
|
| 80 |
It's a pretty simple package really. |
| 81 |
Just like (some) basic beamer colour themes it defines all the components of the inner and outer themes |
| 82 |
in terms of one ``master colour'' called \lstinline+structure+. |
| 83 |
Then all it does is use various ways of changing this colour. |
| 84 |
The manual option just gives you a way of changing this colour on the fly. |
| 85 |
The two automatic ways basically fiddle with beamer slide and frame creation internals to set the structure colour whenever a new frame/slide is created. |
| 86 |
See the \lstinline+.sty+ file for details. |
| 87 |
|
| 88 |
\end{document} |
| 89 |
|
| 90 |
%%% Local Variables: |
| 91 |
%%% mode: latex |
| 92 |
%%% TeX-master: t |
| 93 |
%%% End: |