ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* positions in externalfigure
@ 2005-10-09 12:49 Alexander Lazic
  0 siblings, 0 replies; only message in thread
From: Alexander Lazic @ 2005-10-09 12:49 UTC (permalink / raw)


Hi,

i have try to add a picture in my footer.

what i need is:


+-----------------------------------------+
|                                         |
|\pagenuber / \totalnumberofpages         |
+-----------------------------------------+

the hole box is the picture in the footer, there is on the left lower
corner place for the pagenumbers.

i have try:

---
\startreusableMPgraphic{filledsquare}
 vardef redsquare = image
   ( interim linecap := butt;
     filldraw unitsquare
      xyscaled (300,300) withpen pencircle scaled 0
      withcolor red ; )
   enddef;
\stopreusableMPgraphic

\startreusableMPgraphic{exhoch}
  \includeMPgraphic{filledsquare}
  draw redsquare xysized (ExHeight-1,ExHeight-1) shifted (bbwidth(currentpicture)+.1mm,0) ;
\stopreusableMPgraphic

\defineoverlay
  [footbackground]
  [{\externalfigure[mypic][frame=on,factor=fit,width=\textwidth,height=2.34cm]}]

\def\mypagenumber#1%
                 {\rm \txx \useMPgraphic{exhoch} #1 / \totalnumberofpages
                 }
\setuppagenumbering[location={footer,left},command=\mypagenumber]
\setupfootertexts[][{\framed[background=footbackground,frame=on]{}}]
---

and many combinations of inframed + backgrounds from many manuals.

I think i'am on the wrong way :-(

Please can anyone help me to come to the right way or solution, thanx.

greetings

al ;-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-09 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-09 12:49 positions in externalfigure Alexander Lazic

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).