From lstonys at vtex.lt Thu Sep 2 14:48:53 2021 From: lstonys at vtex.lt (Linas Stonys) Date: Thu, 2 Sep 2021 15:48:53 +0300 Subject: [pdftex] features request 1 In-Reply-To: References: <20210621145436.ek3h2qlghjfk2heh@beeblebrox> Message-ID: <0cfa88f6-45a5-903b-3c3e-683eb9c8a5f4@vtex.lt> Hi, 1) sometimes styles requires to use small vertical indentation between paragraphs and naturally? we choose to? use \parskip and it leads to some painful programming dealing with spaces For example after float if there will be paragraph? the space will be \|textfloatsep + \parskip. |The problem is that there is no control on this and I want to ask consider the possibility to add some? tokens list like \everyparskip{} which? would be inserted before \parskip where could be possible to check \lastskip: FOR EXAMPLE: \parskip=5pt \everypar{\showthe\lastskip} a \vskip20pt \showthe\lastskip b \showlists \bye STDOUT: > 0.0pt. \showthe \lastskip a l.3 a ? > 20.0pt. l.6 \showthe\lastskip ? > 0.0pt. \showthe \lastskip b l.7 b POSSIBLE PLACE OF \everyparskip: .\tenrm a .\penalty 10000 .\glue(\parfillskip) 0.0 plus 1.0fil .\glue(\rightskip) 0.0 \glue 20.0 ----------- HERE \glue(\parskip) 5.0 \glue(\baselineskip) 5.05556 \hbox(6.94444+0.0)x469.75499, glue set 444.1994fil, direction TLT .\localpar ..\localinterlinepenalty=0 ..\localbrokenpenalty=0 ..\localleftbox=null ..\localrightbox=null .\hbox(0.0+0.0)x20.0, direction TLT .\tenrm b Or \everyparskip{} could be always in the format like \everyparskip{\vskip\parskip} and one could deal with it. Thanks, Linas || -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstonys at vtex.lt Thu Sep 2 15:15:14 2021 From: lstonys at vtex.lt (Linas Stonys) Date: Thu, 2 Sep 2021 16:15:14 +0300 Subject: [pdftex] features request 2 In-Reply-To: References: Message-ID: Hi, from time to time I face the problem where I need to do something inside tex group (simple group or box or table cell) or to mark up some content with tex4ht tags ( or tagging pdf ) and sometimes \aftergroup is not enough. ? So I would like to ask about new token or token list which would be inserted before current group end (\beforeendgroup). EXAMPLE: \showboxdepth=\maxdimen \showboxbreadth=\maxdimen b \hbox{x\aftergroup d? x} c \showlists LOG OUTPUT: \tenrm b \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 \hbox(4.30554+0.0)x13.88893, direction TLT .\tenrm x .\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 .\tenrm x \tenrm d \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 \tenrm c COULD BE: b \hbox{x\beforeendgroup d? x} c \showlists LOG OUTPUT: \tenrm b \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 \hbox(4.30554+0.0)x13.88893, direction TLT .\tenrm x .\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 .\tenrm x .\tenrm d \tenrm c Of course here needs to think about several same macros how they should queue the content. Thanks in advance, Linas From j.hagen at xs4all.nl Thu Sep 2 15:31:19 2021 From: j.hagen at xs4all.nl (Hans Hagen) Date: Thu, 2 Sep 2021 15:31:19 +0200 Subject: [pdftex] [Dev-luatex] features request 1 In-Reply-To: <0cfa88f6-45a5-903b-3c3e-683eb9c8a5f4@vtex.lt> References: <20210621145436.ek3h2qlghjfk2heh@beeblebrox> <0cfa88f6-45a5-903b-3c3e-683eb9c8a5f4@vtex.lt> Message-ID: <8cd84169-d745-5115-1c59-2f1b786046bc@xs4all.nl> On 9/2/2021 2:48 PM, Linas Stonys wrote: > Hi, > 1) sometimes styles requires to use small vertical indentation between > paragraphs > and naturally? we choose to? use \parskip and it leads to some painful > programming dealing with spaces > For example after float if there will be paragraph? the space will be > \|textfloatsep + \parskip. > |The problem is that there is no control on this and I want to ask > consider the possibility to add > some? tokens list like \everyparskip{} which? would be inserted before > \parskip where could be possible > to check \lastskip: > > FOR EXAMPLE: > \parskip=5pt > \everypar{\showthe\lastskip} > a > \vskip20pt > > \showthe\lastskip > b > \showlists > \bye > > STDOUT: > > 0.0pt. > \showthe \lastskip > > > a > l.3 a > > ? > > 20.0pt. > l.6 \showthe\lastskip > > ? > > 0.0pt. > \showthe \lastskip > > > b > l.7 b > > POSSIBLE PLACE OF \everyparskip: > .\tenrm a > .\penalty 10000 > .\glue(\parfillskip) 0.0 plus 1.0fil > .\glue(\rightskip) 0.0 > \glue 20.0 > ----------- HERE > \glue(\parskip) 5.0 > \glue(\baselineskip) 5.05556 > \hbox(6.94444+0.0)x469.75499, glue set 444.1994fil, direction TLT > .\localpar > ..\localinterlinepenalty=0 > ..\localbrokenpenalty=0 > ..\localleftbox=null > ..\localrightbox=null > .\hbox(0.0+0.0)x20.0, direction TLT > .\tenrm b > > > Or \everyparskip{} could be always in the format like > \everyparskip{\vskip\parskip} and one could deal with it. in luametatex we have \starttext test \vskip10pt \everybeforepar{\writestatus{!}{\the\lastskip}} test \stoptext (plus more to experiment with) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- From j.hagen at xs4all.nl Thu Sep 2 15:32:07 2021 From: j.hagen at xs4all.nl (Hans Hagen) Date: Thu, 2 Sep 2021 15:32:07 +0200 Subject: [pdftex] [Dev-luatex] features request 2 In-Reply-To: References: Message-ID: <62a365aa-c419-d792-cf3f-ea47c7aeb86e@xs4all.nl> On 9/2/2021 3:15 PM, Linas Stonys wrote: > Hi, > from time to time I face the problem where I need to do something inside > tex group (simple group or box or table cell) > or to mark up some content with tex4ht tags ( or tagging pdf ) > and sometimes \aftergroup is not enough. ? So I would like to ask about > new token or token list which would > be inserted before current group end (\beforeendgroup). > > > EXAMPLE: > \showboxdepth=\maxdimen > \showboxbreadth=\maxdimen > b > \hbox{x\aftergroup d? x} > c > \showlists > > LOG OUTPUT: > \tenrm b > \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 > \hbox(4.30554+0.0)x13.88893, direction TLT > .\tenrm x > .\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 > .\tenrm x > \tenrm d > \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 > \tenrm c > > > COULD BE: > b > \hbox{x\beforeendgroup d? x} > c > \showlists > > LOG OUTPUT: > \tenrm b > \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 > \hbox(4.30554+0.0)x13.88893, direction TLT > .\tenrm x > .\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 > .\tenrm x > .\tenrm d > \tenrm c > > Of course here needs to think about several same macros how they should > queue the content. In luametatex we have \starttext {[test\atendofgroup{]} \stoptext (plus more) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- From lstonys at vtex.lt Thu Sep 2 16:18:18 2021 From: lstonys at vtex.lt (Linas Stonys) Date: Thu, 2 Sep 2021 17:18:18 +0300 Subject: [pdftex] [Dev-luatex] features request 2 In-Reply-To: <62a365aa-c419-d792-cf3f-ea47c7aeb86e@xs4all.nl> References: <62a365aa-c419-d792-cf3f-ea47c7aeb86e@xs4all.nl> Message-ID: wow! Indeed there is a lot useful primitives (\ifempty, ifrelax, ... often would be used) Will they ever be moved to luatex engine? Will any of luatex macros are consider to be moved to pdftex (\toksapp, \tokspre, \glet, ...) Now writing a package for authors we still need to stick to pdftex (e-tex primityves) or some packages (luatex85, shellesc,..) to be sure? that there will be less complains about not working something due to different engine. On 9/2/2021 4:32 PM, Hans Hagen wrote: > On 9/2/2021 3:15 PM, Linas Stonys wrote: >> Hi, >> from time to time I face the problem where I need to do something >> inside tex group (simple group or box or table cell) >> or to mark up some content with tex4ht tags ( or tagging pdf ) >> and sometimes \aftergroup is not enough. ? So I would like to ask >> about new token or token list which would >> be inserted before current group end (\beforeendgroup). >> >> >> EXAMPLE: >> \showboxdepth=\maxdimen >> \showboxbreadth=\maxdimen >> b >> \hbox{x\aftergroup d? x} >> c >> \showlists >> >> LOG OUTPUT: >> \tenrm b >> \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 >> \hbox(4.30554+0.0)x13.88893, direction TLT >> .\tenrm x >> .\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 >> .\tenrm x >> \tenrm d >> \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 >> \tenrm c >> >> >> COULD BE: >> b >> \hbox{x\beforeendgroup d? x} >> c >> \showlists >> >> LOG OUTPUT: >> \tenrm b >> \glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 >> \hbox(4.30554+0.0)x13.88893, direction TLT >> .\tenrm x >> .\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111 >> .\tenrm x >> .\tenrm d >> \tenrm c >> >> Of course here needs to think about several same macros how they >> should queue the content. > In luametatex we have > > \starttext > > ??? {[test\atendofgroup{]} > > \stoptext > > (plus more) > > Hans > > ----------------------------------------------------------------- > ????????????????????????????????????????? Hans Hagen | PRAGMA ADE > ????????????? Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > ?????? tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > From frank.mittelbach at latex-project.org Thu Sep 2 16:35:51 2021 From: frank.mittelbach at latex-project.org (Frank Mittelbach) Date: Thu, 2 Sep 2021 16:35:51 +0200 Subject: [pdftex] ***SPAM*** Re: [Dev-luatex] features request 2 In-Reply-To: References: <62a365aa-c419-d792-cf3f-ea47c7aeb86e@xs4all.nl> Message-ID: <11b04941-a6d6-4871-a587-ab4b3abb2416@latex-project.org> Am 02.09.21 um 16:18 schrieb Linas Stonys: > wow! Indeed there is a lot useful primitives (\ifempty, ifrelax, ... > often would be used I'm not sure that syntactic sugar (ie commands that are trivial to implement) is something that should be added to the engines but the two you suggested, ie gaining control at the very start of paragraph processing and just before a group ends, are two things that the engines really don't offer unless you totally disable most of the processing and figure out for yourself when it would be time to switch to hmode (which while theoretically doable is not really a practical option). As both have useful applications (and should be fairly easy to provide in all engines those are two that I think are worth pursuing my 2cents - Frank -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: SpamAssassinReport-comedy_dante_de.txt URL: