beamer:框架中有更多的可用空间

beamer:框架中有更多的可用空间

我希望在我的框架中可以使用最大空间;换句话说:
· 最小的“空白”,其中没有任何内容
· 非常小的“内部分隔”
· (我还能做什么?)

那么:我该如何减少空白?
以及:我该如何实现全部是顶部对齐吗?

在此处输入图片描述

\documentclass[t,% globally top alignment?
shadow=false, 
]{beamer}
\usepackage[english]{babel}
\usepackage{lmodern}
\usepackage{amsmath, amssymb, amsfonts}

\author{}
\date{}

\usetheme{CambridgeUS}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=yellow!35}
% No shadows: 
\setbeamertemplate{blocks}[rounded][shadow=false]
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true]



\begin{document}
\title{This is not really top-aligned... :(}
%\logo{\includegraphics[scale=0.14]{logo-SF}}
\begin{frame}
\frametitle{Can I reduce the space above and below for that title? :(}
\titlepage
\begin{columns}[onlytextwidth]
    \begin{column}{0.45\textwidth}
        \begin{block}{block1 is not top aligned :(}
          \begin{minipage}[c][0.16\textheight][c]{\linewidth} 
            text
          \end{minipage}
        \end{block}
    \end{column}
    \begin{column}{0.45\textwidth}
        \begin{block}{block2  is not top aligned :(}
            \[
                \begin{bmatrix}
                    f_{1} & f_{2} & f_{3}\\
                    s_{1} & 0 & 0 \\ 
                    0 & s_{2} & 0 
                \end{bmatrix}
            \]
        \end{block}
    \end{column}    
\end{columns}
\end{frame}

\end{document}

答案1

演示文稿的标题页必须有自己的框架,其中包含副标题、作者、机构等。

要改变标题上方和下方的空间,可以添加一些负空间,从而为整个标题页创建新的定义。

第一张幻灯片显示如下,标题页不完整(缺少作者、机构和定义中的其他元素)

更好的方法是在两个块上插入标题,配置字体、颜色和空间(第二帧)。

块将使用以下方式在顶部对齐:\begin{columns}[T]

A

\documentclass[t,% globally top alignment?
shadow=false, 
]{beamer}
\usepackage[english]{babel}
\usepackage{lmodern}
\usepackage{amsmath, amssymb, amsfonts}

\author{}
\date{}
\institute{}

\usetheme{CambridgeUS}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=yellow!35}
% No shadows: 
\setbeamertemplate{blocks}[rounded][shadow=false]

\setbeamercolor{title in titlepage}{fg=red}
\setbeamerfont{title in titlepage}{size=\Large, series=\normalfont}
\def\titlepage{% new (incomplete) title page <<<<<<<<<<<<<<
    \centering%
    \vspace*{-1ex}% <<<<<<<<<<<<
    {\usebeamercolor[fg]{title in titlepage}%
    \usebeamerfont{title in titlepage} \inserttitle}%
    \vspace*{-1ex}% <<<<<<<<<<<<<<<<<<<,,
}

\begin{document}
    \title{This is not really top-aligned... :(}
    %\logo{\includegraphics[scale=0.14]{logo-SF}}
    
    \begin{frame}{Can I reduce the space above and below for that title? :(}    
        \titlepage
        \begin{columns}[T]% use T <<<<<<<<<<<<<<<<<<<<<<<<<<
            \begin{column}{0.45\textwidth}
                \begin{block}{block1 is  top aligned :)}
                    \begin{minipage}[c][0.16\textheight][c]{\linewidth} 
                        text
                    \end{minipage}
                \end{block}
            \end{column}
            \begin{column}{0.45\textwidth}
                \begin{block}{block2  is  top aligned :)}
                    \[
                    \begin{bmatrix}
                        f_{1} & f_{2} & f_{3}\\
                        s_{1} & 0 & 0 \\ 
                        0 & s_{2} & 0 
                    \end{bmatrix}
                    \]
                \end{block}
            \end{column}    
        \end{columns}
    \end{frame}

    \begin{frame}{Can I reduce the space above and below for that title? :(}
        \vspace*{-1ex}% <<<<<<<<<<<<
        \centering  {\Large \textcolor{red}{This is not really top-aligned... :(}}
        \vspace*{-1ex}% <<<<<<<<<<<<
    %           \titlepage
    \begin{columns}[T]% use T <<<<<<<<<<<<<<<<<<<<<<<<<<
        \begin{column}{0.45\textwidth}
            \begin{block}{block1 is  top aligned :)}
                \begin{minipage}[c][0.16\textheight][c]{\linewidth} 
                    text
                \end{minipage}
            \end{block}
        \end{column}
        \begin{column}{0.45\textwidth}
            \begin{block}{block2  is  top aligned :)}
                \[
                \begin{bmatrix}
                    f_{1} & f_{2} & f_{3}\\
                    s_{1} & 0 & 0 \\ 
                    0 & s_{2} & 0 
                \end{bmatrix}
                \]
            \end{block}
        \end{column}    
    \end{columns}
\end{frame} 
    
\end{document}

相关内容