fading logo

View: New views
6 Messages — Rating Filter:   Alert me  

fading logo

by Walter Cazzola-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Beamer Experts,
I'm preparing a beamer style to be used in my lab.

The idea is to have the lab logo in the bottom right corner. The logo is
in TiKZ and I include it as a pdf through \includegraphics in my outer
theme.

The problem is that the logo's colors are too vivid and when some text
finish above the logo is quite unreadable. I'd like to fade it to a sort
of watermark but I don't know how to get the effect without using gimp
or similar.

Do you have any ideas?

Thank you in advance for the help

Walter

--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail cazzola@... Ph.: +39 02 503 16300  Fax: +39 02 503 16253
· · · ---------------------------- · · · ---------------------------- · · ·
                ... recursive: adjective, see recursive ...
· · · ---------------------------- · · · ---------------------------- · · ·
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Re: fading logo

by Kjell Magne Fauske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Aug 6, 2009 at 12:07 AM, Walter Cazzola<cazzola@...> wrote:

> Dear Beamer Experts,
> I'm preparing a beamer style to be used in my lab.
>
> The idea is to have the lab logo in the bottom right corner. The logo is
> in TiKZ and I include it as a pdf through \includegraphics in my outer
> theme.
>
> The problem is that the logo's colors are too vivid and when some text
> finish above the logo is quite unreadable. I'd like to fade it to a sort
> of watermark but I don't know how to get the effect without using gimp
> or similar.
>
> Do you have any ideas?
>
> Thank you in advance for the help
>

For fading your logo you can use the xxcolor package bundled with PGF.
It provides a colormixin environment that lets you alter colors. Her
is a simple example:

%%%%
% Source: http://www.texample.net/tikz/examples/rotated-triangle/
% Credits: Alain Matthes and Martin Scharrer
\documentclass{article}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tikz,ifthen,xxcolor}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[scale=0.5]
    \coordinate (A) at (0,0);
    \coordinate (B) at (-60:12cm);
    \coordinate (C) at (240:12cm);
    \foreach \density in {20,30,...,160}{%
        \draw[fill=MidnightBlue!\density] (A)--(B)--(C)--cycle;
        \path
             (A) coordinate (X)
          -- (B) coordinate[pos=.15](A)
          -- (C) coordinate[pos=.15](B)
          -- (X) coordinate[pos=.15](C);
    }
\end{tikzpicture}
%
\begin{colormixin}{25!white}
\begin{tikzpicture}[scale=0.5]
    \coordinate (A) at (0,0);
    \coordinate (B) at (-60:12cm);
    \coordinate (C) at (240:12cm);
    \foreach \density in {20,30,...,160}{%
        \draw[fill=MidnightBlue!\density] (A)--(B)--(C)--cycle;
        \path
             (A) coordinate (X)
          -- (B) coordinate[pos=.15](A)
          -- (C) coordinate[pos=.15](B)
          -- (X) coordinate[pos=.15](C);
    }
\end{tikzpicture}
\end{colormixin}
\end{document}


\documentclass{minimal}

\usepackage{tikz}
\usetikzlibrary{scopes}

\begin{document}

\def\barnevogn{
\draw (0,0) -- (1,1) -- (2,0) -- cycle;
}

\begin{tikzpicture}
\barnevogn
\node {Hei};
\begin{scope}[shift={(1,1)}]
        \barnevogn
\end{scope}
\end{tikzpicture}

% Alternativ syntax som bruker scopes-biblioteket
\begin{tikzpicture}
\barnevogn
\node {Hei};
{[shift={(1,-1)}]
        \barnevogn
}
\end{tikzpicture}

% Enda et alternativ
\def\barnevognII{
\begin{tikzpicture}
\draw (0,0) -- (1,1) node {Hei} -- (2,0) -- cycle;
\end{tikzpicture}
}

\begin{tikzpicture}
\node[draw] {\barnevognII};
\node[draw, rotate=30] at (2,1) {\barnevognII};
\end{tikzpicture}

\end{document}
%%%

See the Extended Color Support chapter in the PGF manual for details.

- Kjell Magne Fauske

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Re: fading logo

by Walter Cazzola :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Kjell,
thanks for your prompt reply, I haven't considered to change (or produce
two versions of) my logo since I want to include it as a pdf.

Does The colormixin environment work with images (pdf) included via \includegraphics?

Walter

On Thu, 6 Aug 2009, Kjell Magne Fauske wrote:

