[NTG-context] Compiling context files in command line

Max Chernoff mseven at telus.net
Sat Jun 4 23:54:01 CEST 2022


> Is it possible at the end off compile proces to move the created PDF to another directory (subdirectory of current directory)

You can try something like this:

     \startluacode
         luatex.wrapup(function()
             local pdf = tex.jobname .. ".pdf"
             file.copy(pdf, "subdirectory/" .. pdf)
             os.remove(pdf)
         end)
     \stopluacode

     \starttext
         Hello!
     \stoptext

-- Max


More information about the ntg-context mailing list