平均能量损失
\documentclass[border=2mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{tikz-timing}
\begin{document}
\begin{tikztimingtable}[
scale=2.5,
timing/slope=0.1,
timing/rowdist=3ex
]
\textnormal{Clock} & [black] 4{hz} \\
\extracode
\begin{background}
\node[anchor=south east,inner sep=1 pt] at (0,1){\tiny k};
\node[anchor=south east,inner sep=1 pt] at (0,.5){\tiny o};
\node[anchor=south east,inner sep=1 pt] at (0,0){\tiny c};
\end{background}
\begin{pgfonlayer}{background}
\vertlines[help lines]{0,1,3,4}
\end{pgfonlayer}
\tablegrid
\end{tikztimingtable}
\end{document}
我想要输出,
如何添加(中心)钾,o, 和C?
答案1
晚上好,
时间表为从第 1 行(第 15 页)开始的所有行提供标签tikz-timing.pdf)。因此你可以将节点放置在第 1 行的西侧。
代码:
\documentclass[border=2mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{tikz-timing}
\begin{document}
\begin{tikztimingtable}[
scale=2.5,
timing/slope=0.1,
timing/rowdist=3ex
]
\textnormal{Clock} & [black] 4{hz} \\
\extracode
\begin{background}
%\node[anchor=south east,inner sep=1 pt] at (0,1){\tiny k};
%\node[anchor=south east,inner sep=1 pt] at (0,.5){\tiny o};
%\node[anchor=south east,inner sep=1 pt] at (0,0){\tiny c};
\node[anchor=east] at (row1.north west){\tiny k};
\node[anchor=east] at (row1.west){\tiny o};
\node[anchor=east] at (row1.south west){\tiny c};
\end{background}
\begin{pgfonlayer}{background}
\vertlines[help lines]{0,1,3,4}
\end{pgfonlayer}
\tablegrid
\end{tikztimingtable}
\end{document}
输出:
您可以使用参数调整节点的位置xshift
。
干杯!