In ConTeXt kann man das dank Unterstützung für Grundlinienraster realisieren.
\setuppapersize[S4][S4]
\setuplayout
[cutspace=3mm,
width=middle,
backspace=3mm,
%
topspace=5mm,
header=0mm,
height=middle,
footerdistance=1mm,
bottomspace=1mm,
%
grid=yes]
\definehead
[slide][subject]
[color=darkblue,
page=yes]
\definelayer[basegrid]
\setlayer
[basegrid][voffset=-\strutdepth]
{\darkred\basegrid
{\basegrid
[nx=\ctxlua{context(math.floor(tex.dimen.makeupwidth / tex.dimen.lineheight))},
ny=\noflines,
ny=\the\noflines,
unit=, % Hack to use \lineheight in dx and dy
dx=\lineheight,
dy=\lineheight]}
dy=\lineheight,
rulecolor=gray,
rulethickness=.1pt]}
\setupbackgrounds
[text][text]
[background=basegrid,state=repeat]
\starttext
\startslide[title={$f:D\rightarrow\mathbb R,~x\mapsto\frac{1}{x}$}]
\startitemize
\item Definitionsbereich
\stopitemize
\stopslide
\stoptext
[![alt text][1]][1]
[1]: https://texwelt.de/wissen/upfiles/test_409.pnghttps://texwelt.de/wissen/upfiles/test_416.png