Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\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.

share|improve this question

1 Answer 1

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

share|improve this answer
    
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 4:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.