5

I'm trying to generate timing diagrams of different sizes in a document with tikz-timing.

I have managed to scale the whole diagram using options like timing/unit or timing/wscale. I can also change the font size of the row names using timing/font=\large.

However, no matter what I do, the data text is always the same size and does not scale with the diagram.

Edit: I tried to use the resizebox command that was brought up in the comments, but now the signal names are huge.

Example:

\documentclass[12pt,a4paper]{scrbook}

\usepackage{tikz}
\usepackage{tikz-timing}

\begin{document}
    \begin{tikztimingtable}[]
        Clock & 10{c} \\
        Signal &  z4D{Text}z \\
    \end{tikztimingtable}
\\
\\

    \resizebox{0.5\textwidth}{!}{
        \begin{tikztimingtable}[]
            Clock & 10{c} \\
            Signal &  z4D{Text}z \\
        \end{tikztimingtable}
    }
\end{document}

Which looks like this:

enter image description here

What I would like it to look like is this (MS Paint):

enter image description here

Any help is appreciated,

Felix

Felix S
  • 153

1 Answers1

5
  1. You can use the scale option along with the data text to scale it.

  2. xunit and yunit can be used to scale the graph also.

These two settings combined can give you the desired result.

\documentclass[12pt,a4paper]{scrbook}

\usepackage{tikz}
\usepackage{tikz-timing}

\begin{document}
    \begin{tikztimingtable}[timing/xunit=30,timing/yunit=30]
        Clock & 10{c} \\
        Signal &  z4D{[scale=1]Text}z \\
    \end{tikztimingtable}

    \begin{tikztimingtable}[timing/xunit=30,timing/yunit=30]
         Clock & 10{c} \\
         Signal &  z4D{[scale=2] Text}z \\
    \end{tikztimingtable}
\end{document}

enter image description here

nidhin
  • 7,932