summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/technica/examples/typeset.bat
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/technica/examples/typeset.bat')
-rw-r--r--macros/latex/contrib/technica/examples/typeset.bat20
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/latex/contrib/technica/examples/typeset.bat b/macros/latex/contrib/technica/examples/typeset.bat
new file mode 100644
index 0000000000..d322f20fc1
--- /dev/null
+++ b/macros/latex/contrib/technica/examples/typeset.bat
@@ -0,0 +1,20 @@
+@echo off
+rem A simple batch file for Windows XP and MiKTeX
+if "%1" == "-p" goto pdf
+set name=%~n1
+set pgm=latex
+goto start
+:pdf
+set name=%~n2
+set pgm=pdflatex
+:start
+if exist %name%.aux del /q %name%.aux > nul
+if exist %name%.auy del /q %name%.auy > nul
+if exist %name%.idy del /q %name%.idy > nul
+:loop
+if exist %name%.rpt del /q %name%.rpt > nul
+setlocal
+set TEXMFMAIN=c:\MiKTeX
+c:\MiKTeX\miktex\bin\%pgm% %name%.tex
+endlocal
+if exist %name%.rpt goto loop