![](https://secure.gravatar.com/avatar/e0a539d85971550d2d135c0e8059d606.jpg?s=120&d=mm&r=g)
Hi, I tried to find out how to create pdf files from multiple sources in a batch file, but I could not find a solution. Always after the first document the batch files ends and no further documents are created. My Windows batch file looked like this (Every student has his own pdf file):
setlocal enabledelayedexpansion call C:\Programme\context\tex\setuptex.bat C:\Programme\context mtxrun.cmd --autogenerate --script context --batch --pdf student_1.tex mtxrun.cmd --autogenerate --script context --batch --pdf student_2.tex mtxrun.cmd --autogenerate --script context --batch --pdf student_3.tex mtxrun.cmd --autogenerate --script context --batch --pdf student_4.tex
I also tried texexec but without success. What am I doing wrong and how can I fix this? Thanks for your help. Wolfgang Murth
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Wolfgang Miurth wrote:
Hi,
I tried to find out how to create pdf files from multiple sources in a batch file, but I could not find a solution. Always after the first document the batch files ends and no further documents are created.
My Windows batch file looked like this (Every student has his own pdf file):
setlocal enabledelayedexpansion call C:\Programme\context\tex\setuptex.bat C:\Programme\context mtxrun.cmd --autogenerate --script context --batch --pdf student_1.tex mtxrun.cmd --autogenerate --script context --batch --pdf student_2.tex mtxrun.cmd --autogenerate --script context --batch --pdf student_3.tex mtxrun.cmd --autogenerate --script context --batch --pdf student_4.tex
I also tried texexec but without success.
What am I doing wrong and how can I fix this? Thanks for your help.
put call in front: call mtxrun.cmd .... or run: mtxrun.cmd --autogenerate --script context --batch --pdf student_*.tex ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Miurth