http://www.liacs.nl/~hoogeboo/praatjes/gastex/
GasTeX (Graphs and Automata Simplified in TeX, by Paul Gastin) is a package for drawing figures with a LaTeX interface and the help of Postscript. Everyone that needs to draw automata in his LaTeX documents on a regular basis should have a look at this package.
The examples below are mainly to remind me of the possible settings for figures I sometimes need.
\begin{figure}[H] \begin{center} \unitlength=4pt \begin{picture}(15, 28)(0,-10) \gasset{Nw=5,Nh=5,Nmr=2.5,curvedepth=3} \thinlines \node(A0)(7.5,0){$0$} \node[Nmarks=i,iangle=90](A1)(0,13){$1$} \node[Nmarks=if,iangle=90,fangle=90](A2)(15,13){$2$} \drawloop[loopangle=180](A1){$a$} \drawloop[loopangle=0](A2){$b$} \drawedge(A1,A2){$a$} \drawedge(A2,A1){$b$} \drawedge(A2,A0){$a$} \gasset{curvedepth=-3} \drawedge[ELside=r](A1,A0){$b$} \drawloop[loopangle=270](A0){$a, b$} \end{picture} \end{center} \caption{La complétion de l'automate.} \end{figure}
Code | |
binary relation | |
Code | |
binary tree (post order) | |
Code | |
undirected graph (a) | |
Code | |
undirected graph (b) | |
Code | |
undirected graph (c - linear) | |
Code | |
fsa (final 0 or even 1's) | |
Code | |
fsa (subword 00 or even 1's) | |
Code | |
fsa (ends in a - - , deterministic) | |
Code | |
cube (strings Hamilton dist 1) | |
Code | |
CMB Euler path | |
Code | |
CMB probes (A..G) and clones (1..6) | |
Code | |
CMB PQ trees | |
Code | |
Hilbert curve (tiles) |
0 意見:
張貼留言