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 <[email protected]> Im Auftrag von Thangalin
Gesendet: Dienstag, 30. März 2021 07:06
An: mailing list for ConTeXt users <[email protected]>
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!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to