> On Thu, Aug 6, 2009 at 12:07 AM, Walter Cazzola<cazzola@...> wrote:
>> Dear Beamer Experts,
>> I'm preparing a beamer style to be used in my lab.
>>
>> The idea is to have the lab logo in the bottom right corner. The logo is
>> in TiKZ and I include it as a pdf through \includegraphics in my outer
>> theme.
>>
>> The problem is that the logo's colors are too vivid and when some text
>> finish above the logo is quite unreadable. I'd like to fade it to a sort
>> of watermark but I don't know how to get the effect without using gimp
>> or similar.
>>
>> Do you have any ideas?
>>
>> Thank you in advance for the help
>>
>
> For fading your logo you can use the xxcolor package bundled with PGF.
> It provides a colormixin environment that lets you alter colors. Her
> is a simple example:
>
> %%%%
> % Source: http://www.texample.net/tikz/examples/rotated-triangle/
> % Credits: Alain Matthes and Martin Scharrer
> \documentclass{article}
> \usepackage[usenames,dvipsnames]{xcolor}
> \usepackage{tikz,ifthen,xxcolor}
> \pagestyle{empty}
> \begin{document}
> \begin{tikzpicture}[scale=0.5]
>    \coordinate (A) at (0,0);
>    \coordinate (B) at (-60:12cm);
>    \coordinate (C) at (240:12cm);
>    \foreach \density in {20,30,...,160}{%
>        \draw[fill=MidnightBlue!\density] (A)--(B)--(C)--cycle;
>        \path
>             (A) coordinate (X)
>          -- (B) coordinate[pos=.15](A)
>          -- (C) coordinate[pos=.15](B)
>          -- (X) coordinate[pos=.15](C);
>    }
> \end{tikzpicture}
> %
> \begin{colormixin}{25!white}
> \begin{tikzpicture}[scale=0.5]
>    \coordinate (A) at (0,0);
>    \coordinate (B) at (-60:12cm);
>    \coordinate (C) at (240:12cm);
>    \foreach \density in {20,30,...,160}{%
>        \draw[fill=MidnightBlue!\density] (A)--(B)--(C)--cycle;
>        \path
>             (A) coordinate (X)
>          -- (B) coordinate[pos=.15](A)
>          -- (C) coordinate[pos=.15](B)
>          -- (X) coordinate[pos=.15](C);
>    }
> \end{tikzpicture}
> \end{colormixin}
> \end{document}
>
>
> \documentclass{minimal}
>
> \usepackage{tikz}
> \usetikzlibrary{scopes}
>
> \begin{document}
>
> \def\barnevogn{
> \draw (0,0) -- (1,1) -- (2,0) -- cycle;
> }
>
> \begin{tikzpicture}
> \barnevogn
> \node {Hei};
> \begin{scope}[shift={(1,1)}]
> \barnevogn
> \end{scope}
> \end{tikzpicture}
>
> % Alternativ syntax som bruker scopes-biblioteket
> \begin{tikzpicture}
> \barnevogn
> \node {Hei};
> {[shift={(1,-1)}]
> \barnevogn
> }
> \end{tikzpicture}
>
> % Enda et alternativ
> \def\barnevognII{
> \begin{tikzpicture}
> \draw (0,0) -- (1,1) node {Hei} -- (2,0) -- cycle;
> \end{tikzpicture}
> }
>
> \begin{tikzpicture}
> \node[draw] {\barnevognII};
> \node[draw, rotate=30] at (2,1) {\barnevognII};
> \end{tikzpicture}
>
> \end{document}
> %%%
>
> See the Extended Color Support chapter in the PGF manual for details.
>
> - Kjell Magne Fauske
>
--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail cazzola@... Ph.: +39 02 503 16300  Fax: +39 02 503 16253
· · · ---------------------------- · · · ---------------------------- · · ·
                ... recursive: adjective, see recursive ...
· · · ---------------------------- · · · ---------------------------- · · ·
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Re: fading logo

by Kjell Magne Fauske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Aug 6, 2009 at 12:20 PM, Walter Cazzola<cazzola@...> wrote:
> Dear Kjell,
> thanks for your prompt reply, I haven't considered to change (or produce
> two versions of) my logo since I want to include it as a pdf.
>
> Does The colormixin environment work with images (pdf) included via
> \includegraphics?
>

I doubt that it works with external graphics.
A workaround is to use transparency:

...
\node[opacity=0.5] {\includegraphics{logo}};
..

This will work, but not all PDF viewers handle transparency correctly.
Creating a separate dimmed version of the logo is probably safer.

- Kjell Magne

