Figured it out. The colors need to be set before the block is entered. Duh!
\newcommand{\myColorBlock}[4][30]{
\setbeamercolor{block title}{bg= #3}
\setbeamercolor{block body}{bg= #3!#1}
\begin{block}{#2}
#4
\end{block}
}
Now it works fine!
Search found 5 matches
- Fri Sep 24, 2010 7:41 pm
- Forum: General
- Topic: my \newcommand not working :-(
- Replies: 1
- Views: 1867
- Fri Sep 24, 2010 7:23 pm
- Forum: General
- Topic: my \newcommand not working :-(
- Replies: 1
- Views: 1867
my \newcommand not working :-(
Hi Everyone/Anyone
Using Beamer, I occasionally want to customize the colors for a block title background and body background to match one of the colors in an illustration on that slide.
It goes like this:
\begin{frame}
\setbeamercolor{block title}{bg=earthGreen}
\setbeamercolor{block body}{ bg ...
Using Beamer, I occasionally want to customize the colors for a block title background and body background to match one of the colors in an illustration on that slide.
It goes like this:
\begin{frame}
\setbeamercolor{block title}{bg=earthGreen}
\setbeamercolor{block body}{ bg ...
- Wed Dec 30, 2009 4:09 am
- Forum: General
- Topic: Linking back to table of contents
- Replies: 2
- Views: 4178
Re: Linking back to table of contents
Perfect. Many thanks.
- Tue Dec 29, 2009 10:44 am
- Forum: General
- Topic: Linking back to table of contents
- Replies: 2
- Views: 4178
Linking back to table of contents
This should be easy, I think, but I can't find anything on the web, or in the LaTeX companion and TeXbook doesn't mention the table of contents at all.
I am using the hyperref package. I would like to have a link back to the table of contents from a navigation bar in my page footers. Sounds simple ...
I am using the hyperref package. I would like to have a link back to the table of contents from a navigation bar in my page footers. Sounds simple ...
- Wed Nov 18, 2009 7:36 am
- Forum: General
- Topic: pdfscreen's blue-grey border/background
- Replies: 0
- Views: 1322
pdfscreen's blue-grey border/background
Does anyone here have experience with pdfscreen?
My pdfscreen documents have a coloured background behind the content page(s). The background is a blue-grey colour. I would like to be able to change this colour to fit in with the style I am using for the document (aqua for fluid mechanics, etc ...
My pdfscreen documents have a coloured background behind the content page(s). The background is a blue-grey colour. I would like to be able to change this colour to fit in with the style I am using for the document (aqua for fluid mechanics, etc ...