Document Classessamples/documentation for circ package?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
rgerhards
Posts: 4
Joined: Sun Oct 12, 2008 12:27 pm

samples/documentation for circ package?

Post by rgerhards »

Hi,

I am looking for a package that permits me to draw circuit diagrams (as used in technical informatics). So far, I have found the circ package, which seems to include at least most things I need (but I could not find multiplexers so far...). However, the documentation is quite brief and lacks a sample on how to draw logic diagrams. While I managed to get the basics going, I still do not know how to start by connecting inputs X_1, ..., X_n to the gates (e.g. \OR, \AND).

Is there any other documentation on circ available? Or does somebody happen to have a code sample?

Any help would be deeply appreciated.

Rainer

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

samples/documentation for circ package?

Post by Stefan Kottwitz »

Hi Rainer,

welcome to the board!
Concerning circ have a look here: circ on CTAN and especially circ.pdf.
Additionally you could have a look at the pst-circ package of PSTricks.

Stefan
LaTeX.org admin
rgerhards
Posts: 4
Joined: Sun Oct 12, 2008 12:27 pm

Re: samples/documentation for circ package?

Post by rgerhards »

Hi Stefan,

thanks for the tips :)

Unfortunately, I learned about circ on ctan and read the document you quote. Chances are good I misunderstood the doc (I am new to LaTeX as well), but this is why I would really appreciate a sample or some other doc (google search turned up almost nothing :().

I also had a look at the other package, but that provides less symbols. Anyhow, I'll evluate further :)

Thanks again for your time.

Rainer
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

samples/documentation for circ package?

Post by Stefan Kottwitz »

Hi Rainer,

these forum topics are containing samples:
Stefan
LaTeX.org admin
rgerhards
Posts: 4
Joined: Sun Oct 12, 2008 12:27 pm

samples/documentation for circ package?

Post by rgerhards »

Sorry for not expressing myself well enough. I visited these sample threads, but they do not talk about logic gates or the problem I am facing.

I'll try to be a bit more elaborative ;)

For example, I have this code (not really finished, because of the problem I face ;)):

Code: Select all

\begin{circuit}0
\OR1 TextOR I1 a b c 
\frompin OR1O
\AND2 TextAND I1 a2 b2 c2
\end{circuit}
Now, I would like to place the text "X1" right at I1 of OR1. However, I do not (yet) find a way to do this. I tried \put{X1}, but that lead to no useful result (the "X1" was written over the "a" label of the input wire. No of the few samples on circ I could find deal with logic gates.

Rainer
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

samples/documentation for circ package?

Post by Stefan Kottwitz »

Perhaps have a look at pgf/TikZ, it provides a library for logic gates, see 39.8 Logic Gate Shapes in its manual.

Stefan
LaTeX.org admin
Post Reply