Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

My intention is to create equation which looks similar to one of examples below (I prefer the second one).

enter image description here

There should be an arrow from JKL to DEF and GHI and from GHI to DEF.

Neither alignment nor equation environment have to be used. Anything that will do is appreciated. Cheers.

share|improve this question
Please post a Minimal Working Example showing your efforts so far or at least the basics of the document you want to create. It is not really reasonable to rely on others to start from scratch and your chances of success are reduced when you depend wholly upon the fickle tastes of the local team of procrastinators. Meanwhile, see tex.stackexchange.com/questions/124127/…. –  cfr Apr 11 at 3:06

2 Answers 2

up vote 6 down vote accepted


Based on code blatantly stolen from JLDiaz's answer:

\usepackage{amsmath, amssymb}
\usetikzlibrary{arrows,matrix,positioning}% For nice arrow tips

    mymatrix/.style = {
        matrix of math nodes,
        nodes={minimum width=6ex},

    \matrix[mymatrix, name=M1]{
                \mathrm{ABC}    &   =   &   \mathrm{DEF}    &   +   &   \mathrm{GHI}    &   +   &   \mathrm{JKL} \\
   \draw [red, >=stealth, ->, shorten <= 3pt, shorten >=3 pt]
     (M1-1-7.south) to[bend left=45] (M1-1-5.south);
   \draw [red, >=stealth, ->, shorten <= 3pt, shorten >=3 pt]
     (M1-1-5.south) to[bend left=45] (M1-1-3.south);
   \draw [red, >=stealth, ->, shorten <= 3pt, shorten >=3 pt]
     (M1-1-7.south) to[bend left=60] (M1-1-3.south);

share|improve this answer

Another attempt where tikzmark is defined so that each term is a node and simply connect the node with \draw (A) to[bend left=angle] (B);

enter image description here

\tikz[remember picture,baseline=(#1.base)]  
\node[inner sep=0,outer sep=3pt] (#1) {#1};



\tikz[remember picture,baseline=(#1.base)]  
\node[inner sep=0,outer sep=3pt] (#1) {#1};%


\tikzmark{ABC} = \tikzmark{DEF} + \tikzmark{GHI} + \tikzmark{JKL}

\begin{tikzpicture}[remember picture,overlay,>=stealth]
\draw[->,red] (GHI) to[bend left =60]  (DEF);
\draw[->,red] (JKL) to[bend left =60]  (GHI);
\draw[->,red] (JKL) to[bend left =60]  (DEF);

\draw[->,blue] (GHI.north) -- ++(0,12pt)  -| (DEF.north);
\draw[->,blue] (JKL.north) -- ++(0,12pt)  -| (GHI.north);
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.