From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 80A9C304E0 for ; Wed, 20 Nov 2024 17:32:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 34DDF485272 for ; Wed, 20 Nov 2024 17:29:08 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-type:content-type:list-unsubscribe:list-subscribe :list-post:list-owner:list-help:list-archive:archived-at:list-id :subject:subject:reply-to:precedence:message-id:date:date:from :from:mime-version:received:received:received:received:received :received; s=cgl; t=1732120147; x=1734712148; bh=9DPsH76Lwe04yq9 wW0i/lU3h976Twiet1hNMq4DnVwc=; b=ouHcO5F7kon0Sb/eyrxI2pauEEQIgVX hgDz3xHyNXa1kdpBiZuGENCVATKS2p4u5DKs/r7k1w7AVdkPecvC7D6YYMuCSpkO 7rcUpAs8kl0gbWAIDBy9+AkTsD+U55dh0s+/jc0PGAzNio+8O41mpGgC+DBZm8q9 imEGo8HrO7Dc= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v4-dKq3jRznR for ; Wed, 20 Nov 2024 17:29:07 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8C276485250 for ; Wed, 20 Nov 2024 17:27:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 309E94851FF for ; Wed, 20 Nov 2024 17:27:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0x7qyaCCBRc1 for ; Wed, 20 Nov 2024 17:27:02 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.214.169; helo=mail-pl1-f169.google.com; envelope-from=florent.m42@gmail.com; receiver= Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id B4CB14851FC for ; Wed, 20 Nov 2024 17:27:02 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-21278f3d547so5882825ad.1 for ; Wed, 20 Nov 2024 08:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732120021; x=1732724821; darn=ntg.nl; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=RqN3vhyG40xq1jQogu2VRFY4fRC7JcIU7aO6/AloqCc=; b=XJNylorqvNGd2aKjNC0XQoRtspfl88uPh13b3j5cvRhY9LYRv5uXLcnJes7fMmw0Cz VekXeIk0yoq8VLTxLCtaT4lOhDigUbA1ckCsrZQic2k86D2VFTMTokGg21K8G3/WVE5Y DSHcMMn95VI0cdncGwZZdUcLmlyP9ul/E4nZE4nf7UU+TC4J/85ag41oZQAxf39CCrWY jrgJnaXrcKKbvGRSn5XD7QZ+RBFgUKxoi5KE0pIPFiDpnus9kWU0KUgnx0WQYMLo87Wg KYMWq8HiK5sIoduKMVMUfIg+R2N8BfCbafNwBzBUeHxqWnkgk0dE3pzWsZA4uM2Zd4c4 nB1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732120021; x=1732724821; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RqN3vhyG40xq1jQogu2VRFY4fRC7JcIU7aO6/AloqCc=; b=ji84QXJ9wrOTw9zX/qe1zUKntWgFm6tF6s0Gc0Yalkks3z+WS43vLxmYxspHU0q/d7 eR8W2kuAPfJnA8LL0J+mRTOTkKdPlHP3ea7F0c46O5z6OFvMexQOEVquE39Ahw+9CrZp 9UuqopciZJnm157L9VFforSjcT1gymvHEzkKozJCJYNefyCJGkKem1RgjFlZANdjEo6Z u0X0bCwmAiD/DrKQmyon3gb+4gmkm90QU1nBB05mrgLC7mtMI0k/sJLC4xyfeP1NCL2k HvOsOI1ArP7SEa2zNV3XmPMl/g6iLassGR8Zftw+3KyCZFrfNwuLjqdAQs4QeTJiU1jM jSCg== X-Gm-Message-State: AOJu0Yx6SwKJc5rRYLQZxTLXWNihzEegFD5AT7ZgVZrKPBSUnSsqboUw 12GMPdChueO8Vn/Z8SiR6CWCKHkpxet7UektuY0PbMNTWtff2GPjWZWnEf45D3AsyZYm1smEsk+ ZFmEZNBN4aCJ7Achgq/Oe+lz062xd2nk9iqY= X-Google-Smtp-Source: AGHT+IHVmP48OPGsNbuDEMyDln7jUM06W4CRTKm+81VF9q5PZc1ZPl6B/g7P9l82tbyahE54u20SZ1UiW88G322BsHc= X-Received: by 2002:a17:902:d50f:b0:20c:8907:908 with SMTP id d9443c01a7336-2126a42ecb4mr34902755ad.44.1732120020747; Wed, 20 Nov 2024 08:27:00 -0800 (PST) MIME-Version: 1.0 From: Florent Michel Date: Wed, 20 Nov 2024 16:26:44 +0000 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: UES335N5PLKDZFUM7AGQRWNB7VY6QKB2 X-Message-ID-Hash: UES335N5PLKDZFUM7AGQRWNB7VY6QKB2 X-MailFrom: florent.m42@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Background colour in PDF with export activated List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============3403316532019546826==" --===============3403316532019546826== Content-Type: multipart/alternative; boundary="0000000000008b8dbb06275a9e84" --0000000000008b8dbb06275a9e84 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I'm having issues generating PDF files with a coloured background when export is set to =E2=80=98yes=E2=80=99. Minimal example: \setupbackend[export=3Dyes] \setupbackgrounds [page] [background=3Dcolor,backgroundcolor=3Dblack] \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 =E2=80=98test=E2=80=99 in white). However, with th= e first line the pdf looks entirely white. Is this a known issue, or am I doing something wrong here? Use-case: I am trying to generate a pdf and an html files with equivalent content, the latter being primarily used for accessibility purposes. One workaround is to split the tex file in two, e;g;: % main.tex \setupbackgrounds [page] [background=3Dcolor,backgroundcolor=3Dblack] \starttext \startcolor[white] test \stoptext %main-exp.tex \setupbackend[export=3Dyes] \input{main.tex} This way, I can generate the correct pdf by compiling main.tex and the html by compiling main-exp.tex (adding a custom .css file to get a black background). But I'm wondering if there is a way of generating the correct pdf without moving the line =E2=80=98\setupbackend[export=3Dyes]=E2=80=99 into a differ= ent file. Best regards, Florent --0000000000008b8dbb06275a9e84 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0

