[NTG-context] Dynamic frame height

Bart C. Wise bntgcontext at wiseguysweb.com
Tue Dec 16 01:45:00 CET 2008


Thanks Wolfgang!
Bart

On Monday 15 December 2008 04:48:03 pm Wolfgang Schuster wrote:
> Am 16.12.2008 um 00:29 schrieb Bart C. Wise:
> > I'm trying to create a section at the bottom of a page that has a
> > number of
> > blank lines for writing notes. However, I want the frame and the
> > lines to be
> > automatically generated from the remaining space on the page. How do I
> > control the number of lines and the frame height to achieve the
> > desired
> > results?
> >
> > \starttext
> > \input tufte
> > \blank
> > \framed[
> > corner=00
> > ]{
> > \vbox{
> > Notes:\crlf
> > \dorecurse{4}{\crlf\thinrule}
> > }}
> > \stoptext
> > Thanks,
> > Bart
>
> %\showframe
>
> \starttext
>
> \input tufte
>
> \blank
>
> \framed[corner=00,align=right,width=\textwidth]
>    {\getnoflines{\dimexpr\pagegoal-\pagetotal-2\lineheight\relax}%
>     Notes:\crlf
>     \thinrules[n=\noflines]}
>
> \stoptext
>
> Wolfgang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20081215/cda74c12/attachment.html>


More information about the ntg-context mailing list