Logic gates symbol In LaTeX

In this tutorial, I will show you how to get all the logic gates symbols in LaTeX with the milstd package. The following table gives the commands and outputs of all logic gates.

CommandOutput
\ANDd\ANDd
\ANDl\ANDl
\ANDr\ANDr
\ANDu\ANDu
\BUFd\BUFd
\BUFl\BUFl
\BUFr\BUFr
\BUFu\BUFu
\BusWidth\BusWidth
\INVd\INVd
\INVl\INVl
\INVr\INVr
\INVu\INVu
\NANDd\NANDd
\NANDl\NANDl
\NANDr\NANDr
\NANDu\NANDu
\NORd\NORd
\NORl\NORl
\NORr\NORr
\NORu\NORu
\ORd\ORd
\ORl\ORl
\ORr\ORr
\ORu\ORu
\documentclass{article}
\usepackage{milstd}
\begin{document}
  
  \ANDr\;\;\; \BUFr\;\;\; \ORr
  
  \INVr\;\;\; \NANDr\;\;\; \NORr
    
\end{document}

Output:

Logic gates output.

Leave a Reply

Your email address will not be published. Required fields are marked *