# Tag Info

## New answers tagged backgrounds

3

Here is one way of doing this in ConTeXt. To set the color of a page, we need: \definebackgrounds[page][background=color, backgroundcolor=...name...] At each page, the setups specified in definebackgrounds are re-evaluated. So, to change the color of each page, we can simply change the value of the background color to a random color. It is easier to do so ...

1

Since the OP realized there is a known issue known as a "design comprimise" between lscape/pdflscape and the geometry packages (I know Zdeněk Wagner, the author of the zwpagelayout package, in person, I would use his package instead of geometry under normal circumstances), I tried to find another strategy even if I like shifting from the fixed position very ...

2

Thanks to Malipivo's comment, I thought that I might try using eso-pic directly. This is the package prelim2e uses but I wondered if the placement problems might be an artefact of prelim2e rather than a problem with the underlying framework provided by eso-pic itself. After playing with this for a little, things started to go better... This solution uses ...

4

Example based on OCGs and JavaScript (pdflatex, AdobeReader required). Background colour is randomly chosen at display time. \documentclass{beamer} \usepackage{multido} \usepackage{animate} %defines \@anim@newocg \makeatletter \let\newocg\@anim@newocg \def\lastOCGobj{\@anim@curocg} \makeatother %JavaScript action to be executed on page open event ...

3

Since you (essentially) want randomly coloured page backgrounds at displaytime of a PDF, this is only doable with JavaScript. As pointed out in the comments OCGs will help. I wouldn't be surprised if this is already solved in ConTeXt. :-)

14

\documentclass{beamer} \usepackage{pgf} \usepackage{pgffor} \pgfmathsetseed{\number\pdfrandomseed} % seed for random generator \setbeamertemplate{background canvas}{% \pgfmathsetmacro{\R}{random(0,10000)/10000}% \pgfmathsetmacro{\G}{random(0,10000)/10000}% \pgfmathsetmacro{\B}{random(0,10000)/10000}% \definecolor{bgcolor}{rgb}{\R,\G,\B}% ...

0

After some pseudo-random experiments, I managed to do what I wanted: \begin{pgfonlayer}{background} \fill[orange!30] (C_5.center) -- (D.center) -- (C_4.center); \clip (3.7, 4) circle (1.56204); \fill[yellow] (C_5.center)-- (C_4.center) -- (4.1, 7.0285) -- (7.1, 4.24489); \end{pgfonlayer}

1

\documentclass[t]{beamer} \setbeamerfont{frametitle}{size=\fontsize{24}{28},series=\bfseries} \setbeamercolor{frametitle}{fg=black} \setbeamercolor{bgcolor}{fg=black,bg=blue!20} \pgfdeclareimage[width=\paperwidth]{mybackground}{back.pdf} \setbeamertemplate{background canvas}{% \begin{picture}(30,273) ...

0

In order to have the title in front of the picture: How about leaving the traditional frametitle layer empty and including the frametitle in the footline layer? \documentclass[t]{beamer} \setbeamercolor{background canvas}{bg=blue!20} \setbeamerfont{frametitle}{size=\fontsize{24}{28},series=\bfseries} \setbeamercolor{frametitle}{fg=white} ...

7

Instead of adding a node defined with fit, just use \fill: \begin{pgfonlayer}{background} \fill[black!30] (C_5.center) -- (D.center) -- (C_4.center) -- (C_5.center); \end{pgfonlayer} \documentclass{article} \usepackage{tikz, color, amsmath} \usetikzlibrary{calc, arrows,backgrounds,positioning,fit} \newcommand\ptext[1]{\textcolor{purple}{$#1$}} ...

Top 50 recent answers are included