ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with overlay
@ 2007-01-26 18:48 The Wizard
  2007-01-26 19:08 ` Aditya Mahajan
  2007-01-26 19:25 ` Sanjoy Mahajan
  0 siblings, 2 replies; 4+ messages in thread
From: The Wizard @ 2007-01-26 18:48 UTC (permalink / raw)
  To: ntg-context

All -
    I just upgraded  ConTeX

ctxtools --contextversion
CtxTools | context version: 2007.01.23 13:32 
(/usr/local/teTeX/share/texmf-local/tex/context/base/context.tex)
CtxTools | context version: 2007.01.23 13:32 
(/usr/local/teTeX/share/texmf-local/tex/context/base/cont-new.tex)

on a tetex3.0 base, after having upgraded to pdftex1.40

TeXExec | current distribution: web2c
TeXExec | context source date: 2007.01.23 13:32
TeXExec | format path: . /home/markea/.texmf-config/web2c 
/home/markea/.texmf-var/web2c /home/markea/texmf/web2c 
/usr/local/teTeX/share/texmf-config/web2c 
/usr/local/teTeX/share/texmf-var/web2c 
/usr/local/teTeX/share/texmf/web2c 
/usr/local/teTeX/share/texmf-local/web2c 
/usr/local/teTeX/share/texmf-dist/web2c
TeXExec | start of analysis
TeXExec | processing document 'texexec'
TeXExec | tex processing method: context
TeXExec | writing option file texexec.top
TeXExec | using randomseed 1108
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeX, Version 3.141592-1.40.1 (Web2C 7.5.6)
 (/usr/local/teTeX/share/texmf-local/web2c/natural.tcx)
