|Pic for expressive LaTeX diagrams|
|LaTeX - Graphics, Figures & Tables|
|Written by Allan Espinosa|
|Thursday, 21 June 2012 15:47|
In my graduate work, I draw a lot of system diagrams which basically involves drawing a bunch of shapes with arrows. When typesetting my figures, I like using the Pic preprocessor because of its expressiveness. In the following post I will show how to use it.
- A contribution to the LaTeX and Graphics contest -
This article is an updated version of a post from my my personal blog.Take a look at the code below:
This will generate the following figure:
Below is my workflow when writing Pic diagrams:
My first encounter with Pic was when I was looking for ways to typeset my Electrical Engineering reports during undergrad. That time, I found the Circuit_macros package, also by J. Aplevich. Circuit_macros provides a set of M4 macros to draw circuit components. Using it is the same as working with normal Pic figures but you have to pre-process the figures through
Here is an example figure I made during my undergraduate year:
There are a lot of better resources on GNU pic/ Dpic and Circuit_macros than this introductory post:
Latest Forum Posts
Re: How to insert PDF text links?
25/06/2016 02:05, Konchock_Dawa
Re: Issues with \footnote
25/06/2016 01:55, Johannes_B
Re: Seperate bibliography into books only, articles only, et
25/06/2016 01:54, Johannes_B
Re: examdesign numbering true/false question
24/06/2016 19:09, dgreen
Issues with \footnote
24/06/2016 15:36, Colin93
Seperate bibliography into books only, articles only, etc.
24/06/2016 15:21, Colin93
References still not showing
24/06/2016 15:04, StylishGiraffe
Re: 1 bloc and 3 images in a frame
24/06/2016 11:45, Colin93
Re: Make the image stay while using "pause"
24/06/2016 11:28, Colin93
Add a table of contents for appendices
24/06/2016 11:11, Laur_ette