
我正在使用Montpellier
帶有投影機的主題,但是區塊樣式沒有預設背景等Boadilla
。
作為投影機的新手,搜尋引導我使用 自訂它setbeamercolor
,但我不知道如何準確地指定顏色Boadilla
。你能幫我嗎?
\documentclass[c,compress]{beamer}
\usetheme{Montpellier}
\usecolortheme{beaver}
\useinnertheme[shadow]{rounded}
%\setbeamercolor{block title}{use=structure,fg=white,bg=blue!75!black}
\title{My title}
\begin{document}
\section{First Section}
\begin{frame}
\frametitle{A Test}
\begin{block}{definition}
a test for block
\end{block}
\end{frame}
\end{document}
答案1
如果你檢查一下內容beamerthemeBoadilla.sty
你會發現:
\usecolortheme{rose}
\useinnertheme[shadow]{rounded}
\usecolortheme{dolphin}
\useoutertheme{infolines}
因此,Boadilla
使用rose
顏色主題作為內部主題,並使用dolphin
顏色主題作為外部主題。在您的程式碼中,您有\usecolortheme{beaver}
,這也是一個內部主題。您可以簡單地更改beaver
為rose
,或者如果您想要類似但不同的內容,rose
您可以根據 的內容自訂顏色beamercolorthemerose.sty
。