From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id B6BB323252 for ; Tue, 23 Jan 2024 11:43:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A43084837A3 for ; Tue, 23 Jan 2024 11:42:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SzV6y3MZln4i for ; Tue, 23 Jan 2024 11:42:22 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 755CE4841E4 for ; Tue, 23 Jan 2024 11:40:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id BBDED48108D for ; Tue, 23 Jan 2024 11:40:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qwZWzX9BEgE2 for ; Tue, 23 Jan 2024 11:40:00 +0100 (CET) Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 2C7EF480F71 for ; Tue, 23 Jan 2024 11:40:00 +0100 (CET) Received: from fwd87.aul.t-online.de (fwd87.aul.t-online.de [10.223.144.113]) by mailout05.t-online.de (Postfix) with SMTP id CF25CF279 for ; Tue, 23 Jan 2024 11:39:59 +0100 (CET) Received: from [192.168.178.60] ([91.48.95.146]) by fwd87.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1rSECF-1l45gG0; Tue, 23 Jan 2024 11:39:59 +0100 Message-ID: <738a95ff-2213-42b9-9d03-a311cc7a078b@t-online.de> Date: Tue, 23 Jan 2024 11:39:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ntg-context@ntg.nl References: <7750db87-2c26-4299-ad36-922ca953e22c@fiee.net> <38ccc26d-d138-4ac5-a363-beae3347ccc5@t-online.de> <2016ed1d-dce4-d2eb-a87a-20014b40f13f@gmail.com> <77d84043-c7c3-4f98-91fe-6076e794228b@t-online.de> <3b14930c-dcc9-4971-9752-774570e269da@t-online.de> <10598505-8ec8-4204-a8a7-0456d9ae169a@t-online.de> <9a0f6298-1b9c-4eb0-8489-a1cb7421c3d8@t-online.de> <43c6f5d3-188f-47cb-93d6-e043a93b74fd@fiee.net> <33703a4d-89ef-4aaa-937e-4284fc360c3b@t-online.de> Content-Language: de-DE From: Thomas Meyer Autocrypt: addr=thomasgmeyer@t-online.de; keydata= xsFNBGPqOQMBEADR9MbN06aQ90AeXfb5AsL9m/neBE0QAuCqMH8pwKWBaZiaj0VRS0vVnTEW M3FazzdzOAT5BJx3bnUHbS9k6rQ1zKxJ0ekDdLFUD+ARHfH8M4tEs/2WLfcW98/K5gEPwPdo mrkMlWan8wLQXTZDrStv7b1m2oYSaBra8R7ghd7z7rjOwy9YhufFAJ6LackE5YG/AyAKusAS MoPE6Lh6ZSCqO7zknDbAOEgZx9evVWV6u1vedI9vVQOxuJt6JZjBF7T9FoQbs6x9ro5LqPcI B21QY/XooQDTYZbZtNQbFEtQ8xn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96OYDIS9TUaLNLduZNlTNndKLxBPu55vxvOMcxZhEgRh9GvSHWApEsTSNqC8L IN1Wu+4G7AL7nFmkLAnxf2p3Nwl5Lpe1Bs8lttq0GyfIMSFXTdNMehpZxK4ODrm2wGpgqJKv pQnCGHGjlECzeCTI7PNaftKATjWTvlqO2CmiTwpgVGOb98cEi9SIhm18DgjLWobs/EGKYJO8 avOjdgAn8Fyk6UZF2Yj/+6+dPg/UZj9WU8B0jHE0euBP60C78iAs53Lp+py2rFMBrZ1516A6 lZlDMzFksbIzf0UMx5LD8TG2zl0GTXTxbwWEU/fxE7dn58YF2c9BwGE/6iW6iL1sg3xPhOqU YUSpmeXhY1GA5gRaIk6w2IYAj8N1bzlBNMd3XwN7bnDwxLwprNYouBw7Azss1/+N222uiXA+ Kuoo+UnEccTBFBKFVlbNo/jyh8uR/oZb/+HYN+DeSH9SzaGQ7VPGEgphRusd5I4HTZp7+zSC YPHBeckIFFKn7hYickA5kyAriilpKBcU651jkN5/oUiPsDSvKYFpEJxkvIrp In-Reply-To: X-TOI-EXPURGATEID: 150726::1706006399-86FFA968-30EF339E/0/0 CLEAN NORMAL X-TOI-MSGID: 4b10917e-4ae9-43e1-b9a9-f8fdba69fa26 Message-ID-Hash: WURNIGCBC3QXOHHC3X57FG42XR3VOLVC X-Message-ID-Hash: WURNIGCBC3QXOHHC3X57FG42XR3VOLVC X-MailFrom: thomasgmeyer@t-online.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: context version 20240118 ("Registerhaltigkeit") List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4990293467717292883==" This is a multi-part message in MIME format. --===============4990293467717292883== Content-Type: multipart/alternative; boundary="------------NzzhGLqMnuq3tNKQ9zQRsqLP" Content-Language: de-DE This is a multi-part message in MIME format. --------------NzzhGLqMnuq3tNKQ9zQRsqLP Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit That's it! Many thanks to Hans, Hraban and especially Wolfgang for his solution. This environment should become part of ConTeXt! I have been a LaTeX/XeTeX/LuaLaTeX user for over 30 years and used it to write my papers during my studies and use it for almost all my writing. Now I wanted to try ConTeXt and will be glad if anyone can help me. As I said, I am only a user. Many thanks and best regards Thomas Am 22.01.24 um 20:24 schrieb Wolfgang Schuster: > Thomas Meyer schrieb am 22.01.2024 um 13:04: >> >> >> Am 22.01.24 um 12:06 schrieb Henning Hraban Ramm: >>> Am 22.01.24 um 11:46 schrieb Thomas Meyer: >>>> I might get a bit impatient if I have the impression that others >>>> get an answer faster. Sorry for that. >>> >>> It’s not unusual to get that impression. It depends on the current >>> attention, capacity and mood of the few who can answer your questions. >>> >>>> So the problem is still \hfill that the last paragraph is not on >>>> grid in the new and the old version (and comma). >>> >>> Grid is not as easy as it looks first. Low level tricks like fills >>> or skips can mess it up. >>> >>> >>> Maybe \startlinecorrection helps… (No, it doesn’t.) >>> >>> It also doesn’t help to add a \blank or \par after \vfill. >> >> I know it, i tried it. And I tried \snaptogrid \vbox {}, it doesn't >> work too. >> >> Only counting empty rows and set the number in \blank[ *big] works! > > > You need a fixed space (multiple of the line distance) between the > text blocks and \vfill is a variable space which isn't what you want > here. > > TO get the desired space between the blocks you have to measure the > height of the text at the bottom and calculate the number of lines > which have to be added in the gap. Below is a simple solution which > adds the required number of \blank lines. > > \def\PlaceAtBottom >   {\par >    \dowithnextbox >       {\scratchdimen\dimexpr\pagegoal-\pagetotal\relax >        \ifdim\nextboxht>\scratchdimen >          \page >          \getnoflines{\dimexpr\textheight-\nextboxht\relax}% > \dontleavehmode\blank[\number\numexpr\noflines-2\relax*line]% >          \unvbox\nextbox >        \else >          \getnoflines{\dimexpr\scratchdimen-\nextboxht\relax}% >          \blank[\number\numexpr\noflines-1\relax*line]% >          \unvbox\nextbox >        \fi} >       \vbox} > > \let\stopPlaceAtBottom\egroup > > \def\startPlaceAtBottom >   {\PlaceAtBottom\bgroup} > > \mainlanguage[de] > \setupbodyfont[libertinus, 12pt] > > \setuppagenumbering >   [location={footer,middle}] > > \setuplayout >   [grid=yes] > > \showgrid > > \starttext > > \samplefile{lorem} > > \startPlaceAtBottom > {\sl\samplefile{lorem}} > \stopPlaceAtBottom > > \page > > \dorecurse{4}{\samplefile{lorem}} > > \startPlaceAtBottom > {\sl\samplefile{lorem}} > \stopPlaceAtBottom > > \stoptext > > Wolfgang > ___________________________________________________________________________________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage  : https://www.pragma-ade.nl / https://context.aanhet.net > (mirror) > archive  : https://github.com/contextgarden/context > wiki     : https://wiki.contextgarden.net > ___________________________________________________________________________________ > --------------NzzhGLqMnuq3tNKQ9zQRsqLP Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit That's it! Many thanks to Hans, Hraban and especially Wolfgang for his solution. This environment should become part of ConTeXt!

