TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a Computer Science library for TikZ?

I am looking for a library for drawing standard data structures (array, linked list, stack, queue, pointers, trees, etc) in a consistent way.

I would also be happy to hear how hard would it be to create such a library for an intermediate LaTeX user (understands some macros, can't write macros independently) in terms of work-days.

share|improve this question
I think that such a library does not exist but I'm not sure. Do you have a link to show us what you desire. Something like that : introcs.cs.princeton.edu/java/43stack ? – Alain Matthes Feb 22 '12 at 8:53
Yes, something like that. I have created some illustrations in TikZ without the use of such a package, and I would like to either write my own package or use an existing one to achieve better consistency and make life easier. The document in question is at ilijapavlic.com/spa/Skripta.pdf – ipavlic Feb 22 '12 at 9:01
CTAN lists several packages that may be useful for computer scientists here, but unfortunately none provides constructions for standard data structure types. – Daniel C. Mar 26 '12 at 16:54
@ipavlic: See also the question [Inconsistent TikZ multipart node anchors][1]. [1]: tex.stackexchange.com/questions/44257/… – StrawberryFieldsForever Jul 25 '12 at 17:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.