\topmargin=-1.5cm \setlength{\headheight}{40.53337pt}
\parindent 0pt 
\draw[help lines] (0,0) grid (2,2);
\pgftext[base] {$a_{\rho}=\frac{v^2}{\rho}$};
\draw (0,0) -- (2,0);
\draw (2,2) -- (2,0);
\draw (1,-.25) -- (2.25,1);
\draw (1,-.5) -- (2.5,1);
\draw (1,-.5) -- (2.5,1);


This is my best try.

  • Maybe try using the tikz package?
    – Vebjorn
    Oct 7, 2022 at 19:03
  • I thought to use tikz, but I am new in this world and I just do basic things. I try to use it, but I always fail. Oct 7, 2022 at 19:14
  • 3
    Please show us your best attempt, so that we have something to start from and can get an idea of how much you understand.
    – Teepeemm
    Oct 7, 2022 at 19:25
  • \documentclass[11pt,spanish]{article} \usepackage[spanish]{babel} \usepackage{graphicx} \usepackage{amsmath,amssymb} \oddsidemargin=-0.5cm \textwidth=17.4cm \textheight=48\baselineskip \topmargin=-1.5cm \setlength{\headheight}{40.53337pt} \parindent 0pt \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[help lines] (0,0) grid (2,2); \pgftext[base] {$a_{\rho}=\frac{v^2}{\rho}$}; \color{orange} \draw (0,0) -- (2,0); \draw (2,2) -- (2,0); \draw (1,-.25) -- (2.25,1); \draw (1,-.5) -- (2.5,1); \draw (1,-.5) -- (2.5,1); \end{tikzpicture} \end{document} Oct 7, 2022 at 20:12
  • Follow up for an align environment: tex.stackexchange.com/q/660895/107497
    – Teepeemm
    Oct 7, 2022 at 23:19

1 Answer 1


Depending on how you plan to use this, you could use the following:

enter image description here

But this will not work, for example, inside an align environment (assuming you want the = to be your alignment character).

Here is the code that produced the above image:


\usepackage{tikz, amsmath}

\newcommand{\highlight}[2][orange!70]{\tikz[baseline, anchor=base]{\node[inner sep=2mm](A){$#2$};
    \draw[very thick, #1] (A.north east)--(A.south east)--(A.south west);
    \draw[thick, #1] ([shift={(.1,.5)}]A.south east)--([shift={(-.5,-.1)}]A.south east);
    \draw[#1] ([shift={(.1,.3)}]A.south east)--([shift={(-.3,-.1)}]A.south east);




There is an optional argument so you can easily change the highlight color:


enter image description here

Here is a version you could use in an align environment. It uses tikzmark and requires naming a tikzmarknode at the beginning and another at the end. After the align environment, call the \highlight macro with the nodes you named.

You must compile twice.

enter image description here


\usepackage{tikz, amsmath}

\newcommand{\highlight}[3][orange!70]{\tikz[remember picture, overlay]{
    \draw[very thick, shorten >=-3mm, #1] ([shift={(.2,.1)}]#3.north east)--([shift={(.2,-.2)}]#3.south east)--([shift={(.2,-.2)}]#3.south east-|#2.west);
    \draw[thick, #1] ([shift={(.3,.3)}]#3.south east)--([shift={(-.3,-.3)}]#3.south east);
    \draw[#1] ([shift={(.3,.1)}]#3.south east)--([shift={(-.1,-.3)}]#3.south east);



  • Thank you my friend, do you know if it is complicated to put this inside an align environment. Can I do it with tikz as well? Oct 7, 2022 at 20:26
  • @CalebFranco: I added this to my answer.
    – Sandy G
    Oct 7, 2022 at 21:22
  • Thank you my friend, I am really glad!!! Oct 7, 2022 at 22:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .