[Tex/LaTex] Arrow within a signal (timing diagram)


I want to draw a Manchester code and need arrows to better show the falling and rising flag within the signal, something like that:

In LaTeX, it is possible to use the package timing. Is it possible to draw an arrow within a timing diagram using the package timing? If not, how else is it possible?

Best Answer

There is a tikz-based package for drawing timing diagram called tikz-timing. With it logic levels can be given as letters like H for high and L for low. For your case I recommend the clock character C together with the clockarrows library. I aware that you signal isn't a clock, but other signals don't have arrows in this package. The C letter changes its logic level every time it is used. In lowercase its length its only half the width. You signal can be written simply as cCCccCccCCc, beside some start position issue I just discovered.




        c/dual arrows,c/arrow tip=latex,
        c/arrow pos=.7,
        metachar={v}{[timing/c/no arrows]c[timing/c/dual arrows]},
      &h 0c0h0l 0c CCcvCcvCCc \\
       \vertlines[help lines,brown]{}
       \foreach [count=\x] \b in {1,0,1,1,0,0,1,0} {
            \node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\x-.5,0) {\b};



Related Question