{"id":794,"date":"2010-01-11T20:08:14","date_gmt":"2010-01-11T14:38:14","guid":{"rendered":"http:\/\/188.40.186.164\/?p=6"},"modified":"2010-01-11T20:08:14","modified_gmt":"2010-01-11T14:38:14","slug":"how-to-fill-the-rest-of-the-page-with-horizontal-rules","status":"publish","type":"post","link":"https:\/\/cvr.cc\/?p=794","title":{"rendered":"How to fill the rest of the page with horizontal rules?"},"content":{"rendered":"<p>This was a posting in the <tt>texhax<\/tt> mailing list of <font style=\"font-family: serif;\">T<sub style=\"text-transform: uppercase;vertical-align: -0.5ex;margin-left: -0.1667em;  margin-right: -0.125em; font-size: 1em;\">e<\/sub>X<\/font> Users Group. Among all, Phil Taylor s solution seemed to be the best. I have extended to fill arbitrary vertical remaining space in a page in the following manner:<br \/>\n<!--more--><\/p>\n<pre>\n\\newdimen\\spaceleft\n \\def\\pagespace{%\n  \\ifdim\\pagetotal=0pt\n     \\spaceleft=\\vsize\n   \\else\n     \\spaceleft=\\pagegoal\n     \\advance\\spaceleft by-\\pagetotal\n  \\fi}\n \\def\\fillWithLines{\\null{}\\pagespace\\vbox to \\spaceleft\n       {\\xleaders \\vbox to 1 pc\n        {\\vfil \\hrule width \\hsize \\vfil} \\vfil}}\n<\/pre>\n<p>Since this is a plain <font style=\"font-family: serif;\">T<sub style=\"text-transform: uppercase;vertical-align: -0.5ex;margin-left: -0.1667em;  margin-right: -0.125em; font-size: 1em;\">e<\/sub>X<\/font> macro, it should work with all flavours.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This was a posting in the texhax mailing list of TeX Users Group. Among all, Phil Taylor s solution seemed to be the best. I have extended to fill arbitrary vertical remaining space in a page in the following manner:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-794","post","type-post","status-publish","format-standard","hentry","category-rulefill"],"_links":{"self":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=794"}],"version-history":[{"count":0,"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/794\/revisions"}],"wp:attachment":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}