[NTG-context] Output result to specified file path

denis.maier at ub.unibe.ch denis.maier at ub.unibe.ch
Tue Mar 30 09:16:54 CEST 2021


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 <ntg-context-bounces at ntg.nl> Im Auftrag von Thangalin
Gesendet: Dienstag, 30. März 2021 07:06
An: mailing list for ConTeXt users <ntg-context at ntg.nl>
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210330/3df01d16/attachment.htm>


More information about the ntg-context mailing list