variables for /bop-hook
Hi,
I'm trying to write a PS special to include "Proof" on every page within latex. I used to do it via userdict and /bop-hook
Everything was fine but now I need to prepend a few DVI pages before the original documents but they has to be without "Proof" mark.
And I have a problem because after making PS from that concatenated DVI I see "Proof" in every page. So now I want to write
a condition with "/showproof where {} if" to assigning it from the page where "Proof" needs to start. Here how my code looks:
\special{ps: /showproof true def}
\special{%
!userdict
begin
/bop-hook{
/showproof where
{
gsave
% ... some code for positioning this text
(Proof) show
grestore
}
if
} def
end}
I don't get any "Proof" and if I change "\special{ps:..}" to "\special{!...}" I get to every page.
Could anybody explain how to set some variables in middle of document that I could check them inside /bop-hook
