不断将元素约束到投影仪幻灯片的顶部

不断将元素约束到投影仪幻灯片的顶部

对于演示文稿,我这里有些真正乐于助人的用户帮助我创建了一个基本上基于 V 形的进度条。这是我演示文稿中框架标题的替代品。

但是,根据幻灯片上的其他内容,进度条会垂直移动。有没有办法将其不断限制在幻灯片的顶部边缘(就像框架标题一样)?我尝试过将其包装在框架标题内,但这样会增加很多空间。

在此处输入图片描述在此处输入图片描述

垂直差异可以说非常小,但这样看起来更令人讨厌。最极端的情况显然是一张空幻灯片,进度条位于中间。

MWE 如下:

\documentclass{beamer}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{svg}
%\usepackage{gensymb}
%\usepackage{siunitx}

%\sisetup {
    %locale = DE,
    %per-mode = symbol
%}

% THEME AND COLOR SETUP
\usetheme{CambridgeUS}
\usecolortheme[RGB={205,0,0}]{structure}
\setbeamertemplate{items}[default]
\setbeamertemplate{sections/subsections in toc}[square]

\newcommand{\quoted}[1]{
    \glqq#1\grqq
}
\date{03. Juli 2018}

\usepackage{tikz}
\usetikzlibrary{chains, positioning, shapes.symbols}
\usepackage{etoolbox}

\tikzset{start/.style = {signal, draw=#1, fill=#1!30,
        text width=16mm, text=black, minimum height=23mm, font=\tiny,
        signal pointer angle=150, on chain},
    cont/.style = {start=#1, signal from=west, text=black}
}


\mode<presentation>{}

\begin{document}


\begin{frame}
     \begin{center}
        \setlength{\leftmargini}{6pt}
        \setlength{\labelsep}{1pt}
        \begin{figure}[T]
        \begin{tikzpicture}[
        node distance = 2mm,
        start chain = going right,
        mylabel/.style={anchor=north west,font=\bfseries\tiny, color=black}
        ]

        \node[start=darkred!80!black, label={[mylabel]north west:Meldebogen}] {
            \begin{itemize} 
            \item {\color{black}{einziger Anhaltspunkt f\"{u}r Verfahren}}
            \item \"{U}berpr\"{u}fung der Angaben schwer                       
            \end{itemize}   
        };
        \node[cont=gray!60!white, label={[mylabel]north west:Anklage}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Beweisaufnahme}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Urteil}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Revision}] {};      
        \end{tikzpicture}
    \end{figure}
    \end{center}
            \vspace{5mm}
            \begin{columns}
            \begin{column}{.47\textwidth}
                 \includegraphics[width=\textwidth]{Entnazifizierung_Bilder/Zwissler_Meldebogen_Fehler.jpg}
             \end{column}
             \begin{column}{.47\textwidth}
                 \emph{F\"{u}r den Fall, dass in dieser Spalte (\ldots) der Eintritt in die Partei einzusetzen war, (\ldots), bitte (ich), gegebenenfalls meinen abgegebenen Meldebogen entsprechend zu berichtigen}
          \end{column}
      \end{columns}
\end{frame}

\begin{frame}[t, fragile]
    \begin{center}
        \setlength{\leftmargini}{6pt}
        \setlength{\labelsep}{1pt}
        \begin{figure}[T]
        \begin{tikzpicture}[
        node distance = 2mm,
        start chain = going right,
        mylabel/.style={anchor=north west,font=\bfseries\tiny, color=black}
        ]

        \node[start=gray!60!white, label={[mylabel]north west:Meldebogen}] {
            \begin{itemize} 
            \item {\color{black}{einziger Anhaltspunkt f\"{u}r Verfahren}}
            \item \"{U}berpr\"{u}fung der Angaben schwer                       
            \end{itemize}   
        };
        \node[cont=darkred!80!black, label={[mylabel]north west:Anklage}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Beweisaufnahme}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Urteil}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Revision}] {};      
        \end{tikzpicture}
    \end{figure}
    \end{center}
    \begin{columns}
                \begin{column}{.6\textwidth}
                    \begin{itemize}[<+->]
                        \item \"{O}ffentliche Kl\"{a}ger erhebt Anklage in Ludwigsburg
                \end{itemize} 
            \end{column}
            \begin{column}{.4\textwidth}
            \includegraphics[height=0.45\textheight]{Entnazifizierung_Bilder/Schick_Meldebogen_01.jpg}\\
        \end{column}
    \end{columns}
