Re: [NTG-context] overprinting black

2022-11-09 Thread Henning Hraban Ramm via ntg-context

Am 09.11.22 um 17:22 schrieb Duncan Hothersall:
Have you tried overprint=yes? I have that in old files which used to 
work under mkii. I must admit I haven't had the need to use overprinting 
since then, but I do recall that come colour handling wasn't ported 
across to mkiv or later.


Thank you for the hint, but it doesn’t work, neither in \setupcolors nor 
in \definecolor.


Hraban

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] overprinting black

2022-11-09 Thread Duncan Hothersall via ntg-context
Have you tried overprint=yes? I have that in old files which used to work
under mkii. I must admit I haven't had the need to use overprinting since
then, but I do recall that come colour handling wasn't ported across to
mkiv or later.

Duncan

On Wed, 9 Nov 2022 at 16:12, Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> I’m not sure if this ever worked, but at least in latest LMTX it doesn’t:
>
> """
> \setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint]
>
> \starttext
>
> \framed[
>background=color,
>backgroundcolor=yellow,
> ]{\ss\bfd
>Black should always overprint.
> }
>
> \stoptext
> """
>
> The black text and frame border don’t overprint the yellow background
> but knockout. The only way to check this (that I know of) is Acrobat
> Pro’s separation simulation; the screenshot shows a snippet of the
> yellow separation.
>
> Actually, setting “overprint” for all colors doesn’t make sense, it
> should be a setting for single color (but default for black):
>
> % desired interface:
> \definecolor[overBlack][k=1,intent=overprint]
>
> Hraban
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Overprinting

2012-02-25 Thread Jan Heinen
I have tried every combination of Luigis solution and get 
Black text do not overprint (german: schwarzer Text wird 
nicht überdruckt) for every page of the example for the 
following code in the Preflight of Acrobat:
Here is an online version of the Preflight: 
http://www.gronenberg.de/werkzeuge/pdf-online-check/upload.html


Here my code:



%%% overprint.tex
\nopdfcompression
\setupcolors[state=start,rgb=no,cmyk=yes,overprint=yes]
%% to be sure
\definecolor[CYAN][c=1.0,m=0,y=0,k=0]
\definecolor[MAGENTA][c=0,m=1,y=0,k=0]
\definecolor[YELLOW][c=0,m=0,y=1,k=0]
\starttext

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint \\ 
\startcolorintent[knockout]{knockout}\stopcolorintent}%


\stopcolorintent

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{knockout\\
\startcolorintent[overprint]{overprint}\stopcolorintent}%
}%END


\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint \\ 
\startcolorintent[knockout]{knockout}\stopcolorintent}%


\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{\startcolorintent[knockout]{knockout}\stopcolorintent}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{knockout\\
\startcolorintent[overprint]{overprint}\stopcolorintent}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{knockout}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{\startcolorintent[overprint]{overprint}\stopcolorintent}%

\page

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint \\ 
\startcolorintent[knockout]{knockout}\stopcolorintent}%


\stopcolorintent
}

\page

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint}%

\stopcolorintent
}

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{\startcolorintent[knockout]{knockout}\stopcolorintent}%

\stopcolorintent
}


\stoptext





Regards
Jannis

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Overprinting

2012-02-24 Thread Jan Heinen
I got an answer from my printer to the example I have shown 
in this thread:


 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


His answer in german:
Die Texte, welche auf Kasten 2  stehen, sind innerhalb 
Ihrer erzeugten Datei zwar alle überdruckend eingestellt, 
visuell allerdings aussparend.


My translation:
The text on box 2 is formated as overprinted but visualy 
spared out.


What the hell is going on?

Regards
Jannis


On Wed, Feb 22, 2012 at 11:59 PM, Jan Heinen 
jahei...@gmx.de wrote:
 I again must come to this point. At the end of this week 
I want to give my

 book (pdf) to the printer to print.
 But he says: Your texts are not overprinted over colored 
areas.


 What do I have to do?



 The company who prints my books says that my text
 is not overprinted over the framed boxes.
 They do a preflight with Adobe.

 I think, I made no mistake - what do you think?
 I hope it is not a missing  \par?


 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]
  {1 Overprinted or not?}

 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[knockout]3 Overprinted or 
not?\stopcolorintent}


 \stoptext


 Regards
 Jannis



 
