ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* no looseness in LMTX?
@ 2021-09-07  9:49 Henning Hraban Ramm via ntg-context
  2021-09-07 11:15 ` Wolfgang Schuster via ntg-context
  2021-09-07 12:07 ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 6+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-07  9:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

In my magazine and book projects, I sometimes fix pagebreaking by stretching paragraphs with \looseness=1

Unfortunately this works _in my project_ only with MkIV, i.e. \looseness has no effect with LMTX.

I tried different examples (e.g. the attached file) and can’t reproduce the problem, there MkIV and LMTX always behave the same.
So it must be something in my settings.

What could cause the difference? 
I tried English and German and different settings of alignment and tolerance.
Might it be font dependent?


Hraban


[-- Attachment #2: loosetest.tex --]
[-- Type: application/octet-stream, Size: 4027 bytes --]


%\setuppaper[A5]
\mainlanguage[de]
\setupalign[fullhz,hanging,width,hyphenated]
\setuptolerance[horizontal,verytolerant,stretch]
\setuptolerance[vertical,tolerant]
\setbreakpoints[compound]

\starttext

\startlinenumbering
\startparagraph
Weit hinten, hinter den Wortbergen, fern der Länder Vokalien und Konsonantien leben die Blindtexte. Abgeschieden wohnen sie in Buchstabhausen an der Küste des Semantik, eines großen Sprachozeans. Ein kleines Bächlein namens Duden fließt durch ihren Ort und versorgt sie mit den nötigen Regelialien. Es ist ein paradiesmatisches Land, in dem einem gebratene Satzteile in den Mund fliegen. Nicht einmal von der allmächtigen Interpunktion werden die Blindtexte beherrscht – ein geradezu unorthographisches Leben. Eines Tages aber beschloss eine kleine Zeile Blindtext, ihr Name war Lorem Ipsum, hinauszugehen in die weite Grammatik. Der große Oxmox riet ihr davon ab, da es dort wimmele von bösen Kommata, wilden Fragezeichen und hinterhältigen Semikoli, doch das Blindtextchen ließ sich nicht beirren.
%Es packte seine sieben Versalien, schob sich sein Initial in den Gürtel und machte sich auf den Weg. Als es die ersten Hügel des Kursivgebirges erklommen hatte, warf es einen letzten Blick zurück auf die Skyline seiner Heimatstadt Buchstabhausen, die Headline von Alphabetdorf und die Subline seiner eigenen Straße, der Zeilengasse. Wehmütig lief ihm eine rhetorische Frage über die Wange, dann setzte es seinen Weg fort. Unterwegs traf es eine Copy. Die Copy warnte das Blindtextchen, da, wo sie herkäme wäre sie zigmal umgeschrieben worden und alles, was von ihrem Ursprung noch übrig wäre, sei das Wort „und“, und das Blindtextchen solle umkehren und wieder in sein eigenes, sicheres Land zurückkehren. Doch alles Gutzureden konnte es nicht überzeugen, und so dauerte es nicht lange, bis ihm ein paar heimtückische Werbetexter auflauerten, es mit Longe und Parole betrunken machten und es dann in ihre Agentur schleppten, wo sie es für ihre Projekte wieder und wieder missbrauchten. Und wenn es nicht umgeschrieben wurde, dann benutzen Sie es immer noch.
\stopparagraph
\stoplinenumbering
\blank[line]

\startlinenumbering
\startparagraph\looseness=+1
Weit hinten, hinter den Wortbergen, fern der Länder Vokalien und Konsonantien leben die Blindtexte. Abgeschieden wohnen sie in Buchstabhausen an der Küste des Semantik, eines großen Sprachozeans. Ein kleines Bächlein namens Duden fließt durch ihren Ort und versorgt sie mit den nötigen Regelialien. Es ist ein paradiesmatisches Land, in dem einem gebratene Satzteile in den Mund fliegen. Nicht einmal von der allmächtigen Interpunktion werden die Blindtexte beherrscht – ein geradezu unorthographisches Leben. Eines Tages aber beschloss eine kleine Zeile Blindtext, ihr Name war Lorem Ipsum, hinauszugehen in die weite Grammatik. Der große Oxmox riet ihr davon ab, da es dort wimmele von bösen Kommata, wilden Fragezeichen und hinterhältigen Semikoli, doch das Blindtextchen ließ sich nicht beirren.
\stopparagraph
\stoplinenumbering
\blank[line]

\startlinenumbering
\startparagraph\looseness=+2
Weit hinten, hinter den Wortbergen, fern der Länder Vokalien und Konsonantien leben die Blindtexte. Abgeschieden wohnen sie in Buchstabhausen an der Küste des Semantik, eines großen Sprachozeans. Ein kleines Bächlein namens Duden fließt durch ihren Ort und versorgt sie mit den nötigen Regelialien. Es ist ein paradiesmatisches Land, in dem einem gebratene Satzteile in den Mund fliegen. Nicht einmal von der allmächtigen Interpunktion werden die Blindtexte beherrscht – ein geradezu unorthographisches Leben. Eines Tages aber beschloss eine kleine Zeile Blindtext, ihr Name war Lorem Ipsum, hinauszugehen in die weite Grammatik. Der große Oxmox riet ihr davon ab, da es dort wimmele von bösen Kommata, wilden Fragezeichen und hinterhältigen Semikoli, doch das Blindtextchen ließ sich nicht beirren.
\stopparagraph
\stoplinenumbering

\stoptext

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: no looseness in LMTX?
  2021-09-07  9:49 no looseness in LMTX? Henning Hraban Ramm via ntg-context
@ 2021-09-07 11:15 ` Wolfgang Schuster via ntg-context
  2021-09-07 13:13   ` Henning Hraban Ramm via ntg-context
  2021-09-07 12:07 ` Hans Hagen via ntg-context
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-07 11:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm via ntg-context
  Cc: Wolfgang Schuster

