From: Alexander Lazic <al-context@none.at>
Subject: Q: footline and more the oneline with pic
Date: Fri, 7 Oct 2005 02:10:09 +0200 [thread overview]
Message-ID: <20051007001009.GA32585@none.at> (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
---
reply other threads:[~2005-10-07 0:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20051007001009.GA32585@none.at \
--to=al-context@none.at \
--cc=ntg-context@ntg.nl \
/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).