___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 
___


 Have you seen if this is ok ?
 http://www.pragma-ade.com/general/magazines/mag-0006.pdf
 (Use AdobeReader under linux with overprint enable)

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Overprinting

2012-02-24 Thread luigi scarso
On Fri, Feb 24, 2012 at 10:39 AM, Jan Heinen jahei...@gmx.de wrote:
 I got an answer from my printer to the example I have shown in this thread:


 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[overprint]2 Overprinted or not?\stopcolorintent}

 His answer in german:
 Die Texte, welche auf Kasten 2  stehen, sind innerhalb Ihrer erzeugten
 Datei zwar alle überdruckend eingestellt, visuell allerdings aussparend.

 My translation:
 The text on box 2 is formated as overprinted but visualy spared out.

 What the hell is going on?

 Regards
 Jannis

%%% overprint.tex
\nopdfcompression
\setupcolors[state=start,rgb=no,cmyk=yes,overprint=yes]
%% to be sure
\definecolor[CYAN][c=1.0,m=0,y=0,k=0]
\definecolor[MAGENTA][c=0,m=1,y=0,k=0]
\definecolor[YELLOW][c=0,m=0,y=1,k=0]
\starttext
\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]
\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint \\ \startcolorintent[knockout]{knockout}\stopcolorintent}%
\stopcolorintent
\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{knockout\\
\startcolorintent[overprint]{overprint}\stopcolorintent}%
}%END
\stoptext


$gs -sDEVICE=tiffsep -dNOPAUSE -sOutputFile=z.tiff  overprint.pdf  -c quit

Then study z.tiff, z.tiff.Cyan.tif,...z.tiff.Black.tif  with use gimp.


-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Overprinting

2012-02-23 Thread luigi scarso
On Wed, Feb 22, 2012 at 11:59 PM, Jan Heinen jahei...@gmx.de wrote:
 I again must come to this point. At the end of this week I want to give my
 book (pdf) to the printer to print.
 But he says: Your texts are not overprinted over colored areas.

 What do I have to do?



 The company who prints my books says that my text
 is not overprinted over the framed boxes.
 They do a preflight with Adobe.

 I think, I made no mistake - what do you think?
 I hope it is not a missing  \par?


 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]
  {1 Overprinted or not?}

 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[overprint]2 Overprinted or not?\stopcolorintent}

 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[knockout]3 Overprinted or not?\stopcolorintent}

 \stoptext


 Regards
 Jannis



 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___

Have you seen if this is ok ?
http://www.pragma-ade.com/general/magazines/mag-0006.pdf
(Use AdobeReader under linux with overprint enable)

-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Overprinting

2012-02-22 Thread Jan Heinen
I again must come to this point. At the end of this week I 
want to give my book (pdf) to the printer to print.

But he says: Your texts are not overprinted over colored areas.

What do I have to do?



The company who prints my books says that my text
is not overprinted over the framed boxes.
They do a preflight with Adobe.

I think, I made no mistake - what do you think?
I hope it is not a missing  \par?


\setupcolors[state=start,rgb=no,cmyk=yes]
\definecolor[myc] [c=.40, m=.10, y=.50, k=0]
\starttext
\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {1 Overprinted or not?}

\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]

{\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]

{\startcolorintent[knockout]3 Overprinted or 
not?\stopcolorintent}


\stoptext


Regards
Jannis



___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Overprinting

2012-01-07 Thread Jan Heinen

Here the results of my question:

I asked my print-service, if the pdf I generated with the 
code (look at the end of this email), is ok.

The text in the second frame should be overprinted.

The answer of the printer:

in the preflight he can see the overprinting,
in the print-preview he can't.
He was astonished - because he never had the difference 
between print-preview and preflight before.

He is using Adobe Acrobat 10.

Hope this information helps others to be cautious -
an maybe someone can tell what's to do.

Regards
Jannis




 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {1 Overprinted or not?}

 \blank[big]

 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[overprint]2 Overprinted or not?\stopcolorintent}

 \blank[big]

 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[knockout]3 Overprinted or not?\stopcolorintent}




 \stoptext



Regards
Jannis

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Overprinting

2012-01-06 Thread Peter Rolf
Am 06.01.2012 16:54, schrieb Jan Heinen:
 The company who prints my books says that my text
 is not overprinted over the framed boxes.
 They do a preflight with Adobe.
 
 I think, I made no mistake - what do you think?

hard to say without seeing your sources :-)

 I hope it is not a missing  \par?