> Walter
>
> On Thu, 6 Aug 2009, Kjell Magne Fauske wrote:
>
>> On Thu, Aug 6, 2009 at 12:07 AM, Walter Cazzola<cazzola@...>
>> wrote:
>>>
>>> Dear Beamer Experts,
>>> I'm preparing a beamer style to be used in my lab.
>>>
>>> The idea is to have the lab logo in the bottom right corner. The logo is
>>> in TiKZ and I include it as a pdf through \includegraphics in my outer
>>> theme.
>>>
>>> The problem is that the logo's colors are too vivid and when some text
>>> finish above the logo is quite unreadable. I'd like to fade it to a sort
>>> of watermark but I don't know how to get the effect without using gimp
>>> or similar.
>>>
>>> Do you have any ideas?
>>>
>>> Thank you in advance for the help
>>>
>>
>> For fading your logo you can use the xxcolor package bundled with PGF.
>> It provides a colormixin environment that lets you alter colors. Her
>> is a simple example:
>>
>> %%%%
>> % Source: http://www.texample.net/tikz/examples/rotated-triangle/
>> % Credits: Alain Matthes and Martin Scharrer
>> \documentclass{article}
>> \usepackage[usenames,dvipsnames]{xcolor}
>> \usepackage{tikz,ifthen,xxcolor}
>> \pagestyle{empty}
>> \begin{document}
>> \begin{tikzpicture}[scale=0.5]
>>   \coordinate (A) at (0,0);
>>   \coordinate (B) at (-60:12cm);
>>   \coordinate (C) at (240:12cm);
>>   \foreach \density in {20,30,...,160}{%
>>       \draw[fill=MidnightBlue!\density] (A)--(B)--(C)--cycle;
>>       \path
>>            (A) coordinate (X)
>>         -- (B) coordinate[pos=.15](A)
>>         -- (C) coordinate[pos=.15](B)
>>         -- (X) coordinate[pos=.15](C);
>>   }
>> \end{tikzpicture}
>> %
>> \begin{colormixin}{25!white}
>> \begin{tikzpicture}[scale=0.5]
>>   \coordinate (A) at (0,0);
>>   \coordinate (B) at (-60:12cm);
>>   \coordinate (C) at (240:12cm);
>>   \foreach \density in {20,30,...,160}{%
>>       \draw[fill=MidnightBlue!\density] (A)--(B)--(C)--cycle;
>>       \path
>>            (A) coordinate (X)
>>         -- (B) coordinate[pos=.15](A)
>>         -- (C) coordinate[pos=.15](B)
>>         -- (X) coordinate[pos=.15](C);
>>   }
>> \end{tikzpicture}
>> \end{colormixin}
>> \end{document}
>>
>>
>> \documentclass{minimal}
>>
>> \usepackage{tikz}
>> \usetikzlibrary{scopes}
>>
>> \begin{document}
>>
>> \def\barnevogn{
>> \draw (0,0) -- (1,1) -- (2,0) -- cycle;
>> }
>>
>> \begin{tikzpicture}
>> \barnevogn
>> \node {Hei};
>> \begin{scope}[shift={(1,1)}]
>>        \barnevogn
>> \end{scope}
>> \end{tikzpicture}
>>
>> % Alternativ syntax som bruker scopes-biblioteket
>> \begin{tikzpicture}
>> \barnevogn
>> \node {Hei};
>> {[shift={(1,-1)}]
>>        \barnevogn
>> }
>> \end{tikzpicture}
>>
>> % Enda et alternativ
>> \def\barnevognII{
>> \begin{tikzpicture}
>> \draw (0,0) -- (1,1) node {Hei} -- (2,0) -- cycle;
>> \end{tikzpicture}
>> }
>>
>> \begin{tikzpicture}
>> \node[draw] {\barnevognII};
>> \node[draw, rotate=30] at (2,1) {\barnevognII};
>> \end{tikzpicture}
>>
>> \end{document}
>> %%%
>>
>> See the Extended Color Support chapter in the PGF manual for details.
>>
>> - Kjell Magne Fauske
>>
>
> --
> Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
> E-mail cazzola@... Ph.: +39 02 503 16300  Fax: +39 02 503 16253
> · · · ---------------------------- · · · ---------------------------- · · ·
>               ... recursive: adjective, see recursive ...
> · · · ---------------------------- · · · ---------------------------- · · ·

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Re: fading logo

by Herbert Voss-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Walter Cazzola schrieb:
> thanks for your prompt reply, I haven't considered to change (or produce
> two versions of) my logo since I want to include it as a pdf.
>
> Does The colormixin environment work with images (pdf) included via
> \includegraphics?

you can get the same without colormixin:

\begin{tikzpicture}[scale=0.5]
    \coordinate (A) at (0,0);
    \coordinate (B) at (-60:12cm);
    \coordinate (C) at (240:12cm);
    \foreach \density in {20,30,...,160}{%
        \draw[black!25,fill=MidnightBlue!\density!white!25]
(A)--(B)--(C)--cycle;
        \path
             (A) coordinate (X)
          -- (B) coordinate[pos=.15](A)
          -- (C) coordinate[pos=.15](B)
          -- (X) coordinate[pos=.15](C);
    }
\end{tikzpicture}

Herbert

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Re: fading logo

by Walter Cazzola :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 6 Aug 2009, Kjell Magne Fauske wrote:

> Creating a separate dimmed version of the logo is probably safer.

At last I've created a dimmed version of the logo, thanks for the help.

Walter

--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail cazzola@... Ph.: +39 02 503 16300  Fax: +39 02 503 16253
· · · ---------------------------- · · · ---------------------------- · · ·
                ... recursive: adjective, see recursive ...
· · · ---------------------------- · · · ---------------------------- · · ·
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users