title: Windows batch file to compile LaTeX
body: <p>I'm trying to create a batch file to compile LaTeX documents. I've not found a solution to get it to compile every .tex file in the folder of the batch file. Is that easily accomplished?</p>
  
  <pre><code>SET STR=document
  
  pdflatex "%STR%.tex"
  bibtex "%STR%.aux"
  pdflatex "%STR%.tex"
  pdflatex "%STR%.tex"
  
  DEL "%STR%.log"
  DEL "%STR%.toc"
  DEL "%STR%.aux"
  DEL "%STR%.out"
  DEL "%STR%.blg"
  DEL "%STR%.bbl"
  
  "%STR%.pdf"
  </code></pre>