\documentclass[ignorenonframetext,compress]{beamer} 
\input{main.tex}
