From: Rik Kabel <ConTeXt@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: Re: output file name query
Date: Fri, 22 May 2020 16:08:19 -0400 [thread overview]
Message-ID: <6b2968db-e6a5-8b0c-4f9b-b6253164d058@rik.users.panix.com> (raw)
In-Reply-To: <0FA790F7-06EA-4FC9-9150-F843D0D32EA5@fiee.net>
On 5/22/2020 11:39, Henning Hraban Ramm wrote:
>> Am 22.05.2020 um 15:09 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
>>
>> Alan Bowen schrieb am 22.05.2020 um 14:33:
>>> In my project, I process a single product file by enabling various modes. What I would like to do is to vary the name of the output PDF file in each instance.
>>> So, in processing a file, how does one go directly from prd_filename.tex to myfilename.pdf rather than to prd_filename.pdf—assuming that it is possible?
>>> Any tips or pointers to what I should be reading will be greatly appreciated.
>> 1. Drop the weird (sorry Hraban) naming system and use myfilename for your product.
> I force nobody to use that.
>
>> 2. Use the result option on the command line, e.g. "context --result=myfilename prd_filename.tex".
> But that still produces a "prd_filename.*" first and then renames it, making it impossible to keep a "prd_filename.pdf". Or did that change recently?
>
> My workflows are adapted to that behaviour: "prd_*.pdf" is just the temporary version, none of those leaves my computer, but only nicely named PDFs (usually MyProductName_yyyy-mm-dd.pdf).
>
>> 3. Ask Hans to add the result option to the first line of the document which is read by the context script before it creates the PDF.
>>
>> % result="myfilename"
>> \starttext
>> ...
>> \stoptext
> That contradicts the mode approach. It would be nice if we could set (or can we?) the result from within the product, depending on a mode – since the product is renamed only later anyway, that could be viable.
>
> Best, Hraban
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / 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
> _________________________________________________________________________________
Why not simply wrap it in a script or use make? (I set up a makefile for
each project, but scripts are fine for smaller stuff that has fewer
dependencies. Make is available on Windows, so that is not an impediment.)
--
Rik
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-05-22 20:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-22 12:33 Alan Bowen
2020-05-22 13:09 ` Wolfgang Schuster
2020-05-22 15:39 ` Henning Hraban Ramm
2020-05-22 20:08 ` Rik Kabel [this message]
2020-05-23 12:43 ` Wolfgang Schuster
2020-05-23 13:46 ` Gerben Wierda
2020-05-23 19:46 ` Wolfgang Schuster
2020-05-23 21:52 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6b2968db-e6a5-8b0c-4f9b-b6253164d058@rik.users.panix.com \
--to=context@rik.users.panix.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).