ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Gerben Wierda <gerben.wierda@rna.nl>
Subject: Re: output file name query
Date: Sat, 23 May 2020 21:46:41 +0200	[thread overview]
Message-ID: <afdeb223-729b-6015-9072-1c65cf591608@gmail.com> (raw)
In-Reply-To: <77965DCC-08C6-4130-AEEB-27B3A7DD8FBA@rna.nl>

Gerben Wierda schrieb am 23.05.2020 um 15:46:
> Just curious: wouldn’t it theoretically be possible to delay opening the output file until the first \stattext? Or is there already stuff going out before that, such as preliminaries that go into the PDF?

\starttext is only a artificial border at the begin of the document and 
there is nothing which prevents you to put text before it. ConTeXt 
delays (or resets) a few settings (e.g. loading the default fonts) until 
this point but the document begins on the first line of the input file.

\setupbodyfont[modern-designsize]

Page \pagenumber.

\page

\starttext

Page \pagenumber.

\stoptext


> I think being able to name the output file in the preliminaries in the TeX file would come in handy and prevent more complex workarounds with scripts. But it is not essential as workarounds are possible.

Setting the value of result on the first line is simple because ConTeXt 
already checks it.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2020-05-23 19:46 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
2020-05-23 12:43     ` Wolfgang Schuster
2020-05-23 13:46       ` Gerben Wierda
2020-05-23 19:46         ` Wolfgang Schuster [this message]
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=afdeb223-729b-6015-9072-1c65cf591608@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=gerben.wierda@rna.nl \
    --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).