Math & ScienceCircle and arrow on a single term

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Gh3rra
Posts: 1
Joined: Tue Oct 05, 2021 1:28 pm

Circle and arrow on a single term

Post by Gh3rra »

I want to create an equation with this circle and arrow on a single term by a single command. I want to obtain an equation similar to this:
Image
I wrote this until now:

Code: Select all

    
    \documentclass{article}
    \usepackage{amsmath}
    \usepackage{tikz}
    \makeatletter
    \newcommand\mathcircled[1]{%
       \mathpalette\@mathcircled{#1}%
    }
    \newcommand\@mathcircled[2]{%
       \tikz[baseline=(math.base)] \node[draw,circle,inner sep=1pt] (math) {$\m@th#1#2$};%
    }
    \makeatother
    \begin{document}
       \[\lim_{x\to\infty} \frac{\sin x}{x}= \mathcircled{\frac{\sin x}{x}}=1\]
    \end{document}
Image

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Circle and arrow on a single term

Post by Bartman »

The section 17.10.3 "The Pin Option" may help you.
Post Reply