我希望标题(“Meldebogen”、“Anklage”、“Beweisaufnahme”、“Urteil”)无论内容如何都处于相同的垂直高度。我认为只需将每个节点中的文本顶部对齐即可解决问题,但在谷歌上搜索并尝试文本交换如何做到这一点却没有得到任何结果。
我试过\phantom{a}
一些诡计,\vspace
但\vspace*
无济于事。
梅威瑟:
\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{27. June 2018}
\mode<presentation>{}
\usepackage{tikz}
\usetikzlibrary{chains, positioning, shapes.symbols}
\usepackage{etoolbox}
\tikzset{start/.style = {signal, draw=#1, fill=#1!30,
text width=23mm, text=black, minimum height=23mm, font=\tiny,
signal pointer angle=150, on chain},
cont/.style = {start=#1, signal from=west, text=black}
}
\begin{document}
\beamertemplatenavigationsymbolsempty
\title{MS Powerpoint and TeX}
\author{Narusan}
\begin{frame}[t, fragile]
\frametitle{Hello World
\begin{tikzpicture}[
node distance = 2mm,
start chain = going right,
]
\node[start=darkred!80!black] {\bfseries
Meldebogen\\
\normalfont
\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] {\bfseries
Anklage\\
\normalfont
\begin{itemize}
\item \color{black}{Einflussreiche Nazis konnten Anklage entgehen}
\end{itemize}
};
\node[cont=gray!60!white] {\bfseries
Beweisaufnahme\\
\normalfont
\begin{itemize}
\item \color{black}{Kl\"{a}ger ermittelt kaum}
\item Persilscheine
\item Zeitdruck
\end{itemize}
};
\node[cont=gray!60!white] {\bfseries
Urteil\\
\normalfont
};
\end{tikzpicture}
}
\end{frame}
\end{document}
整个 TikZ 脚本只是此代码
答案1
作为替代方案,可以将段落标题定义为label
内容的一部分,而不是内容的一部分。这样,它们总是位于与北边界相等的距离。
\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{27. June 2018}
\mode<presentation>{}
\usepackage{tikz}
\usetikzlibrary{chains, positioning, shapes.symbols}
\usepackage{etoolbox}
\tikzset{start/.style = {signal, draw=#1, fill=#1!30,
text width=23mm, text=black, minimum height=23mm, font=\tiny,
signal pointer angle=150, on chain},
cont/.style = {start=#1, signal from=west, text=black}
}
\begin{document}
\beamertemplatenavigationsymbolsempty
\title{MS Powerpoint and TeX}
\author{Narusan}
\begin{frame}[t, fragile]
\frametitle{Hello World
\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}] { \begin{itemize}
\item \color{black}{Einflussreiche Nazis konnten Anklage entgehen}
\end{itemize}
};
\node[cont=gray!60!white, label={[mylabel]north west:Beweisaufnahme}] {
\begin{itemize}
\item \color{black}{Kl\"{a}ger ermittelt kaum}
\item Persilscheine
\item Zeitdruck
\end{itemize}
};
\node[cont=gray!60!white, label={[mylabel]north west:Urteil}] {};
\end{tikzpicture}
}
\end{frame}
\end{document}