ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Adam Duck <duck@informatik.uni-frankfurt.de>
Subject: Re: Problems with uniqueMPgraphic
Date: Sat, 18 Dec 2004 01:40:31 +0100	[thread overview]
Message-ID: <86u0qkmoao.fsf@oumu.localdomain> (raw)
In-Reply-To: <41C2BF7E.4070300@wxs.nl> (Hans Hagen's message of "Fri, 17 Dec 2004 12:14:06 +0100")

Hans Hagen <pragma@wxs.nl> writes:

[... stuff I didn't understand ...]

> alternative
>
> \startuniqueMPgraphic{underline}
>    numeric w,h; w := OverlayWidth; h := ExHeight/6;
>    path p; p := (0, -h)..(w/2,0 + (h/3 randomized h/3))..(w, -h);
>    draw p withpen pencircle scaled 1 withcolor OverlayColor ;
>    setbounds currentpicture to unitsquare xyscaled 
> (OverlayWidth,OverlayHeight); \stopuniqueMPgraphic
>
> \defineoverlay[underline][\uniqueMPgraphic{underline}]
>
> \def\aidul{\dosingleempty\doaidul}
> \def\doaidul[#1]{\inframed[background=underline,frame=off,#1]}
>
> \setupcolors[state=start]

Thanks for the fast response and the many lines you've written
(although I didn't understand everything).  The OverlayColor works
fine and as underlining is in the background, I'll take this aproach.

So, one last question remains: why doesn't this work?

\def\uli{backgroundcolor=peachpuff} \aidul[\uli]{test}

bye, Adam.

  reply	other threads:[~2004-12-18  0:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-16 15:51 Adam Duck
2004-12-17 10:49 ` Hans Hagen
2004-12-17 11:14   ` Hans Hagen
2004-12-18  0:40     ` Adam Duck [this message]
2004-12-18 22:35       ` h h extern

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=86u0qkmoao.fsf@oumu.localdomain \
    --to=duck@informatik.uni-frankfurt.de \
    --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).