Frame until the bottom of the page
Hi, I want to create a frame that should occupy the remaining space on the page. For example, if I call this frame when the page is 1/3rd full, I want the frame to have an height of 0.667\textheight. How can I do that? In other words, how to I find out how much space is left on the current page? Thanks, Aditya
Am 07.04.2011 um 03:20 schrieb Aditya Mahajan:
Hi,
I want to create a frame that should occupy the remaining space on the page. For example, if I call this frame when the page is 1/3rd full, I want the frame to have an height of 0.667\textheight. How can I do that?
In other words, how to I find out how much space is left on the current page?
\starttext \input ward \blank \framed[width=\textwidth,height=\dimexpr\pagegoal-\pagetotal-\lineheight\relax]{} \stoptext Wolfgang
On Thu, 7 Apr 2011, Wolfgang Schuster wrote:
Am 07.04.2011 um 03:20 schrieb Aditya Mahajan:
Hi,
I want to create a frame that should occupy the remaining space on the page. For example, if I call this frame when the page is 1/3rd full, I want the frame to have an height of 0.667\textheight. How can I do that?
In other words, how to I find out how much space is left on the current page?
\starttext
\input ward
\blank
\framed[width=\textwidth,height=\dimexpr\pagegoal-\pagetotal-\lineheight\relax]{}
\stoptext
Thanks a lot. Aditya
On Thu, 7 Apr 2011, Wolfgang Schuster wrote:
Am 07.04.2011 um 03:20 schrieb Aditya Mahajan:
Hi,
I want to create a frame that should occupy the remaining space on the page. For example, if I call this frame when the page is 1/3rd full, I want the frame to have an height of 0.667\textheight. How can I do that?
In other words, how to I find out how much space is left on the current page?
\framed[width=\textwidth,height=\dimexpr\pagegoal-\pagetotal-\lineheight\relax]{}
In case someone else is interested, I finally ended up using the following code: \definemeasure[page][\dimexpr\pagegoal-\pagetotal-\lineheight\relax] \starttext \input knuth \framed[width=\textwidth, height=\measure{page}]{test} \input knuth \input knuth \input knuth \framed[width=\textwidth, height=\measure{page}]{test} \stoptext I think that this is easier than having to type the complicated \dimexpr everytime. Aditya
participants (2)
-
Aditya Mahajan
-
Wolfgang Schuster