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?
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=color,backgroundcolor=black]
\starttext
\startcolor[white]
test
\stoptext
%main-exp.tex
\setupbackend[export=yes]
\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 ‘\setupbackend[export=yes]’ into a different file.
Best regards,
Florent