I'm having issues generating PDF= files with a coloured background when export=C2=A0is set to =E2=80=98yes= =E2=80=99.

Minimal example:=C2=A0

\setupbackend[= export=3Dyes]
\setupbackgrounds [page] [background=3Dcolor,backgroundcol= or=3Dblack]
\starttext
\startcolor[white]
test
\stoptext
This example seems to work as expected when I comment out the= =C2=A0first line (a black page with the word =E2=80=98test=E2=80=99 in whit= e). However, with the first line the pdf looks entirely white. Is this a kn= own issue, or am I doing something wrong here?

Use-case: I am trying= to generate a pdf and an html files with equivalent content,=C2=A0the latt= er being primarily used for accessibility purposes. One workaround is to sp= lit the tex=C2=A0file in two, e;g;:

% main.tex
\setupbackgrounds = [page] [background=3Dcolor,backgroundcolor=3Dblack]
\starttext
\start= color[white]
test
\stoptext

%main-exp.tex
\setupbackend[exp= ort=3Dyes]
\input{main.tex}

This way, I can generate the=C2=A0cor= rect=C2=A0pdf by compiling main.tex and the html by compiling main-exp.tex = (adding a custom .css file to get a black background).
But I'm wonde= ring if there=C2=A0is a=C2=A0way of generating the=C2=A0correct pdf without= moving the=C2=A0line =E2=80=98\setupbackend[export=3Dyes]=E2=80=99 into a = different file.

Best regards,
Florent
--0000000000008b8dbb06275a9e84-- --===============3403316532019546826== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============3403316532019546826==--