\end{frame}

\end{document}

仅供参考,一些失败的尝试:

在此处输入图片描述 在此处输入图片描述

左图:简单地将所有内容包裹起来\frametitle{};右图:尝试\begin{centred}[T]

答案1

在第二帧中,您已经选择了正确的选项: 。但是,将放在图形中[t]这一事实使事情变得不必要地复杂,因为图形是浮点数,呃,浮动。(非常感谢@samcarter的澄清。)这里有一个(我相信)不会跳的提议。tikzpicture

\documentclass{beamer}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{svg}
\usetheme{CambridgeUS}
\usecolortheme[RGB={205,0,0}]{structure}
\setbeamertemplate{items}[default]
\setbeamertemplate{sections/subsections in toc}[square]

\newcommand{\quoted}[1]{
    \glqq#1\grqq
}
\date{03. Juli 2018}

\usepackage{tikz}
\usetikzlibrary{chains, positioning, shapes.symbols}
\usepackage{etoolbox}

\tikzset{start/.style = {signal, draw=#1, fill=#1!30,
        text width=16mm, text=black, minimum height=23mm, font=\tiny,
        signal pointer angle=150, on chain},
    cont/.style = {start=#1, signal from=west, text=black}
}


\mode<presentation>{}

\begin{document}


\begin{frame}[t]
\vspace*{-1mm}\begin{columns}
\begin{column}{\textwidth}
\centering
\begin{tikzpicture}[node distance = 2mm,
        start chain = going right,
        mylabel/.style={anchor=north west,font=\bfseries\tiny, color=black}
        ]
        \setlength{\leftmargini}{6pt}
        \setlength{\labelsep}{1pt}
        \node[start=darkred!80!black, label={[mylabel]north west:Meldebogen}] {
            \begin{itemize} 
            \item {\color{black}{einziger Anhaltspunkt f\"{u}r Verfahren}}
            \item \"{U}berpr\"{u}fung der Angaben schwer                       
            \end{itemize}   
        };
        \node[cont=gray!60!white, label={[mylabel]north west:Anklage}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Beweisaufnahme}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Urteil}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Revision}] {};      
        \end{tikzpicture}
 \end{column}               
\end{columns}
\vspace{5mm}
\begin{columns}
 \begin{column}{.47\textwidth}
     \includegraphics[width=\textwidth]{example-image}
 \end{column}
 \begin{column}{.47\textwidth}
     \emph{F\"{u}r den Fall, dass in dieser Spalte (\ldots) der Eintritt in die Partei einzusetzen war, (\ldots), bitte (ich), gegebenenfalls meinen abgegebenen Meldebogen entsprechend zu berichtigen}
 \end{column}
\end{columns}
\end{frame}

\begin{frame}[t, fragile]
\vspace*{-1mm}\begin{columns}
\begin{column}{\textwidth}
\centering
        \setlength{\leftmargini}{6pt}
        \setlength{\labelsep}{1pt}
        \begin{tikzpicture}[
        node distance = 2mm,
        start chain = going right,
        mylabel/.style={anchor=north west,font=\bfseries\tiny, color=black}
        ]

        \node[start=gray!60!white, label={[mylabel]north west:Meldebogen}] {
            \begin{itemize} 
            \item {\color{black}{einziger Anhaltspunkt f\"{u}r Verfahren}}
            \item \"{U}berpr\"{u}fung der Angaben schwer                       
            \end{itemize}   
        };
        \node[cont=darkred!80!black, label={[mylabel]north west:Anklage}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Beweisaufnahme}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Urteil}] {};
        \node[cont=gray!60!white, label={[mylabel]north west:Revision}] {};      
        \end{tikzpicture}
\end{column}               
\end{columns}
\vspace{5mm}
\begin{columns}
 \begin{column}{.6\textwidth}
     \begin{itemize}[<+->]
         \item \"{O}ffentliche Kl\"{a}ger erhebt Anklage in Ludwigsburg
 \end{itemize} 
 \end{column}
 \begin{column}{.4\textwidth}
  \includegraphics[height=0.45\textheight]{example-image}\\
 \end{column}
\end{columns}
\end{frame}
\end{document}

在此处输入图片描述

解释:我之前的回答哪里错了?在移动东西时,我移动了

        \setlength{\leftmargini}{6pt}
        \setlength{\labelsep}{1pt}

在 之外tikzpicture,这些设置会变成全局设置,并造成混乱。对此深表歉意!

相关内容