TransWikia.com

Something like "common factor in evidence" , in portuguese

TeX - LaTeX Asked by evomoreira on April 6, 2021

Im trying to display something like this in my article:
enter image description here

But, even i tried a lot, i couldn’t achieve anything like that. Could any of you help me?

One Answer

enter image description here

Heres one way to do it using the tikzmark library and then adjusting node positions with the calc library:

documentclass{article}
usepackage{tikz}
usetikzlibrary{tikzmark}
usetikzlibrary{calc}
begin{document}
    [
        (tikzmark{a}ax + tikzmark{b}ay) = tikzmark{c}a(x + y)
        tikz[remember picture, overlay, baseline=0pt] {
            draw[red, thick] ($(pic cs:a) + (0.1, 0.2)$) to[out=90, in=90] ($(pic cs:c) + (0.1, 0.2)$);
            draw[red, thick] ($(pic cs:b) + (0.1, 0.2)$) to[out=90, in=90] ($(pic cs:c) + (0.1, 0.2)$);
        }
    ]
end{document}

Answered by Willoughby on April 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP