\documentclass{article} \usepackage{amsthm} \newtheorem{foo}{Foo} \begin{f}