probably not



your example works as expected here (tested with 08.11.2011 and 02.01.2012).

1 knockout (default)
2 overprinting
3 knockout (explicitly set)

as long as you use the second form, there shouldn't be a problem.


best wishes, peter

 
 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {1 Overprinted or not?}
 
 \blank[big]
 
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[overprint]2 Overprinted or not?\stopcolorintent}
 
 \blank[big]
 
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[knockout]3 Overprinted or not?\stopcolorintent}
 
 \stoptext
 
 
 Regards
 Jannis
 
 ___
 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting backgrounds

2009-12-12 Thread Oliver Heins
Hi Martin,

Martin Schröder mar...@oneiros.de writes:

 Am 11. Dezember 2009 18:48 schrieb Oliver Heins o...@sopos.org:
 schön von dir zu hören :).  Ich hoffe, dir geht es gut!

 Yep. Und nächstes Jahr komme ich auch mal nach Hannover. :-)

Und ich vielleicht nach Dortmund, schließlich ist da Tagung :)

 It's typical for printing houses to set 100% black to overprint in the
 preprint workflow (can also be done with Acrobat).

 Das heißt, dass die Druckerei schwarzen Text, der in meinem PDF auf
 Knockout steht, noch auf Overprint umschalten kann?

 Sollte sie, weil das ist eine ganz normale Anforderung: Schwarzer Text
 soll überdrucken. Das geht auch im Acrobat (Preflight und dann in den
 Profilen suchen).

