title: pdflatex to convert octave code into pdf documents
body: <p>I am attempting to publish some Octave code as a PDF, however, I keep on getting the same error message:</p>
  
  <pre><code>'pdflatex' is not recognized as an internal or external command,
  </code></pre>
  
  <p>operable program or batch file.</p>
  
  <p>I have also downloaded MikTex now but it still does work when I use the command</p>
  
  <pre><code>options.format='pdf';
  options.showCode = false;
  publish('document1.m',options)
  </code></pre>
  
  <p>Why is this not working?</p>