IIRC, there’s currently no support for this.
--result= can be used to rename the output file, but it can not be used to create the file in a specific directory, nor to move it there.
Such a feature would be quite useful though, I think.
Maybe two options?
--result=foo.pdf => rename output to foo.pdf
--output-dir=/somedir => create output file in /somedir (but keep the regular file name)
--result=/somedir/foo.pdf => create foo.pdf at a specific location.
Denis
Von: ntg-context Im Auftrag von Thangalin
Gesendet: Dienstag, 30. März 2021 07:06
An: mailing list for ConTeXt users
Betreff: [NTG-context] Output result to specified file path
How do you set the target output path and file name? Consider:
% SOF
\starttext
Hello
\stoptext
% EOF
Save as $HOME/test.tex and then:
mkdir /tmp/subdir
context --result=/tmp/subdir/test.pdf $HOME/test.tex
Expected: PDF file is created in /tmp/subdir directory.
Actual: PDF file is created in $HOME directory.
Version: 2021.03.27 19:09
Thank you!