我決定嘗試 tikztimingtable,但是我不確定我是否「喜歡」訊號標籤中使用的字體
[font=\rmfamily]
所以我嘗試通過在第一個標籤前面添加 來更改它。然而,這導致訊號移位(見下圖)
正如您所看到的,訊號不再到達 t_10。程式碼在下面。是否可以將字體變更為羅馬字體?
\begin{tikztimingtable}
handshake\_out\_RPi & [thin] 3L 6H 6L 9H 6L\\
data\_out\_RPi & [thin] 3Z[black] 6D 6Z[black] 9D 6Z[black]\\
handshake\_out\_UR5 & [thin] 6L 6H 9L 6H 3L\\
\extracode
\begin{pgfonlayer}{background}
\vertlines[help lines, dotted]{0,3,...,30}
\foreach \i [count=\col from 0] in {0,3,...,30}
\node[font=\scriptsize] at (\i,3) {$t_{\col}$};
\end{pgfonlayer}
\end{tikztimingtable}%
並使用羅馬家族字體:
\begin{tikztimingtable}
[font = \rmfamily] handshake\_out\_RPi & [thin] 3L 6H 6L 9H 6L\\
data\_out\_RPi & [thin] 3Z[black] 6D 6Z[black] 9D 6Z[black]\\
handshake\_out\_UR5 & [thin] 6L 6H 9L 6H 3L\\
\extracode
\begin{pgfonlayer}{background}
\vertlines[help lines, dotted]{0,3,...,30}
\foreach \i [count=\col from 0] in {0,3,...,30}
\node[font=\scriptsize] at (\i,3) {$t_{\col}$};
\end{pgfonlayer}
\end{tikztimingtable}%
答案1
正如 Sigur 所建議的,這就是我的問題的答案:
\begin{tikztimingtable}[yscale=1.5]
\texttt{Handshake out RPi} & [thin] 4L 8H 8L 12H 8L\\
\texttt{Data out RPi} & [thin] 4Z[black] 8D 8Z[black] 12D 8Z[black]\\
\texttt{Handshake out UR5} & [thin] 8L 8H 12L 8H 4L\\
%\textsf{•}
\extracode
\begin{pgfonlayer}{background}
\vertlines[help lines, dotted]{0,4,...,40}
\foreach \i [count=\col from 0] in {0,4,...,40}
\node[font=\scriptsize] at (\i,2) {$t_{\col}$};
\end{pgfonlayer}
\end{tikztimingtable}%
其中 yscale 選項增加了訊號的高度。所以現在看起來很漂亮: