* error in textbackground with metapost
@ 2007-07-18 21:14 Hans van der Meer
2007-07-19 9:57 ` luigi scarso
0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2007-07-18 21:14 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 1923 bytes --]
There must be something badly amiss in the textbackground processing.
Below a small example demonstrating the problem.
When a block falls badly on a page boundary an error occurs as shown.
One may have to tweak the \blank[] in order to get the error
depending on local font settings etc.
In my case 0.78 shoved the second block to page 2 without an error
but from 0.79 onwards the error occurs. At 0.66 the block is split
after the third line, but at 0.68 again the error shows.
TeX complains as follows.
! Argument of \dodoubletestempty has an extra }.
<inserted text>
\par
<to be read again>
}
\doifnextcharelse ...token =#1\def \!!stringa {#2}
\def \!!stringb
{#3}\futur...
\doMPpositiongraphic ...ta {#1:}\setupMPvariables
[self=pbg:1,
mp=mpos:par:c...
\dodoublegroupempty #1->\def \dodogetargument ##
1{\def
\dodogetargument {\do...
\dohandleMPpositiongraphicrange ...ositiongraphic
{#3}{#4}\fi \fi
...
l.29 third line
?
Process aborted
========================================================================
===
% metapost based variable backgrounds
\setupcolors[state=start]
\definetextbackground[code][frame=off,location=paragraph,
backgroundcolor=cyan,color=red,backgroundoffset=0pt]
\definetyping[TEST]
\setuptyping[TEST][option=JV,
before={\bgroup\setupinterlinespace[line=3ex]%
\testpage[1]\starttextbackground[code]},
after={\stoptextbackground\egroup}]
\setupbodyfont[14pt]
\starttext
Testing textbackground\crlf
\startTEST
first line
second line
third line
fourth line
fifth line
\stopTEST
\blank[0.73\textheight]
\startTEST
first line
second line
third line
fourth line
fifth line
\stopTEST
\stoptext
Hans van der Meer
[-- Attachment #1.2: Type: text/html, Size: 4218 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: error in textbackground with metapost
2007-07-18 21:14 error in textbackground with metapost Hans van der Meer
@ 2007-07-19 9:57 ` luigi scarso
0 siblings, 0 replies; 2+ messages in thread
From: luigi scarso @ 2007-07-19 9:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 7/18/07, Hans van der Meer <hansm@science.uva.nl> wrote:
>
>
> There must be something badly amiss in the textbackground processing.
> Below a small example demonstrating the problem.
>
> When a block falls badly on a page boundary an error occurs as shown. One
> may have to tweak the \blank[] in order to get the error depending on local
> font settings etc.
>
> In my case 0.78 shoved the second block to page 2 without an error but from
> 0.79 onwards the error occurs. At 0.66 the block is split after the third
> line, but at 0.68 again the error shows.
hmm, strange.
Replacing \blank with \vrule make almost the same error ( with latest
pdftext and stable context)
I will give it a look.
--
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 : 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-19 9:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-18 21:14 error in textbackground with metapost Hans van der Meer
2007-07-19 9:57 ` luigi scarso
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).