19 Sep
2011
19 Sep
'11
4:04 p.m.
I want to use the following macro taken from the ConTeXt garden :
\define[1]\SlideTitle{\framed[height=1.5\lineheight,frame=off, bottomframe=on, topframe=on, width=broad]{\leftaligned{\tfb \chapter {#1}}\pagenumber}}
Ouch. There is no need to resort to such macros. A nicer definition will be something like (untested) \definehead[SlideTitle][section-1] \setuphead[SlideTitle][style=\tfb, command=\SlideTitleCommand] \defineframed[SlideTitleFrame][height=....,align=right] \def\SlideTitleCommand#1#2{\SlideTitleFrame{#1 \pagenumber}} Where is such a macro given in the garden. A quick search did not show it. Aditya