Re: ombre blocchi

#75701
Up
0
Down
::

Caggiano” post=74803AnnArbor 🙂

Prova con:

`
\setbeamercolor{block title}{fg=blue,bg=yellow}
\setbeamercolor{block title alerted}{fg=white,bg=blue}
\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!75!black}

\setbeamercolor{block body}{fg=black,bg=yellow!10}
\setbeamercolor{block body alerted}{fg=black,bg=blue!10}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!10!bg}
`
La parola chiave [tt]fg[/tt] indica il colore del testo, mentre [tt]bg[/tt] il colore di sfondo: modifica a piacere.

Ecco un esempio minimo:

`
\documentclass{beamer}

\usetheme{AnnArbor}

\setbeamercolor{block title}{fg=blue,bg=yellow}
\setbeamercolor{block title alerted}{fg=white,bg=blue}
\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!75!black}

\setbeamercolor{block body}{fg=black,bg=yellow!10}
\setbeamercolor{block body alerted}{fg=black,bg=blue!10}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!10!bg}

\begin{document}
\begin{frame}
\begin{block}{Block}
Ciao
\end{block}
\begin{alertblock}{Alert block}
Ciao
\end{alertblock}
\begin{exampleblock}{Example block}
Ciao
\end{exampleblock}

\end{frame}
\end{document}
`

Ciao
Claudio

Go to top