1
\documentclass{article}

\usepackage{tikz-timing}

\newcommand{\degr}{degr}

\begin{document}

\begin{tikztimingtable}
  Clock 128\,MHz 0\degr    & H   12{2C} G \\ % ends with edge
  \color{red}\tiny Clock 128\,MHz 90\degr   & [C] 12{2C} C \\ % starts with edge
  Clock 128\,MHz 180\degr  & C   12{2C} G \\ % ends with edge
  Clock 128\,MHz 270\degr  &     12{2C} C \\
\end{tikztimingtable}

\end{document}

I'd like all labels 'Clock...' to be left aligned.

1 Answer 1

2

The nodes used for those captions use the style /tikz/timing/name.

You can append to this style options like

Of course, if you don’t want to guess the width of the widest box you can either set text width=\widthof{<longest text>} or use the idea behind Dependent node size in TikZ for the a most automatic solution.

Code

\documentclass[tikz,convert=false]{standalone}
\usepackage{tikz-timing}
\newcommand{\degr}{degr}
\begin{document}
\begin{tikztimingtable}[timing/name/.append style={align=left, text width=1.4in}]
  Clock 128\,MHz 0\degr    & H   12{2C} G \\ % ends with edge
  \color{red}\tiny Clock 128\,MHz 90\degr   & [C] 12{2C} C \\ % starts with edge
  Clock 128\,MHz 180\degr  & C   12{2C} G \\ % ends with edge
  Clock 128\,MHz 270\degr  &     12{2C} C \\
\end{tikztimingtable}
\end{document}

Output

enter image description here

1
  • With my node-families library, it is also possible to say timing/name/.append style={Text Width=timing, align=left} after all rows has been added to tikztimingtable environment. (The implementation of Text Width is not perfect.) Commented Oct 26, 2013 at 4:54

You must log in to answer this question.

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