自訂投影塊樣式

自訂投影塊樣式

我正在使用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},這也是一個內部主題。您可以簡單地更改beaverrose,或者如果您想要類似但不同的內容,rose您可以根據 的內容自訂顏色beamercolorthemerose.sty

相關內容