Henning Hraban Ramm via ntg-context schrieb am 07.09.2021 um 11:49:
> In my magazine and book projects, I sometimes fix pagebreaking by stretching paragraphs with \looseness=1
>
> Unfortunately this works _in my project_ only with MkIV, i.e. \looseness has no effect with LMTX.
>
> I tried different examples (e.g. the attached file) and can’t reproduce the problem, there MkIV and LMTX always behave the same.
> So it must be something in my settings.
>
> What could cause the difference?
> I tried English and German and different settings of alignment and tolerance.
> Might it be font dependent?

Do you enable protrusion and font expansion for your document font or is 
it just missing in your example?

Have you checked if the alignment changes when you use the 
"extremestretch" keyword for \setupalign?

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: no looseness in LMTX?
  2021-09-07  9:49 no looseness in LMTX? Henning Hraban Ramm via ntg-context
  2021-09-07 11:15 ` Wolfgang Schuster via ntg-context
@ 2021-09-07 12:07 ` Hans Hagen via ntg-context
  2021-09-07 12:57   ` Henning Hraban Ramm via ntg-context
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2021-09-07 12:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 9/7/2021 11:49 AM, Henning Hraban Ramm via ntg-context wrote:
> In my magazine and book projects, I sometimes fix pagebreaking by stretching paragraphs with \looseness=1
> 
> Unfortunately this works _in my project_ only with MkIV, i.e. \looseness has no effect with LMTX.
> 
> I tried different examples (e.g. the attached file) and can’t reproduce the problem, there MkIV and LMTX always behave the same.
> So it must be something in my settings.
> 
> What could cause the difference?
> I tried English and German and different settings of alignment and tolerance.
> Might it be font dependent?

explained in manuals ...

\startlinenumbering
\startparagraph
Weit .. beirren.
\stopparagraph
\stoplinenumbering

\startlinenumbering
\startparagraph\looseness=+2
Weit .. beirren.
\stopparagraph
\stoplinenumbering

\startlinenumbering
\startparagraph
Weit .. beirren.
\looseness=+2\updateparagraphproperties\stopparagraph
\stoplinenumbering

in lmxt we freeze the properties set when a paragraph starts (contrary 
to using the last set value which actually fails when you set it inside 
a group)

so, when you change some property mid paragraph you need to update the 
properties in order for them to be effective (can be done for looseness 
only if really needed); that works independent of grouping so it's more 
robust

so .. it's all about more control

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: no looseness in LMTX?
  2021-09-07 12:07 ` Hans Hagen via ntg-context
