tikz-timing:如何更改所有信号名称的大小

tikz-timing:如何更改所有信号名称的大小

我想要信号名称成为更小

问题

  1. 我怎样才能使其中一个变小?
  2. 如何预先配置文档中生成的所有图形的所有信号,以使信号名称具有较小的尺寸?

以下是 MWE:

\documentclass{article}
\usepackage{tikz-timing}

\begin{document}
This is a test graphic.\\

    \begin{tikztimingtable}
            clk & 21{C}; \\
            data  &  5L;2H;14L \\
    \end{tikztimingtable}

Another graphic, but i want the size of all signal names to be smaller.\\

    \begin{tikztimingtable}
            clksmallersize  & 21{C}; \\
            data2  &  5L;2H;14L \\
    \end{tikztimingtable}
    
\end{document}

答案1

弄清楚了:

\documentclass{article}
\usepackage{tikz-timing}

% The following lines makes all signal names smaller in all document
%\tikzset{timing/name/.style={font=\sffamily\scriptsize}} 

\begin{document}
This is a test graphic.\\

    \begin{tikztimingtable}
            clk & 21{C}; \\
            data  &  5L;2H;14L \\
    \end{tikztimingtable}

Another graphic, with names of signals smaller.\\

% adding this in brackets, makes the signals of the tikztimingtable smaller, only for that table.
    \begin{tikztimingtable}[timing/name/.style={font=\sffamily\scriptsize}]
            clk\_smallersize    & 21{C}; \\
            data\_smallersize &  5L;2H;14L \\
    \end{tikztimingtable}
    
\end{document}

在此处输入图片描述

相关内容