TransWikia.com

Cannot use endextracode in tikz-timing

TeX - LaTeX Asked by Symbol 1 on December 17, 2020

The manual claims that extracode could be ended by endextracode so one may add more rows after some TeX-thing happens.

But this code does not compile. Seems like the function of & was not switched back.

documentclass{article}
    usepackage{tikz-timing}
begin{document}
    begin{tikztimingtable}
        A & 10M \
    extracodeendextracode
        B & 20M \
    end{tikztimingtable}
end{document}

The log file is even more interesting:

 Missing character: There is no B in font nullfont!
 
 ./Untitled-6.tex:7: Misplaced alignment tab character &.
 l.7        B &
           20M \
 ?

Actually I did not find any single piece of working example. I guess this is the expected syntax?

By the way, I am using MacTeX and I just updated my packages.

One Answer

This seems to be indeed a bug in tikz-timing. Please always open a bug report for these at the package project site. I, as the package author, keep missing some of such posts otherwise.

You can fix this in the meantime by enabling the continuation of the tikz-timing row:

documentclass{article}
usepackage{tikz-timing}

makeatletter
@ifpackagelater{tikz-timing}{2020/10/01}{}{%
deftikztiming@endextracode{tikztimingtable@row}%
}
makeatother

begin{document}
    begin{tikztimingtable}
        A & 10M \
extracode
    relax
endextracode
        B & 20M \
    end{tikztimingtable}
end{document}

Correct answer by Martin Scharrer on December 17, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP