Math & Science ⇒ Add connecting Arrows over Parts of an Equation
-
- Posts: 2
- Joined: Tue Jul 31, 2012 11:15 am
Add connecting Arrows over Parts of an Equation
Here's an example I created with a graphics editor (Inkscape) showing about what I am looking for: Thanks for any help!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Add connecting Arrows over Parts of an Equation
welcome to the board!
With

Code: Select all
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}% For nice arrow tips
% One style for all TikZ pictures for working with overlays:
\tikzset{every picture/.style=remember picture}
% Define a TikZ node for math content:
\newcommand{\mathnode}[1]{%
\mathord{\tikz[baseline=(#1.base), inner sep = 0pt]{\node (#1) {$#1$};}}}
\begin{document}
\[
\mathnode{A} \otimes B \otimes \mathnode{C} \otimes \mathnode{D}
= C \otimes B \otimes A \otimes \mathnode{D}
\]
% Now we draw connections between defined nodes:
\begin{tikzpicture}[overlay]
\path [>=stealth, <->, shorten <= 3pt, shorten >=3 pt]
(A) edge [bend left=60] (C);
\end{tikzpicture}
\end{document}
-
- Posts: 2
- Joined: Tue Jul 31, 2012 11:15 am