|
From: | Oliver Corff |
Subject: | Re: Dynamic Paperlength for PS or PDF device |
Date: | Wed, 14 Dec 2022 17:36:12 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 |
Hi Wim, nice demo indeed! Just my two cents: wouldn't it be nice if you have groff calculate the totals? You could wrap calculation and table end information into one macro call. Something akin to the invoice package of LaTeX. Kind regards, Oliver. On 14/12/2022 11:19, Wim Stockman wrote:
Hi, If anybody is interested I put a little demo application using my dynamic paper length approach. It's on github https://github.com/wimstockman/receipt_demo Kind Regards, Wim Stockman Op za 10 dec. 2022 om 19:54 schreef Wim Stockman <wim.stockman@gmail.com>:Hi, Thanks for all the suggestions. But I think my question is misunderstood. I needed to let grops know how long my groff page is.... Not knowing in advance what the length of my groff page would be. ... So that's why i use the ".tm \\n[nl]" macro from groff to output the exact length of the groff page and then rerun groff with the correct length for grops :-) Have a great World Cup. Sadly my country Belgium was a complete disaster :-) Wim Stockman Op za 10 dec. 2022 om 15:09 schreef John Gardner <gardnerjohng@gmail.com>:May as well be precise with 21c and 29.7c?Shit, did I really give A4 in Freedom Units™? My bad. I'm pinning this on sheet sleep deprivation and football fever. Staying up to 2:00am AEDT to watch the World Cup, then another at 6:00am—several times a week—has me running on fumes. I have 4.5 hours of sleep planned before a 5:30am start, because I sure as shit aren't gonna miss England taking on France. (I swear if France win, I'm gonna cry…) I'll be wearing my Napalm Death shirt, because it's the closest thing my wardrobe has to patriotic English attire…) 🏴 On Sat, 10 Dec 2022 at 20:52, Ralph Corderoy <ralph@inputplus.co.uk> wrote:Hi John,.\" A4 portrait .pagesize 8.3i 11.7i....\" A4 landscape....pagesize 11.7i 8.3iMay as well be precise with 21c and 29.7c? -- Cheers, Ralph.
-- Dr. Oliver Corff Wittelsbacherstr. 5A 10707 Berlin G E R M A N Y Tel.: +49-30-85727260 Mail: oliver.corff@email.de
[Prev in Thread] | Current Thread | [Next in Thread] |