关于 tikz-timing 包已知:
tikztimingtable 环境
\begin{tikztimingtable} Name & hLLLLh \\ Clock & 20{ c } \\ Signal & z7D { Text } z \\ \end{tikztimingtable}
tikzpicture 环境
\begin{tikzpicture}[timing/picture, thick] \timing at (0,2) {hH N(A) LHLHL}; \timing [timing/slope =.25] at (0,0) {HLL N(B) HHLl}; \draw [orange,semithick] (A.mid) ellipse(.2 and .6) (B.mid) ellipse(.2 and .6); \draw [orange,semithick,->] ($(A.mid)-(0,.6)$) parabola[bend pos=0.5] ($(B.mid)+(0,.6)$); \end{tikzpicture}`
我的问题是如何分别命名第二张图片中的信号,信号A和信号B?
答案1
手册中似乎没有提到添加名称的方法,除了您已经在表格中展示的方法。所以我想您可以简单地在右侧添加节点。这不是真正自动的,但目前,这是我能想到的最好的方法。
输出
代码
\documentclass[margin=10pt]{standalone}
\usepackage{tikz-timing}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[timing/picture, thick]
\node[anchor=base, font=\scriptsize] at (-3,2) {Signal A};
\node[anchor=base, font=\scriptsize] at (-3,0) {Signal B};
\timing at (0,2) {hH N(A) LHLHL};
\timing [timing/slope =.25] at (0,0)
{HLL N(B) HHLl};
\draw [orange,semithick]
(A.mid) ellipse(.2 and .6)
(B.mid) ellipse(.2 and .6);
\draw [orange,semithick,->]
($(A.mid)-(0,.6)$)
parabola[bend pos=0.5]
($(B.mid)+(0,.6)$);
\end{tikzpicture}
\end{document}