
現在、クラスを使用してプレゼンテーションに取り組んでいますbeamer
が、解決方法がわからない問題に遭遇しました。次の MWE を検討してください。
\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}
\setbeamertemplate{footline}{}}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[english]{babel}
\usepackage{amssymb, amsthm, mathtools}
\usefonttheme{serif}
\begin{document}
\begin{frame}\frametitle{Useful relations to keep in mind}
\begin{align*}
A&=B+C& U&=\psi(x)\\
G&= AA& C&=\partial^\nu\\
B&=A+B& F&=BB
\end{align*}
\end{frame}
\end{document}
正直なところ、私は Latex で色を使って「塗りつぶす」作業をしたことがないので、これをどうやって実現できるのか少しわかりません...
編集:明確にするために、これは 1 つのフレームにのみ適用され、他のすべてのフレームは通常のままになります。
答え1
ようこそ。
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\mode<presentation> {
\usetheme{Madrid}
\setbeamertemplate{footline}{}}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[english]{babel}
\usepackage{amssymb, amsthm, mathtools}
\usefonttheme{serif}
\begin{document}
\begin{frame}[t]
\frametitle{Useful relations to keep in mind}
\begin{align*}
A&=B+C& U&=\psi(x)\\
G&= AA& C&=\partial^\nu\\
B&=A+B& F&=BB\tikzmark{aux}
\end{align*}
\begin{tikzpicture}[overlay,remember picture]
\fill ([yshift=-1ex]pic cs:aux) coordinate (aux) (current page.south west) rectangle
(aux-|current page.east);
\end{tikzpicture}
\end{frame}
\end{document}
もちろん、方程式を上に移動しても機能します。
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\mode<presentation> {
\usetheme{Madrid}
\setbeamertemplate{footline}{}}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[english]{babel}
\usepackage{amssymb, amsthm, mathtools}
\usefonttheme{serif}
\begin{document}
\begin{frame}[t]
\frametitle{Useful relations to keep in mind}
\vspace*{-3em}
\begin{align*}
A&=B+C& U&=\psi(x)\\
G&= AA& C&=\partial^\nu\\
B&=A+B& F&=BB\tikzmark{aux}
\end{align*}
\begin{tikzpicture}[overlay,remember picture]
\fill ([yshift=-1ex]pic cs:aux) coordinate (aux) (current page.south west) rectangle
(aux-|current page.east);
\end{tikzpicture}
\end{frame}
\end{document}