ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Paragraph - the last line handling
       [not found] <012e01cee7cf$2d36b690$87a423b0$@tosovsky@email.cz>
@ 2013-11-23 12:29 ` Hans Hagen
  2013-11-23 13:43   ` Jan Tosovsky
       [not found]   ` <002701cee852$00817710$01846530$@tosovsky@email.cz>
  0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2013-11-23 12:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
> Hello Everyone,
>
> in my document there are lot of cases when the last line in the paragraph
> has a very narrow gap on the right (case 1 below). I understand it is
> sometimes difficult to squeeze characters to the desired lenght (case 2)
> without any impact to the final quality, but this looks very unnatural now
> (besides all other lines, which are nicely typeset keeping the optical edge
> on the right).
>
> Is it possible to somehow define that under a certain limit the line will be
> expanded to the end (case 3)?
>
>    xxxxxxxxxxxx  (1)
> xxxxxxxxxxxxxx
> xxxxxxxxxxxxx
>    xxxxxxxxxxxx  (2)
> xxxxxxxxxxxxxx
> xxxxxxxxxxxx
>    xxxxxxxxxxxx  (3)
> xxxxxxxxxxxxxx
> xxxxxxxxxxxxxx
>
> I use the following setup now:
>
> \setupalign[hz, hanging]
> \setuptolerance[verystrict] % even 'strict' doesn't help here
> \setupindenting[medium, yes]
>
> Any idea?

\hsize 15.4cm

\input tufte

\parfillskip30pt plus 1 fill  \input tufte


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Paragraph - the last line handling
  2013-11-23 12:29 ` Paragraph - the last line handling Hans Hagen
@ 2013-11-23 13:43   ` Jan Tosovsky
       [not found]   ` <002701cee852$00817710$01846530$@tosovsky@email.cz>
  1 sibling, 0 replies; 7+ messages in thread
From: Jan Tosovsky @ 2013-11-23 13:43 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2013-11-23 Hans Hagen wrote:
> On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
> >
> > in my document there are lot of cases when the last line in the
> > paragraph has a very narrow gap on the right. 
> 
> \hsize 15.4cm
> 
> \input tufte
> 
> \parfillskip30pt plus 1 fill  \input tufte

Wow, exactly! Thanks a lot.

Sorry for a dumb question, but is there any way how to use it globally for
all paragraphs in my document?

Thanks, Jan

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Paragraph - the last line handling
       [not found]   ` <002701cee852$00817710$01846530$@tosovsky@email.cz>
@ 2013-11-23 14:11     ` Hans Hagen
  2013-11-23 14:44       ` Jan Tosovsky
                         ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hans Hagen @ 2013-11-23 14:11 UTC (permalink / raw)
  To: ntg-context

On 11/23/2013 2:43 PM, Jan Tosovsky wrote:
> On 2013-11-23 Hans Hagen wrote:
>> On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
>>>
>>> in my document there are lot of cases when the last line in the
>>> paragraph has a very narrow gap on the right.
>>
>> \hsize 15.4cm
>>
>> \input tufte
>>
>> \parfillskip30pt plus 1 fill  \input tufte
>
> Wow, exactly! Thanks a lot.
>
> Sorry for a dumb question, but is there any way how to use it globally for
> all paragraphs in my document?

no, as i need to think of a decent interface to that (so remind me in a 
few months)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Paragraph - the last line handling
  2013-11-23 14:11     ` Hans Hagen
