我的投影仪风格还存在一个问题。
所以基本上,我尝试包含一个灰色页脚,其中包含名称、简称和框架编号。
因此我使用以下内容将页脚分为两部分:
\makeatother
\setbeamertemplate{footline}
{
\leavevmode
\hbox{ \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot} \usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox} \begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot} \usebeamerfont{title in head/foot}\insertshorttitle\hspace*{18em}
\insertframenumber{} / \inserttotalframenumber\hspace*{5ex}
\end{beamercolorbox}}
\vskip0pt
}
\makeatletter
\setbeamercolor{author in head/foot}{use=structure,fg=red,bg=gray!10!white}
\setbeamercolor{title in head/foot}{use=structure,fg=red,bg=gray!10!white}
结果如下:
基本上,我无法扩展页脚的两个部分来覆盖两个箭头所指示的白色和红色。
我正在使用新加坡主题的科学工作区。我发布了我的文件的整个前言,以防它有用,尽管目前它有点混乱。
\newenvironment{stepenumerate}{\begin{enumerate}[<+->]}{\end{enumerate}}
\newenvironment{stepitemize}{\begin{itemize}[<+->]}{\end{itemize} }
\newenvironment{stepenumeratewithalert}{\begin{enumerate}[<+-| alert@+>]}{\end{enumerate}}
\newenvironment{stepitemizewithalert}{\begin{itemize}[<+-| alert@+>]}{\end{itemize} }
\usetheme{Singapore}
\setbeamertemplate{itemize item}[$ball$]
\setbeamertemplate{itemize subitem}{$-$}
\setbeamertemplate{itemize subsubitem}{$*$}
\definecolor{unime}{rgb}{.93,.9,.0}
\usecolortheme[named=unime]{structure}
\setbeamerfont{footnote}{size=\tiny}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor{block title}{use=structure,fg=white,bg=lside}
\setbeamercolor{block body}{use=structure,bg=white}
\setbeamercolor{itemize item}{fg=lside}
\setbeamercolor{itemize subitem}{fg=lside}
\setbeamercolor{itemize subsubitem}{fg=lside}
\definecolor{lside}{rgb}{.7,.0,.0}
\definecolor{leftFootlineColor}{rgb}{.54,.17, .89}
\useoutertheme[width=1.3cm,height=35pt,left]{sidebar}
\setbeamercolor{frametitle}{bg=unime}
\setbeamercolor{section in head/foot}{bg=leftFootlineColor}
\setbeamercolor{title}{use=structure,fg=black}
\logo {\includegraphics[height=1.3cm,width=1.3cm]{uni}}
\setbeamertemplate{sidebar canvas left} [vertical shading]
[top=lside, bottom=lside]
\setbeamertemplate{navigation symbols}{}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\graphicspath{{c:/}}
\makeatletter
\setlength{\beamer@headheight}{1.3cm}
\makeatother
\newlength\sidebarwd
\setlength\sidebarwd{1.3cm}
\setbeamersize{sidebar width left=\sidebarwd}
\makeatletter
\setlength\beamer@sidebarwidth{\sidebarwd}
\makeatother
\setbeamercolor{page number in head/foot}{fg=lside}
\makeatletter
\setbeamertemplate{sidebar \beamer@sidebarside}
{
\beamer@tempdim=\beamer@sidebarwidth
\advance\beamer@tempdim by -6pt
\insertverticalnavigation{\beamer@sidebarwidth}
\vfill
\ifx\beamer@sidebarside\beamer@lefttext
\else
\usebeamercolor{normal text}
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}
\vskip2pt
\fi
}
\makeatother
\setbeamertemplate{footline}
{
\leavevmode
\hbox{ \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot} \usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox} \begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot} \usebeamerfont{title in head/foot}\insertshorttitle\hspace*{18em}
\insertframenumber{} / \inserttotalframenumber\hspace*{5ex}
\end{beamercolorbox}}
\vskip0pt
}
\makeatletter
\setbeamercolor{author in head/foot}{use=structure,fg=red,bg=gray!10!white}
\setbeamercolor{title in head/foot}{use=structure,fg=red,bg=gray!10!white}
\input{tcilatex}
有人有想法吗?
谢谢
达里奥
答案1
您在第一个框之前以及第一个和第二个框之间插入了一些空格。
如果删除它们并%
在行尾插入注释符号,则可以解决问题。
最后%
执行下一行的代码确切地在前一个之后。
\setbeamertemplate{footline}
{%
\leavevmode
\hbox{%
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]%
{author in head/foot}%
\usebeamerfont{author in head/foot}%
\insertshortauthor%
\end{beamercolorbox}% <-- no blank space here
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,right]%
{title in head/foot}%
\usebeamerfont{title in head/foot}%
\insertshorttitle%
\hspace*{18em}%
\insertframenumber\ / \inserttotalframenumber%
\hspace*{5ex}
\end{beamercolorbox}%
}
\vskip0pt
}