Tikz 计时选项综合列表
这里有人是 Tikz-timing 方面的大师吗?
我正在寻找一种用注释来标记时序图的方法,但垂直比例太压缩。我找不到 \timing 命令的完整选项列表(或者即使找到了,也是一个很少的列表)。
我最初猜测它们可能会失败(例如 height=),但最终我偶然发现文档中的一个示例,确认 yscale= 应该有效,而且确实如此。
下面是一个可以帮助您入门的代码片段:
\begin{tikzpicture}
\timing [yscale=2.0] at (0,0) {3H N (d7) 3L 3H N (d6) 3L 3H N (d5) 3L 3H N (d4) 3L 3H N (d3)3 L 3H N (d2) 3L 3H N (d1) 3L 3H N (d0) 3L 3H N (ack) 3L};
\path (d7) node [below left] {D7};
\path (d6) node [below left] {D6};
\path (d5) node [below left] {D5};
\path (d4) node [below left] {D4};
\path (d3) node [below left] {D3};
\path (d2) node [below left] {D2};
\path (d1) node [below left] {D1};
\path (d0) node [below left] {D0};
\path (ack) node [below left] {ACK};
\end{tikzpicture}
Anyone here a guru in Tikz-timing?
I am looking for a way to label a timing diagram with annotations, but the vertical scale is too compressed. I couldn't find a comprehensive list of options for the \timing command (or if I did, it was a meager list).
My initial guesses at what they might be failed (e.g. height=), but eventually I stumbled onto an example from the document that confirmed that yscale= should work, and so it does.
Here's a code snippet to get you started:
\begin{tikzpicture}
\timing [yscale=2.0] at (0,0) {3H N (d7) 3L 3H N (d6) 3L 3H N (d5) 3L 3H N (d4) 3L 3H N (d3)3 L 3H N (d2) 3L 3H N (d1) 3L 3H N (d0) 3L 3H N (ack) 3L};
\path (d7) node [below left] {D7};
\path (d6) node [below left] {D6};
\path (d5) node [below left] {D5};
\path (d4) node [below left] {D4};
\path (d3) node [below left] {D3};
\path (d2) node [below left] {D2};
\path (d1) node [below left] {D1};
\path (d0) node [below left] {D0};
\path (ack) node [below left] {ACK};
\end{tikzpicture}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我是 tikz-timing 的作者。愚蠢的问题,但你检查过包装手册吗?
我认为您不会在任何地方找到更好的选项列表。
检查 CTAN 或 TeXDoc。
如果您使用最新版本的 tikz-timing (v0.7),您可以使用 'wscale' 来缩放宽度。
此外,通过将“计时/内联节点”样式调整为“矩形,左下方”,您可以通过将节点从“N(d7)”更改为“N{d7}”等,直接在计时字符串中添加节点文本。
I'm the author of tikz-timing. Stupid question, but did you checked the package manual?
I don't think that you will find any better list of options anywhere.
Check CTAN or TeXDoc.
If you use a recent version of tikz-timing (v0.7) you can use the 'wscale' to scale the width.
Also by adjusting the 'timing/inline node' style to 'rectangle,below left' you can add the node text directly in the timing string by changing the nodes from 'N(d7)' to 'N{d7}' etc.