0

I am trying to imitate exactly what I show on the following picture... some help, please? I mean the red box and lines and arrows. Thank you in advance...enter image description here

Emilio
  • 5
  • 3
  • 2
    Take a look here: https://tex.stackexchange.com/questions/402429/how-to-connect-two-parts-using-arrows-or-lines-in-latex – chadoulis Jan 03 '18 at 08:45
  • It would be great if you could show us what you have tried. Posting a minimal working example that indicates what you are trying to do makes it easier for people to understand what you want. It also makes it easier for people to help you, since they have some code to start from, and hence much more likely that some one will try to help you. –  Jan 03 '18 at 10:57

1 Answers1

1

Here is a tikz solution.

enter image description here

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

La ecuaci\'on anterior se puede reducir as\'i:
\[
2x+5x^2-1-3-4x^2-5x=0\to
\begin{tikzpicture}[baseline]
\node[anchor=base,draw=red](equation){$x^2-3x-4=0$};
\node[below left = .4cm and 1.2cm](text){\llap{\raise.7ex\hbox{\textsc{forma general de la ecuaci\'on}}}};
\draw[->, red](text)-|(equation);
\end{tikzpicture}
\]

\end{document}
Sandy G
  • 42,558
  • Thank you very much. Great solution, it works perfect!!! – Emilio Jan 03 '18 at 17:13
  • Excuse me, it works perfect except for the "[->,red]" in the \draw command... Any suggestions? For the moment, I have removed the [->,red], but then the line dosn't finish with an arrow – Emilio Jan 03 '18 at 18:08
  • The code compiles fine for me and produces the output posted above. What goes wrong when you include [->,red]? – Sandy G Jan 03 '18 at 18:21
  • I've got a message saying: "Argument of \language@active\arg> has an extra }. \par 1.555 \draw->,red -|(equation); If just remove the [->,red], everything works properly. Thank you, Sandy – Emilio Jan 04 '18 at 07:30
  • You must be using the babel package. There is a problem with the Spanish module in babel and the < and > symbols. There is a solution posted here. Let me know if you still need assistance. – Sandy G Jan 04 '18 at 17:02
  • Thank you so much again, Sandy. That was the problem, now everything works ok!! Thank you!!!! – Emilio Jan 04 '18 at 19:29