title: dot2tex in org-mode and latex commandline arguments
body: <p>I used to make tree diagrams with dot in orgmode.</p>
  
  <pre><code>  #+BEGIN_SRC dot :file hallo1_1_1.png 
       digraph hallo1_1_1 {
          A [shape = "circle",style=filled, fillcolor=yellow]
       }
    #+END_SRC
  </code></pre>
  
  <p>Now, to pass latex commands (\def\mycommand{args})to my diagrams I would like to use dot2tex.
  (the usepackages are in ~/.emacs)</p>
  
  <pre><code>             \\usepackage[utf8]{inputenc}
               \\usepackage[T1]{fontenc}
               \\usepackage{graphicx}
               \\usepackage{longtable}
               \\usepackage{listings}
               \\usepackage{xcolor}
               \\usepackage{float}
               \\usepackage{soul}
               \\usepackage{amssymb}
               \\usepackage{hyperref}
               \\usepackage{sectsty}
               \\usepackage{tabularx}
               \\usepackage{pbox}
               \\usepackage{tikz}
               \\usepackage{stackengine} 
               \\usepackage{verbatim}
               \\usepackage{changepage}
               \\usepackage{dot2texi}
               \\usepackage[pdf]{graphviz}
               \\usetikzlibrary{shapes,arrows}
  </code></pre>
  
  <p>After using in my test.org:</p>
  
  <pre><code>    #+headers: :cmdline latex -shell-escape
      #+BEGIN_SRC latex
  
  
     \digraph[scale=0.5]{MyGraph}{rankdir=LR; a-&gt;b; b-&gt;c}
    #+END_SRC
  </code></pre>
  
  <p>I got the warning:</p>
  
  <pre><code>    The file MyGraph.pdf hasn’t been created from MyGraph.dot yet.
      Run ‘dot -Tpdf -o MyGraph.pdf MyGraph.dot’ to create it.
      Or invoke LATEX with the -shell-escape option to have this done     
      automatically.
  </code></pre>
  
  <p>Is it possible to add the commandline arguments in the file correctly?
  I would like the commandline arguments in the file for workflow reasons.
  Thank you.</p>