![Beamer のヘッダーのサイズを縮小するにはどうすればよいですか?](https://rvso.com/image/390910/Beamer%20%E3%81%AE%E3%83%98%E3%83%83%E3%83%80%E3%83%BC%E3%81%AE%E3%82%B5%E3%82%A4%E3%82%BA%E3%82%92%E7%B8%AE%E5%B0%8F%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F.png)
次のようなコードがあります:
\documentclass{beamer}
\mode<presentation> {
\usetheme{PaloAlto}
%\setbeamertemplate{footline} % To remove the footer line in all slides uncomment this line
%\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line
%\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\title[Managerial Economics]{VW Invasion of North America} % The short title appears at the bottom of every slide, the full title is only on the title page
\institute[FDSM] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
{
\textit{Fudan Business} \\\textit{School of Management} \\ % Your institution for the title page
\medskip
%\textit{[email protected]} % Your email address
}
\date{\today} % Date, can be changed to a custom date
\begin{document}
\section{Section 1}
\begin{frame}
\frametitle{Section 1}
\end{frame}
\end{document}
ヘッダーのサイズを小さくしたいです。
答え1
私はこれを使いました:
\makeatletter
\setlength{\beamer@headheight}{1cm}
\makeatother
そうすればサイズを小さくできる
答え2
Beamer の内部長さを変更する代わりに、テーマがロードされる前に、次のようにsidebar
使用して高さオプションを外部テーマに渡すことができます。\PassOptionsToPackage{height=1cm}{beamerouterthemesidebar}
\documentclass{beamer}
\PassOptionsToPackage{height=1cm}{beamerouterthemesidebar}
\mode<presentation> {
\usetheme{PaloAlto}
%\setbeamertemplate{footline} % To remove the footer line in all slides uncomment this line
%\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line
%\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
}
%\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\title[Managerial Economics]{VW Invasion of North America} % The short title appears at the bottom of every slide, the full title is only on the title page
\institute[FDSM] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
{
\textit{Fudan Business} \\\textit{School of Management} \\ % Your institution for the title page
\medskip
%\textit{[email protected]} % Your email address
}
\date{\today} % Date, can be changed to a custom date
\begin{document}
\section{Section 1}
\begin{frame}
\frametitle{Section 1}
\end{frame}
\end{document}
graphicx
話題外ですが、 beamerでパッケージをロードする必要はありません