I would like to add a Thank you page as below without the Part 1 and subsection. How to get around with this ? many thanks in advance.
%% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[10pt,english,8pt]{beamer}
\usepackage{lmodern}
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage{footmisc}
\usepackage{amsmath,amstext,amssymb,amsfonts,amsthm}
\newcommand{\iid}{\stackrel{\mathrm{iid}}{\sim}}
\usepackage{lmodern}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage[font=small]{caption} %\usepackage{caption}
\usepackage{hyperref}
\usepackage{cleveref}
%\newcommand{\footref}[1]{\textsuperscript{\ref{#1}}}
%\usepackage[latin9]{luainputenc}
\usepackage{fontawesome5}
\setbeamercovered{transparent}
\usepackage{appendixnumberbeamer}
%\RequirePackage{pgf}%
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{nameref}
\usenavigationsymbolstemplate{}
%https://stackoverflow.com/questions/71172611/reference-between-slides-in-beamr/71172957#71172957
%%%%%%%%%%%%%%%%%%%%%%
%TO COLOR THE R CODE
\usepackage{listings}
\usepackage{xcolor}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
%backgroundcolor=\color{white},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
%%%%%%%%%%%%%%%%%%%%%%
\usepackage{float}
\usepackage{longtable}
\usepackage{appendix}
\usepackage{booktabs}
%\usepackage{ltablex}
\usepackage{xltabular}
\newcommand{\argmax}{\operatornamewithlimits{argmax}}
%\newcommand{\iid}{\stackrel{\mathrm{iid}}{\sim}}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{R}{>{\raggedright\arraybackslash}X}
\newcolumntype{L}{>{\raggedleft\arraybackslash}X}
\usepackage{tikz,ulem}
\usetikzlibrary{shapes,shadows,positioning}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\ifx\hypersetup\undefined
\AtBeginDocument{%
\hypersetup{unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true}
}
\else
\hypersetup{unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true}
\fi
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
% this default might be overridden by plain title style
\newcommand\makebeamertitle{\frame{\maketitle}}%
% (ERT) argument for the TOC
\AtBeginDocument{%
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usetheme{CambridgeUS}
%\usetheme{default}
\usecolortheme{crane}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{blindtext}
\setlength{\intextsep}{0cm plus1cm minus1cm}
%\hypersetup{urlcolor=teal}
\hypersetup{urlcolor=blue}
%\usepackage{enumitem}
%\usepackage{color}
\setbeamercolor*{item}{fg=red}
\usepackage{tikz, ulem}
\usetikzlibrary{shapes,arrows}
\usepackage{caption}
\usetikzlibrary{matrix,shapes}
\usepackage{graphicx}
\setlength{\intextsep}{0cm plus1cm minus1cm}
\setlength{\intextsep}{0cm plus1cm minus1cm}
\setbeamercolor{footlinecolor}{fg=red, bg=lightgray}%{fg=black,bg=lightgray}
\setbeamercolor{headlinecolor}{fg=red,bg=lightgray}
%\setbeamertemplate{headline}{}
%https://tex.stackexchange.com/questions/304009/setting-a-custom-rgb-background-color-in-beamer
\definecolor{mytitlecolor}{RGB}{252, 187, 6}
%https://tex.stackexchange.com/questions/66465/how-to-get-actual-values-of-colour-theme-colours-in-beamer
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,right]{footlinecolor}%{author in head/foot}%
%\usebeamerfont{author in head/foot}
\insertshortauthor %\insertauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.7\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertinstitute %\inserttitle % \insertinstitute%\inserttitle
\end{beamercolorbox}%
}%
\vskip0pt%
}
\setbeamertemplate{headline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,right]{headlinecolor}%{author in head/foot}%
%\usebeamerfont{author in head/foot}
\insertsection
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.7\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertsubsection
\end{beamercolorbox}%
}%
\vskip0pt%
}
%FOR APPENDIX
\newcommand{\backupbegin}{
\newcounter{framenumberappendix}
\setcounter{framenumberappendix}{\value{framenumber}}
}
\newcommand{\backupend}{
\addtocounter{framenumberappendix}{-\value{framenumber}}
\addtocounter{framenumber}{\value{framenumberappendix}}
}
%
\makeatother
\begin{document}
\title[bla]{The Title}
%\author{Seyma Kalay}
\author[author]{ { \Large \bf author} \\ %& {Johanna Williams} \\
{\and} \\
{ bla \\ bla } \\
%{https://seymakalay.github.io/unibg/ \\ (Thesis Defense)} \\
\vspace{20pt}
%%%{Supervisors:} \\
\vspace{4pt}
%%%{Prof. Michela Cameletti} \\ {Prof. Federica Maria Origo}
}
\institute[bla]{bla}
%\setbeamerfont{institue}{size=\normalsize, series= \rmfamily, parent= structure}
%\institute[PhD Thesis Defence]{Doctor of Philosophy in Economics (Thesis Defense)\\
% \vspace{20pt}
% Supervisors: \\Prof. Michela Cameletti \\ Prof. Federica Maria Origo}
\date{\bf February 11, 2025}
%%\titlegraphic{\includegraphics[width=0.75\columnwidth]{./Figures/unibg2}}
{
\setbeamertemplate{footline}{}
\setbeamertemplate{headline}{}
\institute{}
%\setbeamertemplate{institute}{}
%\setbeamertemplate{title page}[noinstitute]
\setbeamercolor{title}{bg=mytitlecolor}
\makebeamertitle
}
%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%
%https://tex.stackexchange.com/questions/66628/latex-beamer-frame-outside-sections
\definecolor{applegreen}{rgb}{0.55, 0.71, 0.0}
\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0}
\definecolor{cadmiumorange}{rgb}{0.93, 0.53, 0.18}
\definecolor{calpolypomonagreen}{rgb}{0.12, 0.3, 0.17}
\definecolor{citrine}{rgb}{0.89, 0.82, 0.04}
\AtBeginSubsection[]{%
\frame<beamer>{
\frametitle{Outline}
\tableofcontents[currentsection,currentsubsection]
}
}
%\beamerdefaultoverlayspecification{<+->}
\begin{frame}{Outline}
\tableofcontents{}
\end{frame}
\section{Part 1}
\subsection{\textcolor{black}{sub section }}
\begin{frame}{frame title }
\begin{itemize} %\begin{enumerate}
\item \textcolor{red}{bla}
\begin{itemize}
\item bla
\item bla
\end{itemize}
\pause \item \textcolor{red}{bla}
\begin{itemize}
\item bla
\item bla
\end{itemize}
\end{itemize} %\end{enumerate}
\end{frame}
\begin{frame}{}
\centering \Large
\emph{Fin}
\end{frame}
\end{document}
A couple of options:
to keep the headline and just remove the text: add an empty section before the thank you frame
to keep the footline and just remove the headline: use \setbeamertemplate{headline}{}
to remove both the head- and footline: use a plain frame
\documentclass{beamer}
\usetheme{CambridgeUS}
\usecolortheme{crane}
\setbeamercolor{footlinecolor}{fg=red, bg=lightgray}
\setbeamercolor{headlinecolor}{fg=red,bg=lightgray}
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,right]{footlinecolor}%{author in head/foot}%
%\usebeamerfont{author in head/foot}
\insertshortauthor %\insertauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.7\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertinstitute %\inserttitle % \insertinstitute%\inserttitle
\end{beamercolorbox}%
}%
\vskip0pt%
}
\setbeamertemplate{headline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,right]{headlinecolor}%{author in head/foot}%
%\usebeamerfont{author in head/foot}
\insertsection
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.7\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertsubsection
\end{beamercolorbox}%
}%
\vskip0pt%
}
\begin{document}
\section{Part 1}
\subsection{\textcolor{black}{sub section }}
\section{}
\begin{frame}
\centering \Large
\emph{Fin}
\end{frame}
{
\setbeamertemplate{headline}{}
\begin{frame}
\centering \Large
\emph{Fin}
\end{frame}
}
\begin{frame}[plain]
\centering \Large
\emph{Fin}
\end{frame}
\end{document}
Or use a theme which has standout frames, like moloch. As bonus, you could ditch this terrible preamble in which most of the packages are unnecessary for beamer, some even harmful, which uses outdated macros and uses them at the wrong time which messes up the pdf meta data.
\documentclass{beamer}
\usetheme{moloch}
\begin{document}
\begin{frame}[standout]
Fin
\end{frame}
\end{document}