ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Patrick Gundlach <pg@levana.de>
Subject: Re: none
Date: 24 Jun 2002 09:56:08 +0200	[thread overview]
Message-ID: <87bsa1t8iv.fsf@gundla.ch> (raw)
In-Reply-To: <200206231637.18550.ishamid@attbi.com>

Idris S Hamid <ishamid@attbi.com> writes:

> > > Is there a Context way of stamping a greyed <Draft> on each page of a
> > > document, like the TUG preprints?

> I can use pdfetex for this purpose. As for the metafun manual, I'm still 
> trying to finish the ConTeXt manual before getting into META!

Well, you don't have to get into META (which is a pity :), just copy
and paste a piece of code from section 6 "Page backgrounds" into your
file. Here are two different examples taken from the manual. So don't
blame me for any errors :)

% output=pdf 
\starttext
\startuniqueMPgraphic{concept} 
 draw btex \bf CONCEPT etex rotated 60 withcolor .8white ; 
 currentpicture := currentpicture ysized (\overlayheight-.5cm) ; 
 \stopuniqueMPgraphic 
\defineoverlay[concept][\uniqueMPgraphic{concept}]
\setupbackgrounds[page][background=concept]
\input tufte
\stoptext
\endinput

% output=pdf 
\starttext
\startuniqueMPgraphic{copyright} 
 picture p ; p := btex COPYRIGHT etex rotated 90 ; 
 setbounds p to boundingbox p enlarged 1pt ; 
 draw p withcolor .8white ; 
 xyscale_currentpicture(\the\leftmarginwidth,\the\textheight) ; 
 \stopuniqueMPgraphic 
 \setuptexttexts [margin] [] [\uniqueMPgraphic{copyright}]
\input tufte
\stoptext

I am not sure if you need a working metafun format for this. In case
you have not done this:

texexec --alone --make metafun 
and copy this file to texmf/web2c/metafun.mem

> > Patrick, (who does not like to prepare for his exam)
> 
> Idris (who is very grateful for Patrick's past help but does want to be blamed 
> when Patrick fails his exam:->)

OK, I hope I won't come back to you :) (Yes, I have read the other
message)

Patrick

-- 
I'll fade into the darkness


  parent reply	other threads:[~2002-06-24  7:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-23 16:30 (unknown) Idris S Hamid
2002-06-23 21:36 ` Hans Hagen
2002-06-23 21:41 ` none Patrick Gundlach
2002-06-23 22:37   ` none Idris S Hamid
2002-06-24  0:01     ` none Idris S Hamid
2002-06-24  7:56     ` Patrick Gundlach [this message]
2002-06-24  1:19   ` none John Culleton
2002-06-25 19:22     ` none 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=87bsa1t8iv.fsf@gundla.ch \
    --to=pg@levana.de \
    /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).