我试图制作一个定制的 Beamer 演示模板,但未能完成,并且在完成时遇到了一些困难。你能帮助我完成任务吗?
我的编码如下
\documentclass[xcolor=x11names,compress]{beamer}
\usetheme{Darmstadt}
\usepackage{graphicx}
\usepackage{tikz}
%\usetikzlibrary{decorations.fractals}
\useoutertheme[subsection=false,footline=authortitle]{miniframes}
\usefonttheme{serif}
\usepackage{palatino}
\setbeamerfont{title like}{shape=\scshape}
\setbeamerfont{frametitle}{shape=\scshape}
\setbeamercolor*{lower separation line head}{bg=DeepSkyBlue4}
\setbeamercolor*{normal text}{fg=black,bg=white}
\setbeamercolor*{alerted text}{fg=red}
\setbeamercolor*{example text}{fg=black}
\setbeamercolor*{structure}{fg=DeepSkyBlue4,bg=white}
\setbeamercolor*{palette tertiary}{fg=black,bg=black!10}
\setbeamercolor*{palette quaternary}{fg=black,bg=black!10}
\renewcommand{\(}{\begin{columns}}
\renewcommand{\)}{\end{columns}}
\newcommand{\<}[1]{\begin{column}{#1}}
\renewcommand{\>}{\end{column}}
\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
\subsection{Blocks}
\begin{frame}
\frametitle{Blocks}
\begin{definition}[Greetings]
Hello World
\end{definition}
\begin{theorem}[Fermat's Last Theorem]
$a^n + b^n = c^n, n \leq 2$
\end{theorem}
\begin{alertblock}{Alert Block}
Errors!
\end{alertblock}
\begin{exampleblock}{Example Block}
An example of something.
\end{exampleblock}
\end{frame}
\end{document}
现在我想从第一页中删除页眉部分,并在顶部添加两个徽标文件,在底部添加一个徽标文件(示例图像中提到)
标题页(从第 2 页开始)应在标题左侧部分有一个徽标,背景颜色应为蓝色渐变(如附图所示)。
谢谢
答案1
您想要的一些东西在 Beamer 中是非标准的。但您始终可以将现有的 Beamer 模板作为起点,并根据您的需要进行调整
\documentclass[xcolor=x11names,compress]{beamer}
\usetheme{Darmstadt}
\useoutertheme[subsection=false,footline=authortitle]{miniframes}
\usefonttheme{serif}
\usepackage{palatino}
\setbeamerfont{title like}{shape=\scshape}
\setbeamerfont{frametitle}{shape=\scshape}
\setbeamercolor*{lower separation line head}{bg=DeepSkyBlue4}
\setbeamercolor*{normal text}{fg=black,bg=white}
\setbeamercolor*{alerted text}{fg=red}
\setbeamercolor*{example text}{fg=black}
\setbeamercolor*{structure}{fg=DeepSkyBlue4,bg=white}
\setbeamercolor*{palette tertiary}{fg=black,bg=black!10}
\setbeamercolor*{palette quaternary}{fg=black,bg=black!10}
\setbeamertemplate{navigation symbols}{}
\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% footline mod. from beamerouterthemeinfolines.sty
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamercolor{author in head/foot}{fg=white,bg=}
\setbeamercolor{title in head/foot}{fg=white,bg=}
\setbeamercolor{date in head/foot}{fg=black,bg=}
\makeatletter
\setbeamertemplate{footline}
{%
\setbox\beamer@tempbox=\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}%
}%
\vskip0pt%
\begin{pgfpicture}{0pt}{0pt}{\paperwidth}{0cm}%
\usebeamercolor{frametitle right}%
\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{3.5ex}}%
\pgfusepath{clip}%
\pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}}%
\end{pgfpicture}%
\beamer@tempdim=\ht\beamer@tempbox%
\advance\beamer@tempdim by 0.95ex%
\vskip-\beamer@tempdim%
\box\beamer@tempbox%
}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% titlepage mod. from beamerinnerthemedefault.sty
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{title page}
{
\vbox{}
\begingroup
\includegraphics[height=1.5cm]{example-grid-100x100bp}
\hfill
\includegraphics[height=1.5cm]{example-grid-100x100bp}\par
\vskip1em\par
\centering
\begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\hfill
\includegraphics[height=1.5cm]{example-grid-100x100bp}\par
\endgroup
\vfill
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% framtitle mod. from beamerouterthemeshadow.sty
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\colorlet{titleright}{yellow!10!white}
\colorlet{titleleft}{DeepSkyBlue4}
\colorlet{titlemid}{green!60!blue}
\makeatletter
\pgfdeclarehorizontalshading[titleleft,titleright]{beamer@frametitleshade}{\paperheight}{%
color(0pt)=(titleleft);
color(.5\paperwidth)=(titlemid);
color(\paperwidth)=(titleright)
}
\AtBeginDocument{
\pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{%
color(0pt)=(bg);
color(4pt)=(black!50!bg)
}
}
\setbeamertemplate{frametitle}
{%
\nointerlineskip%
\vskip-2pt%
\hbox{\leavevmode
\advance\beamer@leftmargin by -12bp%
\advance\beamer@rightmargin by -12bp%
\beamer@tempdim=\textwidth%
\advance\beamer@tempdim by \beamer@leftmargin%
\advance\beamer@tempdim by \beamer@rightmargin%
\hskip-\Gm@lmargin\hbox{%
\setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}%
\vbox{}\vskip-.75ex%
\leftskip0.3cm%
\rightskip0.3cm plus1fil\leavevmode
\insertframetitle \hfill \raisebox{-0.8mm}{\includegraphics[height=0.5cm]{example-grid-100x100bp}}%
\ifx\insertframesubtitle\@empty%
\strut\par%
\else
\par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\strut\par}%
\fi%
\nointerlineskip
\vbox{}%
\end{minipage}}%
\beamer@tempdim=\ht\beamer@tempbox%
\advance\beamer@tempdim by 2pt%
\begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim}
\usebeamercolor{frametitle right}
\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
\pgfusepath{clip}
\pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}}
\end{pgfpicture}
\hskip-\paperwidth%
\box\beamer@tempbox%
}%
\hskip-\Gm@rmargin%
}%
\nointerlineskip
\vskip-0.2pt
\hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@topshade}\hskip-\Gm@rmargin}
\vskip-2pt
}
\makeatother
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\section{test}
\subsection{test}
\begin{frame}{test}
test
\end{frame}
\end{document}