Thanks anyway. \getmarking works fine, interesting

On 4/26/07, Zhichu Chen <[EMAIL PROTECTED]> wrote:

Hi, everybody

I want to use my titles as water marks. I've tried this small test file:
=================================

\setupcolors[state=start]
\setuppagenumbering[location=]

\setMPtext{titleentry}{xxx}

\setuphead
  [title]
  [textcommand=\TITLE,
   page=right,
   before=,
   after=\blank,
   inbetween=,
   header=,
   textstyle=,
   style=]

\def\TITLE#1%
  {#1\setMPtext{titleentry}{#1}}

\setupbackgrounds
   [page]
   [background=page]

\defineoverlay[page] [\useMPgraphic{page}]

\startuseMPgraphic{page}
  StartPage;
    save r;
    picture r;
    r := textext.rt(\MPstring{titleentry});
    r := r shifted (.5Hsize[Text],.5Vsize[Text]);
    draw r withcolor darkred;
  StopPage;
\stopuseMPgraphic

\starttext

\title{Some Title}

Some texts.

\page[yes]

Some texts.

\stoptext
=================================
It seems it did not get the correct parameter. So I guess the \setMPtext
inside \TITLE was not executed when the page was created. I also want to get
chapter titles as water marks as well. What can I do?

Thank you.

--
Best Regards
Chen
----------------------------------------------------------------

          Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
         No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
             tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                               | www.sinap.ac.cn
----------------------------------------------------------------




--
Best Regards
Chen
----------------------------------------------------------------

         Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
        No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
            tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                              | www.sinap.ac.cn
----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to