\documentclass{article} \usepackage[papersize={2cm,2cm},margin=1pt]{geometry} \usepackage{color} \definecolor{yellow}{rgb}{1,1,0.9} \def\cislo#1{ \begin{flushright} \fcolorbox{red}{yellow}{ \begin{minipage}{0.3\linewidth} \LARGE #1 \end{minipage}} \end{flushright} \newpage } \begin{document} \begin{flushright} \fcolorbox{red}{yellow}{{\begin{minipage}{0.8\linewidth} Einstein:\\[4pt] $E=mc^2$ \end{minipage}}} \end{flushright} \newpage \cislo{1} \cislo{2} \cislo{3} \cislo{4} \cislo{5} \cislo{6} \end{document}