\documentclass{article} \usepackage{agda} \setlength{\AgdaEmptySkip}{\abovedisplayskip} \begin{document} \thispagestyle{empty} Text. \begin{code} postulate A : Set B : Set \end{code} More text. \end{document}