对于学校的工作,我有时会使用图书馆创建笔记beamer
。更改样式会更改颜色。我选择了Madrid
带有选项的样式\usecolortheme{crane}
。
\documentclass{beamer}
%%% Dichiarazione dei pacchetti standard.
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{mathtools,braket}
\usepackage{colortbl, multicol}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
%\usepackage{showkeys}
%%% Personalizzazione del layout---articolata su cinque livelli.
\usetheme{Madrid} % layout complessivo.
\useinnertheme{default} % layout interno.
\useoutertheme{default} % layout esterno.
\usecolortheme{crane} % schema di colori.
\usefonttheme{default} % schema dei font.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{\textbf{Matematica}}
\subtitle{Successioni a termini reali -- prima parte}
\author{Star Trek}
\institute{}
\date{\today}
\setbeamersize{text margin left=5pt,text margin right=4.8pt}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section[Sommario]{Successioni}
\begin{frame}
\tableofcontents
\end{frame}
\section{Diseguaglianze e teorema preliminare}
\begin{frame}[fragile]
\frametitle{Valore assoluto, diseguaglianze e teorema preliminare}
\index{Diseguaglianze e teorema preliminare}
Se $x\in\mathbb{R}$, $\abs{x}=\ldots$, $\abs{x}\geq 0.$. Si hanno anche le seguenti proprietà $\abs{x}=\max\Set{-x, x}$. $|-x| = |x| , x \leq |x|, |xy| = |x| |y|$.
\[\abs{x+y}\leq \abs{x}+\abs{y}, \quad \textup{(disuguaglianza triangolare)}\]
\[\abs{\abs{x}-\abs{y}}\leq \abs{x-y}\leq \abs{x}+\abs{y}\]
\begin{theorem}
Se $x\in \mathbb{R}$ e $\forall\epsilon>0$, $|x|<\epsilon$ allora $x=0$.
\end{theorem}
\end{frame}
\end{document}
是否有可能区分这三种渐变的颜色?
答案1
您正在使用 Madridbeamer
主题。如果我查看此文件,我会找到以下行:
\useoutertheme{infolines}
如果我查看该文件,我会发现以下几行:
\setbeamercolor*{author in head/foot}{parent=palette tertiary}
\setbeamercolor*{title in head/foot}{parent=palette secondary}
\setbeamercolor*{date in head/foot}{parent=palette primary}
这给出了三个面板中颜色的名称。默认情况下,它们被设置为主调色板、次调色板和三调色板。
所以我们可以改变这些调色板:
\setbeamercolor*{palette primary}{fg=black,bg=magenta!50}
\setbeamercolor*{palette secondary}{fg=black,bg=yellow!50}
\setbeamercolor*{palette tertiary}{fg=black,bg=cyan!50}
但这也可能改变其他东西,所以你可能想直接改变颜色:
\setbeamercolor*{author in head/foot}{fg=black,bg=magenta!50}
\setbeamercolor*{title in head/foot}{fg=black,bg=yellow!50}
\setbeamercolor*{date in head/foot}{fg=black,bg=cyan!50}
两种情况下的输出相同: