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.

ShreevatsaR
  • 45,428
  • 10
  • 117
  • 149
Frank
  • 11
  • 1

1 Answers1

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

Moriambar
  • 11,466
Qrrbrbirlbel
  • 119,821
  • 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.) – Qrrbrbirlbel Oct 26 '13 at 04:54