\documentclass[aspectratio=169]{beamer}
% \documentclass[aspectratio=43]{beamer}
% ---------------------------
% Set the aspectration variable before!
% ---------------------------
\newcommand{\myaspectratio}{169} % <-- set to 43 or 169
% ---------------------------
% Custom colors
% ---------------------------
\definecolor{mainblue}{RGB}{100,149,237}
\definecolor{ghostwhite}{RGB}{242,244,245}
% ---------------------------
% Font (XeLaTeX or LuaLaTeX required)
% ---------------------------
\usepackage{fontspec}
% Configure your custom font
\setsansfont{AlanSans.ttf}[
Path=./AlanSansFont/, % Path to the folder containing your font files
Extension=.ttf, % Specify the font file extension
UprightFont=*-UpRight.ttf, % Link the regular font file
BoldFont=*-Regular.ttf % Link the bold font file
% ItalicFont=*-Italic.ttf
]
% ---------------------------
% Emoji
% ---------------------------
% \usepackage{emoji} % LuaLatex
\usepackage{twemojis} % XeLatex
% ---------------------------
% Social icons
% ---------------------------
\usepackage{fontawesome5}
% ---------------------------
% Minimal Beamer theme
% ---------------------------
\usetheme{default}
\setbeamercolor{normal text}{fg=black,bg=ghostwhite}
\setbeamercolor{structure}{fg=mainblue}
\setbeamercolor{frametitle}{fg=white,bg=}
% Move frametitle slightly down
\setbeamertemplate{frametitle}{%
\vspace{0.5cm} % <-- adjust this value
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,sep=0.3cm,left]{frametitle}%
\usebeamerfont{frametitle}\insertframetitle
\end{beamercolorbox}%
}
% Remove navigation symbols
\setbeamertemplate{navigation symbols}{}
% ---------------------------
% Packages
% ---------------------------
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{multicol}
% ---------------------------
% Aspect ratio selector
% ---------------------------
\newcommand{\choosebackground}{%
\ifnum\myaspectratio=43
\def\mybackground{background_43.png}%
\else
\ifnum\myaspectratio=169
\def\mybackground{background_169.png}%
\else
\def\mybackground{background.png}% fallback
\fi
\fi
}
\choosebackground
\setbeamertemplate{background canvas}{%
\includegraphics[width=\paperwidth]{\mybackground}%
}
% ---------------------------
% Title slide (no background, no numbering)
% ---------------------------
% usa se non hai ancora il pacchetto per i loghi social
% \usepackage{fontawesome5}
\newcommand{\plainTitlePage}[2]{% #1 = immagine grande, #2 = lista social
{%
% background ghostwhite
\setbeamertemplate{background canvas}[vertical shading][bottom=ghostwhite,top=ghostwhite]
\begin{frame}[plain] % plain = no footer
\vfill
\begin{columns}[T,totalwidth=\textwidth]
% Text column
\column{0.6\textwidth}
\raggedleft
{\color{mainblue}\Huge \inserttitle\par}
\bigskip
{\Large \insertauthor\par}
\medskip
{\large \insertdate\par}
\bigskip\bigskip
% Social links area
\raggedleft
{\small #2}
% Space between columns
\hspace{1cm}
% Image column
\column{0.35\textwidth}
\centering
\includegraphics[width=\linewidth]{#1}
\end{columns}
\vfill
\end{frame}
% restore background afterwards
\setbeamertemplate{background canvas}{%
\includegraphics[width=\paperwidth]{\mybackground}%
}
}%
}
% ---------------------------
% Frame numbering in bottom-right corner
% ---------------------------
\setbeamertemplate{footline}{%
\leavevmode%
\hfill%
\usebeamerfont{footline}\usebeamercolor[fg]{footline}%
{\tiny \insertframenumber{} / \inserttotalframenumber}%
\hspace{0.5cm}\vspace{0.2cm}%
}
\setbeamerfont{footline}{size=\small}
% ---------------------------
% Document info
% ---------------------------
\title{Presentation Title}
\author{Your Name}
\date{\today}
\begin{document}
% Cheatsheet: https://www.ipgp.fr/~moguilny/LaTeX/fontawesome5Icons.pdf
\plainTitlePage{example-image-a}{%
% \faTwitter\ \href{https://twitter.com/myuser}{@myuser}\\
\faGithub\ \href{https://github.com/bcorrad}{github.com/bcorrad}\\
\faLinkedin\ \href{https://linkedin.com/in/bcorrad}{/in/bcorrad}%
}
% Example slides
\begin{frame}{Sample Slide}
\begin{itemize}
\item First point
\item Second point in \textcolor{mainblue}{Cornflower Blue}
\item Third point
\end{itemize}
\end{frame}
\begin{frame}{Two Columns}
\begin{columns}[T]
\begin{column}{0.48\textwidth}
\begin{itemize}
\item Left column text
\item More text
\end{itemize}
\end{column}
\begin{column}{0.48\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Three Columns}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image-b}
\centering\small Caption 1
\end{column}
\begin{column}{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image-c}
\centering\small Caption 2
\end{column}
\begin{column}{0.3\textwidth}
\begin{itemize}
\item Short list
\item Second item
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Mathematics}
Equation example:
\[
E = mc^2
\]
More complex:
\[
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
\]
\end{frame}
\begin{frame}{Three Text Columns}
\begin{multicols}{3}
\begin{itemize}
\item Item A
\item Item B
\item Item C
\item Item D
\item Item E
\end{itemize}
\end{multicols}
\end{frame}
\end{document}