Love letter - again

📅 March 30, 2024   |   👁️ Views: 106




\documentclass[17pt,a4paper]{extarticle}
\usepackage{lipsum} % for dummy text
\usepackage{tikz} %  for TikZ drawings
\usepackage{eso-pic} %  for \AddToShipoutPictureBG
\usepackage{fontspec} %  for setting fonts
\usepackage{shapepar} % for shaped paragraphs

\definecolor{crimson}{RGB}{220,20,60}
\colorlet{blueA}{blue!20!cyan!40!white}
\colorlet{blueB}{blue!30!cyan!20!white}
\setmainfont{DejaVu Sans Mono}

% Define background TikZ picture
\newcommand{\BackgroundTikz}{%
  \begin{tikzpicture}[remember picture,overlay]
    \fill[blueA] (current page.south west) rectangle
        (current page.north east);
    \foreach \i in {1,...,500} {
      \pgfmathsetmacro{\x}{rnd*45}
      \pgfmathsetmacro{\y}{rnd*25}
      \node[white, text width=1.5cm] at (\x,\y) {♥};
    }
    \foreach \i in {1,...,500} {
      \pgfmathsetmacro{\x}{rnd*25}
      \pgfmathsetmacro{\y}{rnd*30}
      \node[blueB, text width=1.5cm] at (\x,\y) {♥};
    }
  \end{tikzpicture}
}


\AddToShipoutPictureBG*{\BackgroundTikz}
\begin{document}
\thispagestyle{empty}

% Your letter content
\begin{center}
  \Huge\color{crimson}{Hello dear world}
\end{center}

\textcolor{red}{%
  \textcolor{crimson}{\heartpar{\lipsum[1]}}
}

\end{document}


Related Courses, Exams, and Exercises


Course PDF:

📥 Download Love letter - again (PDF)

if you find this content helpful, Please consider supporting me with a small donation
إن وجدت هذا المحتوى مفيدا، من فضلك إدعمني بمبلغ بسيط كتبرع

Buy me a coffee — إشتر لي قهوة

PayPal.me • عبر بايبال

Or bank transfer • أو حوالة بنكية

Titulaire : RADOUAN MOSAID
RIB : 230 090 6501953211022000 65
IBAN : MA64 2300 9065 0195 3211 0220 0065
BIC / SWIFT : CIHMMAMC