我想在幻灯片左上角的框中显示信息(标题部分下方),但我做错了。我尝试使用 tikz 这样做,但它没有移动它,而是将其留在幻灯片的中心。
这是我尝试过的标准幻灯片,但是不起作用。
\documentclass[aspectratio=169]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{biolinum}
\usepackage{microtype}
\usepackage{tikz}
\usefonttheme[onlymath]{serif}
\usetheme[nofirafonts]{focus}
\begin{document}
\begin{frame}{Test}
\begin{tikzpicture}
\node[anchor=north east] at (current page.north east) {UV regulator: $\Lambda$};
\end{tikzpicture}
\end{frame}
\end{document}
编辑:这是 js bibra 建议的框架,但它“覆盖”了标题行。我想在它下面写(保留前一个框架的样式)
\documentclass[aspectratio=169]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{biolinum}
\usepackage{microtype}
\usepackage{tikz}
\usefonttheme[onlymath]{serif}
\usetheme[nofirafonts]{focus}
\begin{document}
\begin{frame}
\begin{tikzpicture}[remember picture, overlay]
%\fill[red] (current page.north west) rectangle (current page.south east);
\node[anchor=north east] at (current page.north east) {UV regulator: $\Lambda$};
\end{tikzpicture}
\end{frame}
\end{document}
编辑:这是我的想法的草图:
答案1
您的代码无法正确编译 - 我替换了一些虚拟文本 - 请[remember picture, overlay]
在tikzpicture
这种情况下使用
\documentclass{beamer}
\usepackage{tikz}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{biolinum}
\usepackage{microtype}
%
%\usefonttheme[onlymath]{serif}
%\usetheme[nofirafonts]{focus}
\begin{document}
\begin{frame}
\begin{tikzpicture}[remember picture, overlay]
\fill[red] (current page.north west) rectangle (current page.south east);
\node[anchor=north east] at (current page.north east) {north east corner};
\end{tikzpicture}
\end{frame}
\end{document}
编辑——使用 calc 库,您可以将文本定位在当前页面/框架上的任何位置
\documentclass[aspectratio=169]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{biolinum}
\usepackage{microtype}
\usepackage{tikz}
\usetikzlibrary{calc, positioning}
\usefonttheme[onlymath]{serif}
\usetheme[nofirafonts]{focus}
\begin{document}
\begin{frame}{Test}
\begin{tikzpicture}[remember picture, overlay]
\node[anchor=north east] at ($(current page.north east)-(0,1.5)$){UV
regulator: $\Lambda$};
\end{tikzpicture}
BLA BLA
\end{frame}
\end{document}