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
add comment

2 Answers

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
add comment

I just put all the captions in 1.4inch wide boxes, left aligned.

\documentclass{article}

\usepackage{tikz-timing}

\newcommand{\degr}{degr}
\newcommand\boxit[1]{\makebox[1.4in][l]{#1}}

\begin{document}

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

\end{document}

enter image description here

share|improve this answer
add comment

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.