1

I want to convert a TeX file to a PDF file with a lua script. I can execute the lualatex.exe with

os.execute("...path\lualatex.exe")    

Then I have to fill it out by hand, which file should be convert. But how can I convert a specific file, for example test.tex?

  • 1
    Welcome to TeX.SE! If the myfile.tex file can be assumed to be in a directory that's searched by the TeX distribution, os.execute(lualatex myfile) should do the job. – Mico Sep 24 '13 at 5:36
  • You're welcome! I'll post my answer as an official answer so that this question can be considered to have been answered. – Mico Sep 25 '13 at 13:57
1

If the file test.tex can be assumed to be in a directory that's searched by the TeX distribution, then

os.execute(lualatex test) 

should do the job.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.