@ 2021-09-07 12:57   ` Henning Hraban Ramm via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-07 12:57 UTC (permalink / raw)
  To: Hans Hagen; +Cc: Henning Hraban Ramm, mailing list for ConTeXt users


> Am 07.09.2021 um 14:07 schrieb Hans Hagen <j.hagen@xs4all.nl>:
> 
> On 9/7/2021 11:49 AM, Henning Hraban Ramm via ntg-context wrote:
>> In my magazine and book projects, I sometimes fix pagebreaking by stretching paragraphs with \looseness=1
>> Unfortunately this works _in my project_ only with MkIV, i.e. \looseness has no effect with LMTX.
>> I tried different examples (e.g. the attached file) and can’t reproduce the problem, there MkIV and LMTX always behave the same.
>> So it must be something in my settings.
>> What could cause the difference?
>> I tried English and German and different settings of alignment and tolerance.
>> Might it be font dependent?
> 
> explained in manuals ...
> 
> \startlinenumbering
> \startparagraph
> Weit .. beirren.
> \stopparagraph
> \stoplinenumbering
> 
> \startlinenumbering
> \startparagraph\looseness=+2
> Weit .. beirren.
> \stopparagraph
> \stoplinenumbering
> 
> \startlinenumbering
> \startparagraph
> Weit .. beirren.
> \looseness=+2\updateparagraphproperties\stopparagraph
> \stoplinenumbering
> 
> in lmxt we freeze the properties set when a paragraph starts (contrary to using the last set value which actually fails when you set it inside a group)
> 
> so, when you change some property mid paragraph you need to update the properties in order for them to be effective (can be done for looseness only if really needed); that works independent of grouping so it's more robust

Ok, but I thought I needed to use \looseness directly at the beginning of the paragraph, since it’s forgotten after the next \par?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: no looseness in LMTX?
  2021-09-07 11:15 ` Wolfgang Schuster via ntg-context
@ 2021-09-07 13:13   ` Henning Hraban Ramm via ntg-context
  2021-09-07 13:27     ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-07 13:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm



> Am 07.09.2021 um 13:15 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
> 
> Henning Hraban Ramm via ntg-context schrieb am 07.09.2021 um 11:49:
>> In my magazine and book projects, I sometimes fix pagebreaking by stretching paragraphs with \looseness=1
>> 
>> Unfortunately this works _in my project_ only with MkIV, i.e. \looseness has no effect with LMTX.
>> 
>> I tried different examples (e.g. the attached file) and can’t reproduce the problem, there MkIV and LMTX always behave the same.
>> So it must be something in my settings.
>> 
>> What could cause the difference?
>> I tried English and German and different settings of alignment and tolerance.
>> Might it be font dependent?
> 
> Do you enable protrusion and font expansion for your document font or is it just missing in your example?

You’re right, this was missing in the example:

\definefontfeature[default]
[mode=node,liga=no,kern=yes,tlig=no,
  ccmp=yes,language=dflt,
  protrusion=quality,
  expansion=quality]

But that also doesn’t change that the example works the same with MkIV and LMTX, but not my project.

> Have you checked if the alignment changes when you use the "extremestretch" keyword for \setupalign?

I see no difference, and again it works in both versions the same.
It also doesn’t change that \looseness isn’t working in my project.


But \updateparagraphproperties (see Hans’ message) helps, it’s just inconvenient.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: no looseness in LMTX?
  2021-09-07 13:13   ` Henning Hraban Ramm via ntg-context
@ 2021-09-07 13:27     ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2021-09-07 13:27 UTC (permalink / raw)
  To: Henning Hraban Ramm via ntg-context; +Cc: Hans Hagen

On 9/7/2021 3:13 PM, Henning Hraban Ramm via ntg-context wrote:

> But \updateparagraphproperties (see Hans’ message) helps, it’s just inconvenient.
depends ... if you're in some group before a \par is given you won't get 
looseness which is way harder to track down, and carrying that on eover 
an egroup is not something you want to do (let alone carrying over 20 
groups)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-07 13:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07  9:49 no looseness in LMTX? Henning Hraban Ramm via ntg-context
2021-09-07 11:15 ` Wolfgang Schuster via ntg-context
2021-09-07 13:13   ` Henning Hraban Ramm via ntg-context
2021-09-07 13:27     ` Hans Hagen via ntg-context
2021-09-07 12:07 ` Hans Hagen via ntg-context
2021-09-07 12:57   ` Henning Hraban Ramm via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).