Slight change in what I am drawing using tikz and node

by mark leeds   Last Updated June 30, 2020 02:23 AM - source

Hi All: I am using tikz (I'm a total newbie ) and was drawing this and it worked.

% labels

\foreach \y/\m/\mm in {2.5/00/05}
    \draw (-2, \y) node{11:\m\,-\,11:\mm};

But now I just want to change it slightly so that it's a subscript in math mode.


\foreach \y/\m/\mm in {2.5/00/05}
    \draw (-2, \y) node{DERZZZ$_{(11:\m\,-\,11:\mm)$};        

That gives the following:


Runaway argument? \draw (-2, \y ) node{DERZZZ$_{(11:\m ,-,11:\mm )$}; ! Paragraph ended before \[email protected] was complete. \par l.35


Maybe I'm not supposed to use node when doing this ? In fact, it's never clear to me when to use node and when to just use latex ? Thanks a lot.

Tags : tikz-pgf

Related Questions

Drawing similar picture with tikz

Updated November 20, 2018 12:23 PM

Complicated curves interwined in the link figures

Updated December 17, 2018 22:23 PM

Complicated curves intertwined in the link figures (II)

Updated December 18, 2018 02:23 AM