1

MWE

\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{pgflibraryshapes}
\begin{document}

\tikz[baseline=(x.base)]
\node(a) [red,draw,ellipse,thick,fill=white,inner sep=2pt](x){\color{black}{delete}};
\tikz \draw[baseline=(a.east),red,thick] (0,0)-- (.2,.2)--(.5,.2);

\end{document}

but what I try to do

enter image description here.

Can you help me fix it?

2

Don't use two separate tikzpictures (\tikz is a shortform for \begin{tikzpicture} .. \end{tikzpicture}), place both \node and \draw in the same, and then draw the line starting at x.east, using relative coordinates (indicated by ++).

output of code

\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\begin{document}
\tikz[baseline=(x.base)]
{
\node [draw=red,text=black,ellipse,thick,fill=white,inner sep=2pt] (x) {delete};
% ++ means that the coordinate is relative to the previous one
\draw[red,thick] (x.east) -- ++(.2,.2) -- ++(.3,0);
}

\end{document}
  • Perfect working. – Özgür Nov 24 '17 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.