
次のコードは、 を使用してタイトル名を Beamer の見出しに出力します\insertshorttitle
。問題は、タイトルが長い場合、見出し内で行が自動的に折り返されないことです。奇妙なのは、 を使用すると行が自動的に折り返されることです\inserttitle
。
\documentclass[]{beamer}
\usepackage{tikz}
\usepackage{varwidth}
\tikzstyle{example-box} = [fill=yellow, align=left, rectangle, text width=\textwidth]
\setbeamertemplate{headline}{
\begin{tikzpicture}
\node [example-box] (box){
\insertshorttitle
};
\end{tikzpicture}
}
\title{A long title when inserted in the headline, using insertshorttitle does not break line. Whereas using inserttitle breaks the line. Specifying align=left in tikz block is not working either.}
\begin{document}
\begin{frame}
Insert the short title.
\end{frame}
\end{document}
\inserttitle を使用する場合:
\insertshorttitle を使用する場合:
使用中に見出し内で自動改行する方法を知っている人はいますか\insertshorttitle
?よろしくお願いします