* Q: footline and more the oneline with pic
@ 2005-10-07 0:10 Alexander Lazic
0 siblings, 0 replies; only message in thread
From: Alexander Lazic @ 2005-10-07 0:10 UTC (permalink / raw)
Hi,
i have now find a solution but i don't know how 'good' it is, please can
anybody knowing tell me his/her opinion, thanks.
My target is in the footer should be the barlines and under that lines
there must be a square with the Text 'Seite ' $PAGE.
Btw: How can i change the distance between the item-symbol and the
item-text, i think with one option from \setupitemize but which
one ;-)?!
What do you mean, is there a easier solution for that in context?!
Greetings
al ;-)
---
\setuppapersize [A4][A4]
\setupcolors[state=start]
\definesymbol[12][\useMPgraphic{exhoch}]
\def\mypagenumber#1%
{\setupTABLE[frame=on]
\bTABLE
\bTR \bTD \useMPgraphic{bars} \eTD \eTR%
\bTR \bTD \viii \startitemize[12,packed]
\item Seite #1 \stopitemize \par \eTD \eTR%
\eTABLE
}
\setuppagenumbering[location={footer,right},command=\mypagenumber]
\startusableMPgraphic{bar}
vardef Bar(expr width,gap,linewidth,barwidth) =
image(
interim linecap := butt;
for i=1 upto 5 :
draw((0,0)--(width,0)) shifted (0,(i-1)*gap)
withpen pencircle scaled linewidth;
endfor;)
enddef;
\stopusableMPgraphic
%% .25white => Dunkelgrau 75%
%% .75white => Standardgrau 25%
\startreusableMPgraphic{bars}
\includeMPgraphic{bar}
draw Bar(TextWidth,2mm,1mm,1mm) withcolor .75white;
\stopreusableMPgraphic
% picture p ; p :
\startreusableMPgraphic{filledsquare}
vardef redsquare = image
( interim linecap := butt;
filldraw unitsquare
xyscaled (300,300) withpen pencircle scaled 0
withcolor red ; )
enddef;
%draw p xysized (2mm,2mm) shifted (bbwidth(currentpicture)+.5cm,0) ;
\stopreusableMPgraphic
\startreusableMPgraphic{exhoch}
\includeMPgraphic{filledsquare}
draw redsquare xysized (ExHeight,ExHeight) shifted (bbwidth(currentpicture)+.1mm,0) ;
\stopreusableMPgraphic
\starttext
\showsetups
\showlayout
\stoptext
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-07 0:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07 0:10 Q: footline and more the oneline with pic 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).