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

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

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