Sticker, callout box in LaTeX

📅 December 14, 2024   |   👁️ Views: 119




Votre navigateur ne supporte pas les PDFs. Voir le Lien de Téléchargement au dessous .

    

\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{tcolorbox}
\usepackage{fontawesome5}
\usepackage{pifont}
\usetikzlibrary{shadows}
\tcbuselibrary{skins,raster,breakable}
\usetikzlibrary{decorations.pathmorphing}

\begin{document}

\begin{tikzpicture}
% Rectangle with wavy border and text node
\node[
    shape=rectangle, % Rectangle shape
    decorate,
    decoration={random steps, segment length=2mm, amplitude=2mm}, % Wavy effect
    fill=cyan!20, % Background color
    draw=red, % Border color
    line width=1pt, % Border thickness
    inner sep=8pt, % Padding between text and border
    text width=6.5cm, % Width of the text box
    align=center, % Center the text
    rotate=-10,
] (sticker) at (0, 0) { % Position of the sticker
    \textbf{The answer to life the universe and everything }\\[0.3em]
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.
};

% Label
\node[red, font=\fontsize{28}{30}\selectfont] at ([xshift=0.5cm]sticker.north west) {
   \includegraphics[width=1cm]{pin.png}
};


\end{tikzpicture}

\end{document}




Related Courses, Exams, and Exercises


Course PDF:

📥 Download Sticker, callout box in LaTeX (PDF)