我想创建一个自定义笔记页面,beamer
其内容如下
但是,此笔记页的布局将根据当前主题设置而有很大差异。如果我要更改主题设置,笔记页将发生很大变化,笔记页布局也可能会发生变化。例如,如果我要将左右文本边距更改为 15 毫米,页面将如下所示
我认为这主要是由于columns
环境的行为。我的意思是它会自动在多列之间插入一个空格,这通常是我们想要的。如果我能够将两列之间的距离设置为非常小的量(例如 3 毫米),那么上图中的空白将被删除。然而,我仍然想实现很多事情
- 幻灯片预览的左边缘相对于页面左侧的边距应为 0 毫米
- 旋转后的预览幻灯片的高度应从页面顶部延伸到底部,同时保持纵横比。这会为下一列留下未知数量的水平空间。但是,我仍然不知道如何计算这个空间以正确确定相邻列的尺寸
\insertnote
内容相对于页面左侧的边距应具有精确值,例如 5mm。此外,顶部边距\insertnote
应具有预先指定的值,例如 3mm
尽管我已经非常接近上述要求,但我仍然不知道如何精确实现它们。此外,如果\insertnote
内容可以自动缩小以适合其列(以防它们没有保持原始大小),那将是非常棒的奖励。
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\setbeameroption{show notes}
\newcommand{\itemShowMoreContents}{\item<+->}
\newcommand{\presentUncoverMoreContents}{\uncover<+->}
\usecolortheme{wolverine}
\useoutertheme[]{split}
\useinnertheme{rectangles}
\setbeamersize{text margin left=2mm, text margin right=2mm}
\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{0.1\paperwidth}
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}
% ===== Cuztomize the note page =====
\newlength{\widthNotePageSlideMax}
\setlength{\widthNotePageSlideMax}{0.2\paperwidth}
\newlength{\widthNotePageContents}
\setlength{\widthNotePageContents}{0.6\paperwidth}
\setbeamertemplate{note page}{
\begin{columns}
% The slide figure
\column[t]{\widthNotePageSlideMax}
\adjustbox{rotate=90, max height=0.98\paperheight, frame}{\insertslideintonotes{1}}
\column[t]{\widthNotePageContents}
% The Notes
\justifying
\insertnote
\end{columns}
}
\setbeamerfont{note page}{size=\normalsize}
\usepackage{ragged2e}
\usepackage{adjustbox}
\usepackage{blindtext}
\setbeamersize{description width=0mm}
\begin{document}
\begin{frame}{Showing Contents Gradually without Alert}
\begin{block}{Why is induction motor very common}
%
\presentUncoverMoreContents{Induction motors are very practical for the following reasons}
\begin{description}
\itemShowMoreContents[Rigid] Rigid
\itemShowMoreContents[Cheap] Cheap
\note<+>{\blindlistlist[1]{enumerate} \blindtext} \\
\itemShowMoreContents[Low Maintenance] Low Maintenance
\itemShowMoreContents[Self-Starting] Self-starting
\itemShowMoreContents[No Excitation Needed] No Excitation Needed
\itemShowMoreContents[Something goes here] Extra contents
\end{description}
\vspace{\fill}
More content
\end{block}
\end{frame}
\end{document}
答案1
要自动使文本列填充图像留下的所有可用空间,您可以使用一个小技巧https://tex.stackexchange.com/a/17808/36296
\documentclass[
aspectratio=169,
xcolor={x11names}]{beamer}
\usepackage{ragged2e}
\usepackage{adjustbox}
\usepackage{blindtext}
\setbeameroption{show notes}
\usecolortheme{wolverine}
\useoutertheme{split}
\useinnertheme{rectangles}
\setbeamersize{text margin left=2mm, text margin right=2mm}
\setbeamersize{description width=0mm}
\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{0.1\paperwidth}
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}
% ===== Cuztomize the note page =====
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usetikzlibrary{calc}
\newcommand{\measureremainder}[1]{%
\begin{tikzpicture}[overlay,remember picture]%
% Measure distance to right text border
\path let \p0 = (0,0), \p1 = (current page.east) in
[/utils/exec={\pgfmathsetlength#1{\x1-\x0}\global#1=#1}];
\end{tikzpicture}%
}
\newlength{\whatsleft}
\makeatletter
\setbeamertemplate{note page}{%
\hskip-\Gm@lmargin%
\adjustbox{rotate=90, max height=\paperheight, frame,valign=t}{\insertslideintonotes{1}}%
\measureremainder{\whatsleft}%
\addtolength{\whatsleft}{-5mm}%
\begin{minipage}[t]{\whatsleft}%
\justifying%
\insertnote%
\end{minipage}%
}
\makeatother
\setbeamerfont{note page}{size=\normalsize}
\begin{document}
\begin{frame}{Showing Contents Gradually without Alert}
\begin{block}{Why is induction motor very common}
%
\uncover<+->{Induction motors are very practical for the following reasons}
\begin{description}[<+->]
\item[Rigid] Rigid
\item[Cheap] Cheap
\note<+>{\blindtext}
\item[Low Maintenance] Low Maintenance
\item[Self-Starting] Self-starting
\item[No Excitation Needed] No Excitation Needed
\item[Something goes here] Extra contents
\end{description}
\vfill
More content
\end{block}
\end{frame}
\end{document}