Beamer主题定制

Beamer主题定制

我想制作与此类似的 Beamer 模板样本。我试过类似的东西。现在我需要自定义主题颜色(我不知道哪种 RGB 组合会创建类似于示例的东西。此外,我需要删除一行页脚(从我的编码中)。请给我一些建议。谢谢

附言:样本是演示的快照。请不要与字母混淆。

\documentclass[11pt,a4paper]{beamer}
\mode<presentation>
\usepackage[utf8]{inputenc}
\usepackage{default}
\usepackage{hyperref}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{multimedia}
\usepackage{epstopdf}

\usetheme{Berlin}
\usecolortheme[rgb={0.0,0.0,0.4}]{structure}
\useoutertheme{smoothbars}
\useinnertheme{circles}

示例主题

答案1

可能您需要做一些其他调整,因为没有提供有关内部元素(块、枚举/项目化标签等)的信息,但这将为您提供所需的信息以及适当定义所有其他必需元素的可能性:

\documentclass[11pt]{beamer}
\mode<presentation>
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{multimedia}
\usepackage{epstopdf}

\useoutertheme{smoothbars}
\useinnertheme{rounded}

\definecolor{mygreen1}{RGB}{0,73,44} 
\definecolor{mygreen2}{RGB}{0,140,81} 

\setbeamercolor{structure}{fg=white,bg=mygreen2}
\setbeamercolor*{palette primary}{fg=mygreen1,bg=mygreen2}
\setbeamercolor*{palette secondary}{fg=white,bg=mygreen1}
\setbeamercolor*{palette tertiary}{bg=mygreen1,fg=white}
\setbeamercolor*{palette quaternary}{fg=white,bg=mygreen2!50}

\setbeamercolor{frametitle}{fg=white!90!mygreen1}

\setbeamercolor{section in head/foot}{fg=white,bg=mygreen1}
\setbeamercolor{author in head/foot}{fg=white,bg=mygreen2}
\setbeamercolor{title in head/foot}{fg=white,bg=mygreen1}

\setbeamertemplate{navigation symbols}{}

\defbeamertemplate*{headline}{mytheme}
{%
  \begin{beamercolorbox}[ht=2.25ex,dp=3.75ex]{section in head/foot}
    \insertnavigation{\paperwidth}
  \end{beamercolorbox}%
}%

\defbeamertemplate*{footline}{mytheme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor\hspace*{2em}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
    \usebeamerfont{title in head/foot}\hspace*{2em}\insertshortsubtitle\hspace*{2em}
    \insertframenumber{} / \inserttotalframenumber
  \end{beamercolorbox}}%
  \vskip0pt%
}

\title{The Title}
\subtitle[The Subtitlein Footline]{The Subtitle}
\author{The Author}

\pgfdeclareimage[height=1cm]{logo}{dog1}%<- change dog1 for yor logo image file
\logo{\pgfuseimage{logo}}

\begin{document}

\begin{frame}
\maketitle
\end{frame}

\section{Test section one}
\begin{frame}
\frametitle{Test title}
test
\end{frame}
\subsection{Test subsection}
\begin{frame}
test
\end{frame}
\subsection{Test subsection}
\begin{frame}
test
\end{frame}

\section{Test section two}
\begin{frame}
\frametitle{Test title}
test
\end{frame}
\subsection{Test subsection}
\begin{frame}
test
\end{frame}
\subsection{Test subsection}
\begin{frame}
test
\end{frame}

\end{document}

在此处输入图片描述

答案2

在此处输入图片描述

Gonzalo 的更完整(也更准确),但由于我已经开始这样做了:

\documentclass{beamer}
\usetheme{Darmstadt} % http://tex.stackexchange.com/questions/177042/beamer-latex-customized-formats
\useoutertheme[subsection=false,footline=authortitle]{miniframes}
% RGB scaled on 0-255 scale (section 17.1.1), colors pulled from title block
\usecolortheme[RGB={44, 131, 82}]{structure}

\title{Fundamentals of X and Y}
\subtitle{Tutorial at Z 2009, Vienna, Austria}
\author{Gsomething Ksomething}
\institute{Department of Electrical Engineering \\ University of Something Comething}

\newcommand{\makeasection}{%
\subsection{A} % force dots to show up below section navigation
\begin{frame}
\frametitle{Title}
Frame content
\end{frame}
\begin{frame}
\frametitle{Title}
Frame content
\end{frame}
}
\begin{document}

\begin{frame}
\titlepage
\end{frame}

\section{Channels, Coding, and Capacity} \makeasection
\section{Spectral Efficiency} \makeasection
\section{Linear Block Codes} \makeasection
\section{Hard and Soft Decoding} \makeasection
\section{Fiber Capacity Estimate} \makeasection

\end{document}

相关内容