Example: Turing machine

Published 2009-02-07 | Author: Ludger Humbert

Download as: [PDF] [TEX]

Turing machine

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Author: Ludger Humbert <https://haspe.homeip.net/cgi-bin/pyblosxom.cgi>
% Source: 
% https://haspe.homeip.net/projekte/ddi/browser/tex/pgf2/turingmaschine-schema.tex

% serifenfreier Font -- fuer Praesentation geeignet/er

\listfiles % damit im Log alle benutzten Pakete aufgelistet werden


      start chain=1 going right,start chain=2 going below,node distance=-0.15mm
    \node [on chain=2] {Tape};
    \node [on chain=1] at (-1.5,-.4) {\ldots};  
    \foreach \x in {1,2,...,11} {
        \x, \node [draw,on chain=1] {};
    \node [name=r,on chain=1] {\ldots}; 
    \node [name=k, arrow box, draw,on chain=2,
        arrow box arrows={east:.25cm, west:0.25cm}] at (-0.335,-.65) {};    
    \node at (1.5,-.85) {Read/write head};
    \node [on chain=2] {};
    \node [draw,on chain=2] {Program};
    \chainin (k) [join]; % Verbindung vom Programm zum Leseschreibkopf



  • #1 Tiago Cogumbreiro, November 26, 2009 at 11:53 a.m.

    Hi, I have the following problem with this example:

    ERROR: Package PGF Math Error: Unknown function `of'.

    --- TeX said ---

    See the PGF Math package documentation for explanation. Type H for immediate help. ...

  • #2 Jörg Prante, December 25, 2009 at 3:39 p.m.





  • #3 Bruno Bauwens, January 24, 2012 at 10:40 p.m.

    Had same error, and this correction works. Thanks!

  • #4 TDJ, May 27, 2013 at 6:23 a.m.

    Came here after Googling the error in comment #1. Problem solved by #2. Thanks!

Adding comments is currently not enabled.