entering extended mode
(./texexec.tex
.
.
.
Output written on texexec.pdf (1 page, 21613 bytes).
Transcript written on texexec.log.
TeXExec | runtime: 0.230516
TeXExec | end of analysis
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfTeX Version 3.141592-1.40.1 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.1.26 int: 
english/english
TeXExec |
TeXExec | testing interface nl
TeXExec | pdfTeX Version 3.141592-1.40.1 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.1.26 int: dutch/dutch
TeXExec |
TeXExec | testing interface en
TeXExec | pdfTeX Version 3.141592-1.40.1 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.1.26 int: 
english/english
TeXExec |
TeXExec | testing interface nl
TeXExec | pdfTeX Version 3.141592-1.40.1 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.1.26 int: dutch/dutch


Most of my old documents seem to be fine, but I have a problem with an 
overlay I normally use to create a "DRAFT" watermark on pages. Here is 
the definition of the overlay

%% Create "Draft" watermark for later use
\doifmode{draft}{
%% Put a "DRAFT" watermark in
    \defineoverlay[Draft][{\blue
        \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
    \setupbackgrounds[page][background=Draft]
%% End watermark
}

And I normally invoke it by

\enablemode[Draft]

in my document frontpart. However, with the new version of ConTeX I get 
errors as soon as I enable it:

merlin:/home/.../TestDoc 110> texmfstart texexec --pdf test-doc
TeXExec | processing document 'test-doc'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file test-doc.top
TeXExec | using randomseed 29
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeX, Version 3.141592-1.40.1 (Web2C 7.5.6)
 (/usr/local/teTeX/share/texmf-local/web2c/natural.tcx)
entering extended mode
(./test-doc.tex

ConTeXt  ver: 2007.01.23 13:32 MKII  fmt: 2007.1.26  int: english/english

language        : language en is active
system          : cont-new loaded
(/usr/local/teTeX/share/texmf-local/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/usr/local/teTeX/share/texmf-local/tex/context/base/cont-new.mkii))
system          : cont-old loaded
(/usr/local/teTeX/share/texmf-local/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/usr/local/teTeX/share/texmf-local/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys loaded
(/usr/local/teTeX/share/texmf-local/tex/context/user/cont-sys.tex
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns nl->texnansi:texnansi->1->2:3 
nl->ec:ec->2->2:3 fr->
texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 
de->texnansi:texnansi->5->2:3 de->e
c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 
pt->texnansi:texna
nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 
pl->ec:e
c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 
sk->il2:i
l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 ru->t2a:t2a->21->2:3 
en->ec:e
c->22->2:3 uk->ec:ec->23->2:3 us->ec:ec->24->2:3 agr->agr:agr->25->2:3 
da->ec:e
c->26->2:3 sv->ec:ec->27->2:3 af->ec:ec->28->2:3 no->ec:ec->29->2:3 
deo->ec:ec-
>30->2:3 es->ec:ec->31->2:3 ca->ec:ec->32->2:3 la->ec:ec->33->2:3 
ro->ec:ec->34
->2:3 tr->ec:ec->35->2:3 fi->ec:ec->37->2:3 hu->ec:ec->38->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : test-doc.top loaded
(./test-doc.top
specials        : loading definition file tpd
(/usr/local/teTeX/share/texmf-local/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(/usr/local/teTeX/share/texmf-local/tex/context/base/spec-fdf.tex
(/usr/local/teTeX/share/texmf-local/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
systems         : system commands are disabled
(/usr/local/teTeX/share/texmf-local/tex/context/base/sort-def.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/sort-lan.tex)
(/usr/local/teTeX/share/texmf-local/tex/context/base/pdfr-def.tex)
systems         : begin file test-doc at line 16
systems         : begin file sun-project-doc at line 25
(/usr/local/teTeX/share/texmf-local/tex/sun-project-doc.tex
(/usr/local/teTeX/share/texmf-local/tex/context/base/type-pre.tex)
interaction     : active
color           : mpcmyk color space is supported
color           : mpspot color space is supported
color           : system rgb is global activated
{/usr/local/teTeX/share/texmf-local/fonts/map/pdftex/context/original-empty.map
}{/usr/local/teTeX/share/texmf-local/fonts/map/pdftex/context/texnansi-public-l
m.map}{/usr/local/teTeX/share/texmf-local/fonts/map/pdftex/context/original-bas
e.map}{/usr/local/teTeX/share/texmf-local/fonts/map/pdftex/context/ec-public-lm
.map}{/usr/local/teTeX/share/texmf-local/fonts/map/pdftex/context/ec-base.map}{
/usr/local/teTeX/share/texmf/fonts/map/dvips/lm/lm-ec.map}{/usr/local/teTeX/sha
re/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/teTeX/share/texmf-local/fon
ts/map/pdftex/context/texnansi-base.map}{/usr/local/teTeX/share/texmf-local/fon
ts/map/pdftex/context/original-ams-base.map}{/usr/local/teTeX/share/texmf-local
/fonts/map/pdftex/context/original-public-lm.map}
system          : chapter,section,subsection,subsubsection not 
found/processed
system          : chapter,section,subsection,subsubsection not 
found/processed
)
systems         : end file sun-project-doc at line 25
systems         : begin file test-document at line 27
(./test-document.tex
systems         : begin file frontpart at line 20
(./frontpart.tex 
</usr/local/teTeX/share/texmf-local/tex/wp_cover_art_blue.pdf

pdfTeX warning: pdftex (file 
/usr/local/teTeX/share/texmf-local/tex/wp_cover_ar
t_blue.pdf): PDF inclusion: Page Group detected which pdfTeX can't 
handle. Igno
ring it.
>
figures         : dimensions of wp_cover_art_blue.pdf are determined 
externally

 <./customer-logo.pdf>
figures         : dimensions of customer-logo.pdf are determined externally
 </usr/local/teTeX/share/texmf-local/tex/Sun_logo_blk.pdf>
figures         : dimensions of Sun_logo_blk.pdf are determined externally
! Arithmetic overflow.
<recently read> \scaleboxscay

\convertscaleboxinsertscale ...ly \scratchdimen #3
                                                  \relax \fi 
\scratchdimen -...

\dodoscaleboxcalculations ... \scaleboxscay \scay
                                                  \xdef 
\finalscaleboxwidth ...

\doscaleboxcalculations ...doscaleboxcalculations
                                                  \fi \fi \fi
\dodoscalenextbox ...lain \doscaleboxcalculations
                                                  \doscaleboxindeed 
\flushne...

\dodowithnextbox ->\dodoscalenextbox {\??xy }
                                             \egroup
...
l.40 \setups[titlepage]


I can eliminate the error by turning off the watermark, but I do still 
need to be able to have the watermark during document revisions. I can't 
seem to figure out what is causing the error; can anyone offer 
suggestions/alternatives/fixes?

Mark Almeida

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with overlay
  2007-01-26 18:48 Problem with overlay The Wizard
@ 2007-01-26 19:08 ` Aditya Mahajan
  2007-01-26 22:03   ` The Wizard
  2007-01-26 19:25 ` Sanjoy Mahajan
  1 sibling, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2007-01-26 19:08 UTC (permalink / raw)
  To: Mark.Almeida, mailing list for ConTeXt users

On Fri, 26 Jan 2007, The Wizard wrote:
> Most of my old documents seem to be fine, but I have a problem with an
> overlay I normally use to create a "DRAFT" watermark on pages. Here is
> the definition of the overlay
>
> %% Create "Draft" watermark for later use
> \doifmode{draft}{
> %% Put a "DRAFT" watermark in
>    \defineoverlay[Draft][{\blue
>        \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
>    \setupbackgrounds[page][background=Draft]
> %% End watermark
> }
>
> And I normally invoke it by
>
> \enablemode[Draft]

\setupcolors[state=start]
\defineoverlay[Draft][{\blue
      \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
\starttext
\input knuth
\stoptext

works fine here. I am using

ConTeXt  ver: 2007.01.23 13:32 MKII

Aditya

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with overlay
  2007-01-26 18:48 Problem with overlay The Wizard
  2007-01-26 19:08 ` Aditya Mahajan
@ 2007-01-26 19:25 ` Sanjoy Mahajan
  1 sibling, 0 replies; 4+ messages in thread
From: Sanjoy Mahajan @ 2007-01-26 19:25 UTC (permalink / raw)
  To: Mark.Almeida, mailing list for ConTeXt users

> ! Arithmetic overflow.
> <recently read> \scaleboxscay

In the external pdf files, is a bounding boxes present and correct
(try "pdfinfo -box file.pdf")?  It's just my wild guess, but maybe
somewhere the context code is dividing by 0 because a dimension is
missing?

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with overlay
  2007-01-26 19:08 ` Aditya Mahajan
@ 2007-01-26 22:03   ` The Wizard
  0 siblings, 0 replies; 4+ messages in thread
From: The Wizard @ 2007-01-26 22:03 UTC (permalink / raw)
  To: Aditya Mahajan; +Cc: mailing list for ConTeXt users

Aditya Mahajan wrote:
> On Fri, 26 Jan 2007, The Wizard wrote:
>   
>> Most of my old documents seem to be fine, but I have a problem with an
>> overlay I normally use to create a "DRAFT" watermark on pages. Here is
>> the definition of the overlay
>>
>> %% Create "Draft" watermark for later use
>> \doifmode{draft}{
>> %% Put a "DRAFT" watermark in
>>    \defineoverlay[Draft][{\blue
>>        \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
>>    \setupbackgrounds[page][background=Draft]
>> %% End watermark
>> }
>>
>> And I normally invoke it by
>>
>> \enablemode[Draft]
>>     
>
> \setupcolors[state=start]
> \defineoverlay[Draft][{\blue
>       \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
> \setupbackgrounds[page][background=Draft]
> \starttext
> \input knuth
> \stoptext
>
> works fine here. I am using
>
> ConTeXt  ver: 2007.01.23 13:32 MKII
>
> Aditya
>   
All -
    Well, I found that if I change the "scale" from [factor=max] to 
[sx=<number>,sy=<number>], it would work again. Thanks for the 
suggestions. The problem seems to be related to trying to figure out the 
size to match "max" to, although [factor=fit] failed as well.


Mark Almeida

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-26 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-26 18:48 Problem with overlay The Wizard
2007-01-26 19:08 ` Aditya Mahajan
2007-01-26 22:03   ` The Wizard
2007-01-26 19:25 ` Sanjoy Mahajan

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).