I usually use a makefile for this.
There I have build rule that first cds into the target directory, then calls context from there.
Best
Denis
________________________________________
Von: ntg-context im Auftrag von peter.hopcroft--- via ntg-context
Gesendet: Samstag, 27. Mai 2023 03:52:42
An: ntg-context@ntg.nl
Cc: peter.hopcroft@icloud.com
Betreff: [NTG-context] Can ConTeXt write its pdf to a different directory?
My .tex file is in a directory within my working directory. I would like ConTeXt to write its output in the same directory as my .tex file. But it writes to the working directory.
This was asked 10 years ago:
`tex.stackexchange.com/questions/67928/how-to-set-output-directory-in-context-command`
The answer given then was to use:
`context filename --result=output-directory/filename`
But this doesn't work now. When I compile my .tex file, I get a message:
`results are to be on the running path, not on 'output-directory', ignoring --result`
I've looked in the wiki:
`https://wiki.contextgarden.net/Context`
Thank you,
Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________