有人知道如何在 LaTeX 中创建边沿触发符号吗?我需要显示某些东西在信号的负时钟边沿激活,但在段落中,而不是在时序表中。
答案1
答案2
我没有找到这样的符号,但这可以帮你入门。此解决方案可适应实际行高 ( \baselineskip
)。因此,即使更改字体大小也没关系。
\documentclass{article}
\usepackage{tikz}
\newcommand\net{%
\begin{tikzpicture}[scale=0.3\baselineskip/18pt]
\draw (0,1) -- (1,1) -- (1,0) -- (2,0);
\end{tikzpicture}%
}
\newcommand\netp{%
\begin{tikzpicture}[scale=0.3\baselineskip/18pt]
\draw (0,1) -- (1,1) -- (1,0) -- (2,0) -- (2,1) -- (3,1);
\end{tikzpicture}%
}
\begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Negative edge trigger here \net\ and \netp\ and some text after. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
\end{document}