I have been a LaTeX/XeTeX/LuaLaTeX user for over 30 years and used it to write my papers during my studies and use it for almost all my writing.
Now I wanted to try ConTeXt and will be glad if anyone can help me. As I said, I am only a user.

Many thanks and best regards
Thomas


Am 22.01.24 um 20:24 schrieb Wolfgang Schuster:
Thomas Meyer schrieb am 22.01.2024 um 13:04:


Am 22.01.24 um 12:06 schrieb Henning Hraban Ramm:
Am 22.01.24 um 11:46 schrieb Thomas Meyer:
I might get a bit impatient if I have the impression that others get an answer faster. Sorry for that.

It’s not unusual to get that impression. It depends on the current attention, capacity and mood of the few who can answer your questions.

So the problem is still \hfill that the last paragraph is not on grid in the new and the old version (and comma).

Grid is not as easy as it looks first. Low level tricks like fills or skips can mess it up.


Maybe \startlinecorrection helps… (No, it doesn’t.)

It also doesn’t help to add a \blank or \par after \vfill.

I know it, i tried it. And I tried \snaptogrid \vbox {}, it doesn't work too.

Only counting empty rows and set the number in \blank[ *big] works!


You need a fixed space (multiple of the line distance) between the text blocks and \vfill is a variable space which isn't what you want here.

TO get the desired space between the blocks you have to measure the height of the text at the bottom and calculate the number of lines which have to be added in the gap. Below is a simple solution which adds the required number of \blank lines.

\def\PlaceAtBottom
  {\par
   \dowithnextbox
      {\scratchdimen\dimexpr\pagegoal-\pagetotal\relax
       \ifdim\nextboxht>\scratchdimen
         \page
         \getnoflines{\dimexpr\textheight-\nextboxht\relax}%
         \dontleavehmode\blank[\number\numexpr\noflines-2\relax*line]%
         \unvbox\nextbox
       \else
         \getnoflines{\dimexpr\scratchdimen-\nextboxht\relax}%
         \blank[\number\numexpr\noflines-1\relax*line]%
         \unvbox\nextbox
       \fi}
      \vbox}

\let\stopPlaceAtBottom\egroup

\def\startPlaceAtBottom
  {\PlaceAtBottom\bgroup}

\mainlanguage[de]
\setupbodyfont[libertinus, 12pt]

\setuppagenumbering
  [location={footer,middle}]

\setuplayout
  [grid=yes]

\showgrid

\starttext

\samplefile{lorem}

\startPlaceAtBottom
{\sl\samplefile{lorem}}
\stopPlaceAtBottom

\page

\dorecurse{4}{\samplefile{lorem}}

\startPlaceAtBottom
{\sl\samplefile{lorem}}
\stopPlaceAtBottom

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

--------------NzzhGLqMnuq3tNKQ9zQRsqLP-- --===============4990293467717292883== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============4990293467717292883==--