This document contains the definition of two commands to include Yellow notes in the margin of a page.


yellow-notes

Edit and compile if you like:

%
%
% Author:
% Efraín Soto Apolinar.
% http://www.aprendematematicas.org/
%
% This document contains the definition of
% two commands to include Yellow notes in
% the margin of a page.
%
\documentclass[12pt]{article}
\usepackage{color}
\usepackage{tikz}
\usepackage{calc}
\setlength{\parskip}{0ex}
\setlength{\parindent}{0ex}
\newlength{\yellownotewidth}
\setlength{\yellownotewidth}{2.5cm}
\newlength{\yellownoteheight}
\setlength{\yellownoteheight}{2.5cm}
% - - - - - - - - - - - -
% Yellow note...
% - - - - - - - - - - - -
\newcommand{\yellownote}[1]{
\marginpar{
\vspace{-0.5\yellownoteheight}
\begin{center}
\begin{tikzpicture}
\draw[white,fill=gray!25,opacity=0.75,shift={(-0.125,-0.125)}]
(0,0) rectangle (\yellownotewidth,\yellownoteheight);
\draw[fill=yellow!35] (0,0) rectangle (\yellownotewidth,\yellownoteheight);
\draw[opacity=0.45,fill=gray!50] (0.7\yellownotewidth,0) --
(0.9\yellownotewidth,0.45) -- (\yellownotewidth,0.4) -- cycle;
\node[blue,below] at (0.5\yellownotewidth,\yellownoteheight) {
\begin{minipage}{\yellownotewidth-1em}
\scriptsize\sf#1
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Click to download: yellow-notes.texyellow-notes.pdf
Open in Overleaf: yellow-notes.tex