删除外部主题中的“平滑度”

删除外部主题中的“平滑度”

我在这里使用这个代码:

\documentclass[professionalfont]{beamer}
\usefonttheme{professionalfonts}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
%\usepackage{textcomp}
\usepackage{lmodern} 
%\useoutertheme[subsection=false]{miniframes}
\usepackage{etoolbox}
\usepackage{newtxtext,newtxmath}
%\makeatletter
%\patchcmd{\slideentry}{\advance\beamer@xpos by1\relax}{}{}{}
%\def\beamer@subsectionentry#1#2#3#4#5{\advance\beamer@xpos by1\relax}%
%\makeatother

%\usefonttheme{serif}
\usepackage[
    audience=english
]{beameraudience}
\usepackage{hyperref}
%\usepackage[T1]{fontenc}
%\usepackage{ctex}
\usepackage[utf8]{inputenc}
% Cannot enable in Xelatex
\usepackage{pgfpages}
% \setbeameroption{hide notes} % Only slides
% \setbeameroption{show only notes} % Only notes
% \setbeameroption{show notes on second screen}
\usepackage{caption}
\captionsetup{font=scriptsize,labelfont=scriptsize}
% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}
\usepackage{graphicx,listings,stackengine}

%% Enable only in Xelatex
% \usepackage{pstricks}
\usepackage{tikz}
\author{Micha Christ}
\title{Kalman Bayesian Neural Network: An in-depth Revision and Extension to Convolutional Architectures}
\institute [Media Univsersity Stuttgart, Fraunhofer IPA] {Media Univsersity Stuttgart\\Center for Cyber Cognitive Intelligence, Fraunhofer IPA}
\setbeamerfont{footnote}{size=\scriptsize}
\usepackage{YTU}
\graphicspath{{pic/}}
% defs
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{halfgray}{gray}{0.55}
\definecolor{gr}{HTML}{2f6e5a}
\lstset{
    basicstyle=\ttfamily\small,
    keywordstyle=\bfseries\color{deepblue},
    emphstyle=\ttfamily\color{deepred},    % Custom highlighting style
    stringstyle=\color{deepgreen},
    numbers=left,
    numberstyle=\small\color{halfgray},
    rulesepcolor=\color{red!20!green!20!blue!20},
    frame=shadowbox,
}

\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent=20}
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
    \oldmacro\hfill%
    }

\setbeamertemplate{headline}
{%
    \begin{beamercolorbox}{section in head/foot}
        \insertsectionnavigationhorizontal{\textwidth}{}{}
    \end{beamercolorbox}%
}

这给了我以下标题:

在此处输入图片描述

在不改变页脚或其他任何内容的情况下,如何消除第二个(浅绿色)标题栏的平滑度?

谢谢!

答案1

您可以像这样重新定义框架标题:

\documentclass[professionalfont]{beamer}
\usefonttheme{professionalfonts}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
%\usepackage{textcomp}
\usepackage{lmodern} 
%\useoutertheme[subsection=false]{miniframes}
\usepackage{etoolbox}
\usepackage{newtxtext,newtxmath}
%\makeatletter
%\patchcmd{\slideentry}{\advance\beamer@xpos by1\relax}{}{}{}
%\def\beamer@subsectionentry#1#2#3#4#5{\advance\beamer@xpos by1\relax}%
%\makeatother

%\usefonttheme{serif}
\usepackage[
    audience=english
]{beameraudience}
\usepackage{hyperref}
%\usepackage[T1]{fontenc}
%\usepackage{ctex}
\usepackage[utf8]{inputenc}
% Cannot enable in Xelatex
\usepackage{pgfpages}
% \setbeameroption{hide notes} % Only slides
% \setbeameroption{show only notes} % Only notes
% \setbeameroption{show notes on second screen}
\usepackage{caption}
\captionsetup{font=scriptsize,labelfont=scriptsize}
% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}
\usepackage{graphicx,listings,stackengine}

%% Enable only in Xelatex
% \usepackage{pstricks}
\usepackage{tikz}
\author{Micha Christ}
\title{Kalman Bayesian Neural Network: An in-depth Revision and Extension to Convolutional Architectures}
\institute [Media Univsersity Stuttgart, Fraunhofer IPA] {Media Univsersity Stuttgart\\Center for Cyber Cognitive Intelligence, Fraunhofer IPA}
\setbeamerfont{footnote}{size=\scriptsize}
\usepackage{YTU}
\graphicspath{{pic/}}
% defs
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{halfgray}{gray}{0.55}
\definecolor{gr}{HTML}{2f6e5a}
\lstset{
    basicstyle=\ttfamily\small,
    keywordstyle=\bfseries\color{deepblue},
    emphstyle=\ttfamily\color{deepred},    % Custom highlighting style
    stringstyle=\color{deepgreen},
    numbers=left,
    numberstyle=\small\color{halfgray},
    rulesepcolor=\color{red!20!green!20!blue!20},
    frame=shadowbox,
}

\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent=20}
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
    \oldmacro\hfill%
    }

\setbeamertemplate{headline}
{%
    \begin{beamercolorbox}{section in head/foot}
        \insertsectionnavigationhorizontal{\textwidth}{}{}
    \end{beamercolorbox}%
}


\makeatletter
\setbeamertemplate{frametitle}{%
  \nointerlineskip%
  \vskip-0.19ex%
  \usebeamerfont{headline}%
  \nointerlineskip%
  \begin{beamercolorbox}[wd=\paperwidth,leftskip=.3cm,rightskip=.3cm plus1fil,vmode]{frametitle}
    \vskip0.5ex%
    \usebeamerfont*{frametitle}\strut\insertframetitle%
      \ifx\insertframesubtitle\@empty%
        \strut\par%
      \else
        \par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle}\strut\par}%
      \fi%%
    \usebeamerfont{headline}%
    \vskip0.05ex%
  \end{beamercolorbox}%
}
\makeatother

\begin{document}
\begin{frame}
\frametitle{title}
\end{frame}
\end{document}

在此处输入图片描述

相关内容