The classical Erd\H{o}s--Szekeres k-gon theorem says that for any integer k there is an integer n(k) such that any set of n(k) points in the plane, no three on a line, contains k points which are vertices of a convex k-gon. We will discuss several recent results related to the Erd\H{o}s--Szekeres theorem (e.g. modular, fractional and partitioned versions of it).