Am 02.05.2013 um 23:31 schrieb MANUEL GONZALEZ SUAREZ
<[email protected]>:
>
> Hi everyone.
>
> I would like to pose the following question: I would like to know how I can
> customize the page number using an embedded graphic made with METAFUN. I
> mean, I wish someone would send me a simple example to do that, for example,
> a page number or headers (chapter, section, etc..) may appear with a color
> background or something else. The METAFUN manual provides, for example, the
> page number within an ellipse, and the sections are underlined in orange.
>
> Thank you all for your patience and sorry for my poor English and my poor
> knowledge of ConTeXt, but I'm studying hard reference manuals ConTeXt and
> hope to go slowly improving, although I am not expert in computer programming
> languages or even less in mathematics.
>
> Thanks very much.
>
These are only simple styles but the show how you can customize the heading and
pagenumber.
\define[2]\ChapterCommand
{\startframed[frame=off,bottomframe=on,framecolor=orange,width=fit]
#1\hspace[medium]#2
\stopframed}
\setuphead[chapter][command=\ChapterCommand]
\startuseMPgraphic{pagenumber}
draw fullcircle xyscaled(OverlayWidth,OverlayHeight) withcolor \MPcolor{blue}
;
\stopuseMPgraphic
\defineoverlay[pagenumber][\useMPgraphic{pagenumber}]
\define[1]\PagenumberCommand
{\framed[frame=off,background=pagenumber]{#1}}
\setuppagenumbering[command=\PagenumberCommand]
\starttext
\chapter{This is a chapter}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________