  The Ehrhart quasipolynomial of a rational polytope $\mathsf{P}$ encodes
fundamental arithmetic data of $\mathsf{P}$, namely, the number of integer
lattice points in positive integral dilates of $\mathsf{P}$. Ehrhart
quasipolynomials were introduced in the 1960s, satisfy several fundamental
structural results and have applications in many areas of mathematics and
beyond. The enumerative theory of lattice points in rational (equivalently,
real) dilates of rational polytopes is much younger, starting with work by
Linke (2011), Baldoni-Berline-Koeppe-Vergne (2013), and Stapledon (2017). We
introduce a generating-function ansatz for rational Ehrhart quasipolynomials,
which unifies several known results in classical and rational Ehrhart theory.
In particular, we define $\gamma$-rational Gorenstein polytopes, which extend
the classical notion to the rational setting and encompass the generalized
reflexive polytopes studied by Fiset-Kasprzyk (2008) and Kasprzyk-Nill (2012).
