I would like to draw the picture attached using TikZ. Red lines are not needed. I only need to draw the squared root of s. I use the code below, however, don't know how to insert the "s" in it. In addition, how can I change the linewidth of the first line ? it should be wider than the other lines.

\draw (0,4) -- (1,1) -- (2,6) -- (6,6);



  • I would recommend you check out the options on page 7 and 16 of the "Minimal Introduction to TikZ" available from CTAN
    – darthbith
    Commented Aug 4, 2014 at 15:48
  • Is there a special reason, to "draw" this root? Why do you not use: \node[scale=5.3] {$\sqrt{s}$};
    – cis
    Commented Aug 4, 2014 at 15:59
  • yes I need this or something similar to this one.
    – rask
    Commented Aug 4, 2014 at 17:59
  • I check the document, Minimal int. to TikZ, but still having problems to do it:(
    – rask
    Commented Aug 4, 2014 at 18:00
  • Aha, the way setting text on drawed things is using "nodes". For example: \draw (0,4) -- (1,1) node[green, right, xshift=2mm]{some text} -- (2,6) -- (6,6);
    – cis
    Commented Aug 4, 2014 at 18:35

2 Answers 2


A simple approach:


  (0,0) grid (5,6);
\draw[line width=8pt]
  (0,4) -- (1,0);
  (1.08,0.1) -- (1.5,6) -- (5,6);
\node[scale=22,font=\sffamily] at (3,2)

enter image description here


I think you are after upright square root symbol and trying to make it with tikz. If so, the following may be useful.

  \node[inner sep=2pt] (a) {\hspace*{0.5ex}$#1$};
  \draw[line cap=round] ([yshift=0.5ex]a.west) -- +(-1pt,-0.7pt);
  \draw[thick] ([yshift=0.5ex]a.west) -- ([xshift=0.7ex]a.south west);
  \draw[line cap=round] ([xshift=0.7ex]a.south west) -- ([xshift=0.7ex]a.north west) -- (a.north east);

This is up right square root $\upsqrt{S}$ and this too $\upsqrt{x}$ and this is normal $\sqrt{x}$ $\sqrt{S}$

enter image description here

You must log in to answer this question.

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