Subscrevam o canal do youtube em: https://www.youtube.com/c/anteroneves
Neste vídeo mostro como se consegue fazer uma ilustração da propriedade distributiva ou outra similar usando expressões matemáticas e TikZ
Link para o vídeo: https://youtu.be/JgrmMY3hnKM
\documentclass{article} %-------------------------------------------------------------------------------------------------------- % PACKAGES USADOS %-------------------------------------------------------------------------------------------------------- \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{tikz} %-------------------------------------------------------------------------------------------------------- % OUTRAS CONFIGURAÇÕES %-------------------------------------------------------------------------------------------------------- \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1){};} \tikzset{seta baixo/.style={->,>=stealth,bend right=60}} \tikzset{seta cima/.style={->,>=stealth,bend left=60,shorten <=5pt, shorten >=3pt}} \newcommand{\ligacima}[3]{\draw[seta cima,#3] (#1.north west) to (#2.north);} %-------------------------------------------------------------------------------------------------------- % INÍCIO DO DOCUMENTO %-------------------------------------------------------------------------------------------------------- \begin{document} \[(a\tikzmark{a}+b\tikzmark{b})(c\tikzmark{c}+d\tikzmark{d})\] \begin{tikzpicture}[overlay,remember picture] \draw[seta baixo] (a.south) to (c.south west); \draw[seta baixo] (a.south) to (d.south west); \ligacima{b}{c}{distance=.3cm,red} \ligacima{b}{d}{distance=.4cm,red} \end{tikzpicture} \end{document}
Dezembro 13, 2016 at 11:40 pm
Muito bom o passo a passo, incluindo o código deixado no post. Certamente ajuda no processo de aprendizagem.