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>,
	Florent Michel <florent.m42@gmail.com>
Subject: [NTG-context] Re: Background colour in PDF with export activated
Date: Wed, 20 Nov 2024 18:15:03 +0100	[thread overview]
Message-ID: <75a1c6c6-8a94-e1c5-bd81-c984e3cc1624@gmail.com> (raw)
In-Reply-To: <CALOhoeKU1Feo6ZRhXkcu=k-dW9=NiJmmZqxGs_4TCKy8vTVsCw@mail.gmail.com>

Florent Michel schrieb am 20.11.2024 um 17:26:
> Hi,
>
> I'm having issues generating PDF files with a coloured background when 
> export is set to ‘yes’.
>
> Minimal example:
>
> \setupbackend[export=yes]
> \setupbackgrounds [page] [background=color,backgroundcolor=black]
> \starttext
> \startcolor[white]
> test
> \stoptext
>
> This example seems to work as expected when I comment out the first 
> line (a black page with the word ‘test’ in white). However, with the 
> first line the pdf looks entirely white. Is this a known issue, or am 
> I doing something wrong here?

When you use the export mode some features of Context are disabled and 
in your case the page background is one of these disabled features.

It has always been recommended to make separate runs for the PDF output 
and the document export.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2024-11-20 17:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-20 16:26 [NTG-context] " Florent Michel
2024-11-20 17:07 ` [NTG-context] " Henning Hraban Ramm
2024-11-20 17:43   ` Florent Michel
2024-11-20 17:15 ` Wolfgang Schuster [this message]

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=75a1c6c6-8a94-e1c5-bd81-c984e3cc1624@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=florent.m42@gmail.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).