Hab ich jetzt gefunden, danke.  War hilfreich, um das Problem zu
verstehen.

 Mein Problem ist, dass die Druckerei anmeckert, dass ein Bereich mit
 schwarzem Text vor einem Hintergrundbild eben nicht auf Überdrucken
 gestellt ist.  Was aber eben nur halb wahr ist: Der Bereich ist sehr
 wohl auf Überdrucken gestellt (kann man im Acrobat unter
 Ausgabevorschau-Vorschau-Farbwarnungen-Überdrucken_anzeigen sehen
 kann), gleichwohl wird schwarzer Text (und nur schwarzer! andere Farben
 werden korrekt separiert!), wenn man die schwarze Farbe in der Vorschau
 entfernt, regelrecht aus dem Hintergrundbild herausgeschnitten:
 http://www.sopos.org/olli/overprinting.jpg

 403 :-(

Wenn man's nicht jedesmal überprüft... scp erhält offensichtlich die
Dateirechte, und die waren auf 0600 gesetzt :(  Jetzt sollte es
funktionieren.

Das Problem scheint allerdings gelöst: ein Fehler in der Anzeige des
Acrobat im Zusammenhang mit der /DeviceGray-Farbpalette.  Wenn man
cmyk-Schwarz benutzt oder das Dokument dahin konvertiert, geht alles.
:-)

 Ich bin Montag wieder am Arbeitsplatz und habe dann Zugriff auf einen
 Acrobat.

Ich sende dir Montag mal einen Link zur aktuellen Version der Broschüre.
Wäre toll, wenn du kurz einen Blick drauf werfen könntest, ob dir etwas
auffällt.  Im Prepress-Bereich bin ich blutiger Anfänger :(

Herzlichen Gruß,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting backgrounds

2009-12-11 Thread Oliver Heins
Peter Rolf indi...@gmx.net writes:

 Oliver Heins schrieb:
 I have another question.

 The print shop wants the background image to be overprinted.  Is it
 sufficiant to set »overprint=yes« once in \setupcolors or does one need
 to explicitely tell the region with \startoverprint ... \stopoverprint?

   
 simply use \startoverprint ... \stopoverprint for the text
 regions. you may need to add \startknockout ... \stopknockout for
 picture elements in that region. the overprint=yes option is for
 document wide setting, so this is not what you want.
 anyhow, if you own a copy of acrobat, you can visualize the
 overprinted elements in the output preview (color warnings).

I managed to get a copy of acrobat.  Now I understand the benefits and
risks of overprinting.  Thank you for pointing out!

Best regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting backgrounds

2009-12-11 Thread Martin Schröder
2009/12/11 Oliver Heins o...@sopos.org:
 I managed to get a copy of acrobat.  Now I understand the benefits and
 risks of overprinting.  Thank you for pointing out!

It's typical for printing houses to set 100% black to overprint in the
preprint workflow (can also be done with Acrobat).

Best
   Martin
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting backgrounds

2009-12-08 Thread Peter Rolf

Oliver Heins schrieb:

I have another question.

The print shop wants the background image to be overprinted.  Is it
sufficiant to set »overprint=yes« once in \setupcolors or does one need
to explicitely tell the region with \startoverprint ... \stopoverprint?

  
simply use \startoverprint ... \stopoverprint for the text regions. you 
may need to add \startknockout ... \stopknockout for picture elements in 
that region. the overprint=yes option is for document wide setting, so 
this is not what you want.
anyhow, if you own a copy of acrobat, you can visualize the overprinted 
elements in the output preview (color warnings).


Peter


A minimal example:

% \startminimalexample
\setupcolors[state=start,cmyk=yes,rgb=no,overprint=yes]

\definelayer[mybg]
[x=0mm, y=0mm,
width=\paperwidth, height=\paperheight,
repeat=yes]
\setlayer   [mybg]
[hoffset=5cm, voffset=7cm]
{\externalfigure[sample/hacker.jpg][max]}
\setupbackgrounds[page][background=mybg]

\starttext

Is this sufficiant for overprinting?

\dorecurse{4}{\input tufte\par}

\page

\startoverprint
Or does one need to explicitely tell context the region?

\dorecurse{4}{\input tufte\par}
\stopoverprint

\stoptext
%\stopminimalexample

Thanks again,
 olli

  


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-16 Thread Peter Rolf

Hi Hans, hi all,

I use overprinting only for the texts  (not global). Most times the 
texts are stored in a \[h|v]box first, before they are added to the rest 
(offsets, background, whatever). So thinks look like this (very simplified):


\setbox\Textbox\hbox{\startoverprint Some text.\stopoverprint}

Overprinting should be activated only inside of this box. Sadly mkiv 
adds this attribute to most of the graphics with text. The first 
graphics is always OK, but the following graphics are overprinted as a 
whole.


I have compared the pdf of pdftex and luatex and the main difference is, 
that luatex 'optimizes' the overprinted texts by *grouping* them. 
Instead of two or more independent areas (one /GSoverprint ... 
/GSknockout for every text), like in mkii,


% pdftex
%
/GSoverprint gs % text 1
BT
/Fm?? first overprinted text
...
/GSknockout gs

/GSoverprint gs % text 2
BT
/Fm?? second overprinted text
...
/GSknockout gs
%


I get

% luatex
%
/GSoverprint gs % text 1 and 2
BT
/Fm?? first overprinted text
...
/Fm?? second overprinted text
...
/GSknockout gs
%


This is right from the point of overprinting, but the texts are still 
part of different graphics (rendering is done at different times). I 
guess this somehow corrupts the grouping. The first graphic in such a 
group is always OK, all following graphics are overprinted as a whole. I 
have tested this with more than two graphics (resulting in two multiple 
groups) and I get the same effect.


No minimal yet. Any thoughts?

Best wishes,  Peter



Hans Hagen schrieb:

Peter Rolf wrote:

Hans Hagen schrieb:

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. 
a complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then



mh, isn't \stopoverprint enabling knockout automatically?
or do i need a \ExtGState entry with knockout at the document level?
just started reading in the pdf reference manual...


it depends ... we have none: no entry at all, knockout: some nil 
entry, overprint: special entry


the thing is that when we have globally overprint on, we need s local 
knockout :


\startoverprint
  ... \bgroup ...
  \startknockout
...
  \stopknockout
  ... \egroup ...
\stopoverprint

is nicer than

\startoverprint
  ... \bgroup ...
  \stopoverprint
...
  \startoverprint
  ... \egroup ...
\stopoverprint

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___ 

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 






___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-15 Thread Hans Hagen

Peter Rolf wrote:

overprinting is broken here. I used \dostartoverprint in the 
past, but this no longer works. What is the recommended way for 
overprinted text nowadays?


(in mkiv) i redid overprints

- it's now no longer a property but just a color feature

- the name chanegd to 'intent'

- we now have \setupcolors[intent=none|overprint|knockout]; once set to
!= none it stays that way (global)

- \startcolorintent[overprint|knockout] .. \stopcolorintent

- the \startoverprint command is still there for backward compatibility

in mkii i didn't change the mechanism, just the 'intent' key

as this is s specialized feature i don't care too much about compatibility

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-15 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

overprinting is broken here. I used \dostartoverprint in the 
past, but this no longer works. What is the recommended way 
for overprinted text nowadays?


(in mkiv) i redid overprints


many thanks!


- it's now no longer a property but just a color feature


makes sense


- the name chanegd to 'intent'

- we now have \setupcolors[intent=none|overprint|knockout]; once set to
!= none it stays that way (global)

- \startcolorintent[overprint|knockout] .. \stopcolorintent

- the \startoverprint command is still there for backward compatibility

in mkii i didn't change the mechanism, just the 'intent' key

as this is s specialized feature i don't care too much about 
compatibility


first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___ 

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 






___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-15 Thread Hans Hagen

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-15 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then



mh, isn't \stopoverprint enabling knockout automatically?
or do i need a \ExtGState entry with knockout at the document level?
just started reading in the pdf reference manual...


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___ 

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 





___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-15 Thread Hans Hagen

Peter Rolf wrote:

Hans Hagen schrieb:

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then



mh, isn't \stopoverprint enabling knockout automatically?
or do i need a \ExtGState entry with knockout at the document level?
just started reading in the pdf reference manual...


it depends ... we have none: no entry at all, knockout: some nil entry, 
overprint: special entry


the thing is that when we have globally overprint on, we need s local 
knockout :


\startoverprint
  ... \bgroup ...
  \startknockout
...
  \stopknockout
  ... \egroup ...
\stopoverprint

is nicer than

\startoverprint
  ... \bgroup ...
  \stopoverprint
...
  \startoverprint
  ... \egroup ...
\stopoverprint

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-13 Thread Hans Hagen

Peter Rolf wrote:

Hi,

overprinting is broken here. I used \dostartoverprint in the past, but 
this no longer works. What is the recommended way for overprinted text 
nowadays?


just \startoverprint Overprint \stopoverprint


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-13 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

Hi,

overprinting is broken here. I used \dostartoverprint in the past, 
but this no longer works. What is the recommended way for overprinted 
text nowadays?


just \startoverprint Overprint \stopoverprint

I see. A quick test shows, that this macro is not working with mkii (an 
updated example is attached).
Sadly this macro also does not work in my graphics, if I simply exchange 
\dostartoverprint with \startoverprint (regardless of the mark).





-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___ 

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 





\ifnum\contextmarkmode=4
\def\dostartoverprint% yes... one of the category 'asking for trouble' :D
  {\ctxlua{overprints.enabled=true}}
\def\dostopoverprint%
  {\ctxlua{overprints.enabled=false}}
\fi

\starttext

\starttextoverprint starttextoverprint \stoptextoverprint % fails in both marks
\dostartoverprint dostartoverprint \dostopoverprint % fails in mkiv only
\startoverprint overprint \stopoverprint % fails in mkii only

\stoptext
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overprinting

2009-09-13 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

Hans Hagen schrieb:

Peter Rolf wrote:

Hi,

overprinting is broken here. I used \dostartoverprint in the past, 
but this no longer works. What is the recommended way for 
overprinted text nowadays?


just \startoverprint Overprint \stopoverprint

I see. A quick test shows, that this macro is not working with mkii 
(an updated example is attached).
Sadly this macro also does not work in my graphics, if I simply 
exchange \dostartoverprint with \startoverprint (regardless of the 
mark).


you need to enable it with \setupcolors[overprint=yes]

I tried that one before, but it enables kind of global overprinting in 
mkii (all but \startoverprinting, including the mp graphic). In case of 
mkiv this breaks the \startoverprinting macro (so no overprinting at 
all). I attached a new example.


btw, your mkiv definitions do nothing (just toggle some flag) and the 
\dodriverthing's are gone anyway



Ok, then I must find a new working overprinting macro for my texts.


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___ 

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 





\setupcolors[overprint=yes]

\ifnum\contextmarkmode=4
\def\dostartoverprint% yes... one of the category 'asking for trouble' :D
  {\ctxlua{overprints.enabled=true}}
\def\dostopoverprint%
  {\ctxlua{overprints.enabled=false}}
\fi

\starttext

\startMPcode
   fill unitcircle scaled 5cm;
\stopMPcode

\starttextoverprint starttextoverprint \stoptextoverprint % fails in both marks
\dostartoverprint dostartoverprint \dostopoverprint % fails in mkiv only
\startoverprint overprint \stopoverprint % fails in mkii only

\stoptext
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___