From: Hans van der Meer <hansm@science.uva.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: error in textbackground with metapost
Date: Wed, 18 Jul 2007 23:14:46 +0200 [thread overview]
Message-ID: <F3531D50-A7E3-438A-B85E-347D7D8747D7@science.uva.nl> (raw)
[-- 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
___________________________________________________________________________________
next reply other threads:[~2007-07-18 21:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-18 21:14 Hans van der Meer [this message]
2007-07-19 9:57 ` luigi scarso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F3531D50-A7E3-438A-B85E-347D7D8747D7@science.uva.nl \
--to=hansm@science.uva.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).