\documentclass[landscape]{slides} \usepackage{graphicx} \usepackage[usenames]{color} \definecolor{titlecolor} {rgb}{0.5,0,0.2}% \definecolor{royalblue} {rgb}{0,0,0.5}% \definecolor{lineblue} {rgb}{0.6,0.5,1.0}% \def\heading#1{\parbox{\textwidth}{\centerline{\Large \textcolor {titlecolor}{#1 }}\textcolor {lineblue}{\rule{\textwidth}{2mm}}}\vfill} \begin{document} \begin{slide} \heading{1st slide} This is the first slide \vfill\end{slide} \begin{slide} \heading{2nd slide} This is the 2nd one \vfill\end{slide} \end{document}