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

3
  • 1
    Welcome to Tex.SE. Please provide a MWE, including the \documentclass , \begin{document} and \end{document}.
    – nidhin
    Nov 19, 2018 at 11:01
  • See this post also: tex.stackexchange.com/q/4338/28557
    – nidhin
    Nov 19, 2018 at 11:02
  • Thank you for the hints. I added an MWE and rephrased my question. The resizebox unfortunately does not do what I want.
    – Felix S
    Nov 19, 2018 at 11:28

1 Answer 1

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

You must log in to answer this question.

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