@ 2013-11-23 14:44       ` Jan Tosovsky
  2014-02-19 22:00       ` Jan Tosovsky
       [not found]       ` <01c401cf2dbe$01385960$03a90c20$@tosovsky@email.cz>
  2 siblings, 0 replies; 7+ messages in thread
From: Jan Tosovsky @ 2013-11-23 14:44 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2013-11-23 Hans Hagen wrote:
> On 11/23/2013 2:43 PM, Jan Tosovsky wrote:
> > On 2013-11-23 Hans Hagen wrote:
> >> On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
> >>>
> >>> in my document there are lot of cases when the last line in the
> >>> paragraph has a very narrow gap on the right.
> >>
> >> \hsize 15.4cm
> >>
> >> \input tufte
> >>
> >> \parfillskip30pt plus 1 fill  \input tufte
> >
> > Sorry for a dumb question, but is there any way how to use it
> > globally for all paragraphs in my document?
> 
> no, as i need to think of a decent interface to that (so remind me in a
> few months)

Ok. And is there any temporary hack like redefining \par macro on my side?
I've stumbled upon macro redefining somewhere, but I have no idea if this
case is doable this way. I am still newbie in the TeX world...

Jan

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Paragraph - the last line handling
  2013-11-23 14:11     ` Hans Hagen
  2013-11-23 14:44       ` Jan Tosovsky
@ 2014-02-19 22:00       ` Jan Tosovsky
       [not found]       ` <01c401cf2dbe$01385960$03a90c20$@tosovsky@email.cz>
  2 siblings, 0 replies; 7+ messages in thread
From: Jan Tosovsky @ 2014-02-19 22:00 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2013-11-23 Hans Hagen wrote:
> On 11/23/2013 2:43 PM, Jan Tosovsky wrote:
> > On 2013-11-23 Hans Hagen wrote:
> >> On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
> >>>
> >>> in my document there are lot of cases when the last line in the
> >>> paragraph has a very narrow gap on the right.
> >>
> >> \hsize 15.4cm
> >>
> >> \input tufte
> >>
> >> \parfillskip30pt plus 1 fill  \input tufte
> >
> > Wow, exactly! Thanks a lot.
> >
> > Sorry for a dumb question, but is there any way how to use it
> > globally for all paragraphs in my document?
> 
> no, as i need to think of a decent interface to that (so remind me in a
> few months)

When this gap (parfillskip) is set in the beginning of the document, it is
shared for all paragraphs within the document. I was not aware of that.

But I've encountered this weird edge case. When the text is followed with
\stopregister command, the last line has no gap at all:


\starttext

\hsize 15.3cm % in older versions this value has to be set to 15.4cm

\input tufte

\parfillskip 30pt plus 1 fill  

\input tufte
 
\startregister[index][test]{test}
\input{tufte}
\stopregister[index][test]

\stoptext

It can be fixed by a blank line inserted before \stopregister command, but
this is unacceptable in my case for other reasons.

Any idea?

Thanks, Jan

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Paragraph - the last line handling
       [not found]       ` <01c401cf2dbe$01385960$03a90c20$@tosovsky@email.cz>
@ 2014-02-22 13:06         ` Jan Tosovsky
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Tosovsky @ 2014-02-22 13:06 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2014-02-19 Jan Tosovsky wrote:
> On 2013-11-23 Hans Hagen wrote:
> > On 11/23/2013 2:43 PM, Jan Tosovsky wrote:
> > > On 2013-11-23 Hans Hagen wrote:
> > >> On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
> > >>>
> > >>> in my document there are lot of cases when the last line in the
> > >>> paragraph has a very narrow gap on the right.
> > >>
> > >> \hsize 15.4cm
> > >>
> > >> \input tufte
> > >>
> > >> \parfillskip30pt plus 1 fill  \input tufte
> > >
> > > Wow, exactly! Thanks a lot.
> > >
> > > Sorry for a dumb question, but is there any way how to use it
> > > globally for all paragraphs in my document?
> >
> > no, as i need to think of a decent interface to that (so remind me in
> > a few months)
> 
> When this gap (parfillskip) is set in the beginning of the document, it
> is shared for all paragraphs within the document. I was not aware of that.
>

I've found while this setting in the beginning of the document is applied to
all paragraphs, it is not shared in footnotes.

I am fixing it by repeating this command at the beginning of every footnote,
but I am curious why footnotes are handled differently. 

Is it possible to set this behavïour for footnotes globally only once?

Thanks, Jan


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Paragraph - the last line handling
@ 2013-11-22 22:07 Jan Tosovsky
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Tosovsky @ 2013-11-22 22:07 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Hello Everyone,

in my document there are lot of cases when the last line in the paragraph
has a very narrow gap on the right (case 1 below). I understand it is
sometimes difficult to squeeze characters to the desired lenght (case 2)
without any impact to the final quality, but this looks very unnatural now
(besides all other lines, which are nicely typeset keeping the optical edge
on the right).

Is it possible to somehow define that under a certain limit the line will be
expanded to the end (case 3)? 

  xxxxxxxxxxxx  (1)
xxxxxxxxxxxxxx
xxxxxxxxxxxxx
  xxxxxxxxxxxx  (2)
xxxxxxxxxxxxxx
xxxxxxxxxxxx
  xxxxxxxxxxxx  (3)
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx

I use the following setup now:

\setupalign[hz, hanging]
\setuptolerance[verystrict] % even 'strict' doesn't help here
\setupindenting[medium, yes]

Any idea?

Thanks, Jan

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2014-02-22 13:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <012e01cee7cf$2d36b690$87a423b0$@tosovsky@email.cz>
2013-11-23 12:29 ` Paragraph - the last line handling Hans Hagen
2013-11-23 13:43   ` Jan Tosovsky
     [not found]   ` <002701cee852$00817710$01846530$@tosovsky@email.cz>
2013-11-23 14:11     ` Hans Hagen
2013-11-23 14:44       ` Jan Tosovsky
2014-02-19 22:00       ` Jan Tosovsky
     [not found]       ` <01c401cf2dbe$01385960$03a90c20$@tosovsky@email.cz>
2014-02-22 13:06         ` Jan Tosovsky
2013-11-22 22:07 Jan Tosovsky

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).