ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Braslau <alan.braslau@cea.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Textbackgrounds
Date: Mon, 7 Nov 2011 14:59:03 +0100	[thread overview]
Message-ID: <20111107135903.GC89076@iram-ha-003840.extra.cea.fr> (raw)
In-Reply-To: <89749136-005F-4B77-AC1A-C89565A5FE47@rz-online.de>

On Thu, Jul 22, 2010 at 08:34:19PM +0200, Andreas Harder wrote:
> 
> Am 22.07.2010 um 16:37 schrieb Hans Hagen:
> 
> > On 22-7-2010 3:50, Andreas Harder wrote:
> >> \definetextbackground
> >>   [test]
> >>   [location=paragraph,
> >>    % frame=off,  % ->  no round corners anymore
> >>    corner=round, % ->  corner=1|2|3… would be nice
> >>    leftoffset=.5\bodyfontsize,
> >>    rightoffset=.5\bodyfontsize,
> >>    topoffset=.5\bodyfontsize,
> >>    bottomoffset=.5\bodyfontsize]
> >> 
> >> \setuphead
> >>   [subject]
> >>   [after=,
> >>    command=\MyHead]
> >> 
> >> \def\MyHead#1#2%
> >>   {\framed
> >>     [background=color,
> >>      backgroundcolor=gray,
> >>      frame=off,
> >>      offset=.5\bodyfontsize,
> >>      corner=3]{#1#2}}
> >> 
> >> \starttext
> >> \subject{Test}
> >> \starttest
> >>   \input tufte
> >> \stoptest
> >> \stoptext
> >> 
> > \setuphead
> >  [subject]
> >  [after=\nointerlineskip,
> >   command=\MyHead]
> 
> Thank you Hans, that killed the space.
> 
> Greeting,
> 	Andreas

Something is now broken with textbackgrounds :

metapost        > loading 'metafun': /usr/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv
! terminal: ! Enormous number has been reduced.
<*> ...6.0pt ;  ;   ; prepare_multi_pars(1,4661756
                                                  ,37662495,0,683329,265737,...

...

 1 >>  \definetextbackground
 2       [test]
 3       [location=paragraph,
 4        frame=off,
 5        leftoffset=.5\bodyfontsize,
 6        rightoffset=.5\bodyfontsize,
 7        topoffset=.5\bodyfontsize,
 8        bottomoffset=.5\bodyfontsize]
 9     
10     \starttext
11     

<inserted text> ...ainTextArea; ;;;;]===], false)}
                                                  
\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                  \egroup \placeMPgraphic \d...
\useMPpositiongraphic ...tartMPcode #3\stopMPcode 
                                                  \egroup 
\doMPpositiongraphic ...riables \getvalue {MPG:#1}
                                                  }
\doMPpositiongraphic ...fined {MPG:#1}\donothing }
                                                  \removelastspace }\smashbo...
\dohandleMPpositiongraphicrange ...raphic {#3}{#4}
                                                  \fi \fi 
...
l.17 \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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2011-11-07 13:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 13:50 Textbackgrounds Andreas Harder
2010-07-22 14:37 ` Textbackgrounds Hans Hagen
2010-07-22 18:34   ` Textbackgrounds Andreas Harder
2011-11-07 13:59     ` Alan Braslau [this message]
2011-11-07 15:58       ` Textbackgrounds Hans Hagen
2011-11-15 14:40         ` Textbackgrounds Alan Braslau
2011-11-17  8:20           ` Textbackgrounds Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2003-03-27 11:33 textbackgrounds Patrick Gundlach
2003-03-27 17:51 ` textbackgrounds Hans Hagen

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=20111107135903.GC89076@iram-ha-003840.extra.cea.fr \
    --to=alan.braslau@cea.fr \
    --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).