ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Re: Linebreaks
@ 2025-05-20 11:46 Denis Maier via ntg-context
  2025-05-20 12:10 ` Denis Maier via ntg-context
  2025-05-26  9:11 ` Linebreaks Denis Maier via ntg-context
  0 siblings, 2 replies; 5+ messages in thread
From: Denis Maier via ntg-context @ 2025-05-20 11:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: denismaier


[-- Attachment #1.1: Type: text/plain, Size: 616 bytes --]

Probably this: \penalty-10000

Or is there a better command?

 

Von: denismaier@mailbox.org <denismaier@mailbox.org> 
Gesendet: Dienstag, 20. Mai 2025 13:45
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Betreff: Linebreaks

 

I just wanted check how I can indicate good places for linebreaks.

This pages should help me:
https://wiki.contextgarden.net/Text_blocks/Typography/Delimiters_and_breaks

But the relevant paragraph just says: "If you would like to tell ConTeXt
that this might be a good place for a line break, you can use" (Text stops
here.)

 

What should I add there?`

 

Best,

Denis

 


[-- Attachment #1.2: Type: text/html, Size: 3921 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Linebreaks
  2025-05-20 11:46 [NTG-context] Re: Linebreaks Denis Maier via ntg-context
@ 2025-05-20 12:10 ` Denis Maier via ntg-context
  2025-05-26  9:11 ` Linebreaks Denis Maier via ntg-context
  1 sibling, 0 replies; 5+ messages in thread
From: Denis Maier via ntg-context @ 2025-05-20 12:10 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'; +Cc: denismaier


[-- Attachment #1.1: Type: text/plain, Size: 1155 bytes --]

Probably not. It does give me linebreak, but I'm also loosing justification
in the relevant line. So how should I go about it? 

Best,

Denis

 

Von: Denis Maier via ntg-context <ntg-context@ntg.nl> 
Gesendet: Dienstag, 20. Mai 2025 13:47
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: denismaier@mailbox.org
Betreff: [NTG-context] Re: Linebreaks

 

Probably this: \penalty-10000

Or is there a better command?

 

Von:  <mailto:denismaier@mailbox.org> denismaier@mailbox.org <
<mailto:denismaier@mailbox.org> denismaier@mailbox.org> 
Gesendet: Dienstag, 20. Mai 2025 13:45
An: mailing list for ConTeXt users < <mailto:ntg-context@ntg.nl>
ntg-context@ntg.nl>
Betreff: Linebreaks

 

I just wanted check how I can indicate good places for linebreaks.

This pages should help me:
<https://wiki.contextgarden.net/Text_blocks/Typography/Delimiters_and_breaks
>
https://wiki.contextgarden.net/Text_blocks/Typography/Delimiters_and_breaks

But the relevant paragraph just says: "If you would like to tell ConTeXt
that this might be a good place for a line break, you can use" (Text stops
here.)

 

What should I add there?`

 

Best,

Denis

 


[-- Attachment #1.2: Type: text/html, Size: 6409 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: Linebreaks
  2025-05-20 11:46 [NTG-context] Re: Linebreaks Denis Maier via ntg-context
  2025-05-20 12:10 ` Denis Maier via ntg-context
@ 2025-05-26  9:11 ` Denis Maier via ntg-context
  2025-05-26 17:34   ` Linebreaks Wolfgang Schuster
  1 sibling, 1 reply; 5+ messages in thread
From: Denis Maier via ntg-context @ 2025-05-26  9:11 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'; +Cc: denismaier


[-- Attachment #1.1: Type: text/plain, Size: 1673 bytes --]

Ok, I found the issue. My xml setups were introducing spurios whitespace
here. 

Both \penalty-10000 and \break seem to do the job. 

Is there a difference between the two? Which one should I add to the wiki?

 

Best,

Denis

 

Von: denismaier@mailbox.org <denismaier@mailbox.org> 
Gesendet: Dienstag, 20. Mai 2025 14:11
An: 'mailing list for ConTeXt users' <ntg-context@ntg.nl>
Betreff: AW: [NTG-context] Re: Linebreaks

 

Probably not. It does give me linebreak, but I'm also loosing justification
in the relevant line. So how should I go about it? 

Best,

Denis

 

Von: Denis Maier via ntg-context <ntg-context@ntg.nl
<mailto:ntg-context@ntg.nl> > 
Gesendet: Dienstag, 20. Mai 2025 13:47
An: mailing list for ConTeXt users <ntg-context@ntg.nl
<mailto:ntg-context@ntg.nl> >
Cc: denismaier@mailbox.org <mailto:denismaier@mailbox.org> 
Betreff: [NTG-context] Re: Linebreaks

 

Probably this: \penalty-10000

Or is there a better command?

 

Von:  <mailto:denismaier@mailbox.org> denismaier@mailbox.org <
<mailto:denismaier@mailbox.org> denismaier@mailbox.org> 
Gesendet: Dienstag, 20. Mai 2025 13:45
An: mailing list for ConTeXt users < <mailto:ntg-context@ntg.nl>
ntg-context@ntg.nl>
Betreff: Linebreaks

 

I just wanted check how I can indicate good places for linebreaks.

This pages should help me:
<https://wiki.contextgarden.net/Text_blocks/Typography/Delimiters_and_breaks
>
https://wiki.contextgarden.net/Text_blocks/Typography/Delimiters_and_breaks

But the relevant paragraph just says: "If you would like to tell ConTeXt
that this might be a good place for a line break, you can use" (Text stops
here.)

 

What should I add there?`

 

Best,

Denis

 


[-- Attachment #1.2: Type: text/html, Size: 8124 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: Linebreaks
  2025-05-26  9:11 ` Linebreaks Denis Maier via ntg-context
@ 2025-05-26 17:34   ` Wolfgang Schuster
  2025-05-26 18:47     ` Linebreaks Rik Kabel
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2025-05-26 17:34 UTC (permalink / raw)
  To: ntg-context

Am 26.05.2025 um 11:11 schrieb Denis Maier via ntg-context:
> Ok, I found the issue. My xml setups were introducing spurios whitespace 
> here.
> 
> Both \penalty-10000 and \break seem to do the job.
> 
> Is there a difference between the two? Which one should I add to the wiki?

There is no difference between \break and \penalty-10000 because the 
\break command inserts a negative penalty of 10000.

Other penalty command are \nobreak (for \penalty 10000) and \allowbreak 
(for \penalty 0).

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
___________________________________________________________________________________


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

* Re: Linebreaks
  2025-05-26 17:34   ` Linebreaks Wolfgang Schuster
@ 2025-05-26 18:47     ` Rik Kabel
  0 siblings, 0 replies; 5+ messages in thread
From: Rik Kabel @ 2025-05-26 18:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1152 bytes --]



On May 26, 2025 1:34:50 PM EDT, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>Am 26.05.2025 um 11:11 schrieb Denis Maier via ntg-context:
>> Ok, I found the issue. My xml setups were introducing spurios whitespace here.
>> 
>> Both \penalty-10000 and \break seem to do the job.
>> 
>> Is there a difference between the two? Which one should I add to the wiki?
>
>There is no difference between \break and \penalty-10000 because the \break command inserts a negative penalty of 10000.
>
>Other penalty command are \nobreak (for \penalty 10000) and \allowbreak (for \penalty 0).
>
>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
>___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 1726 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2025-05-26 18:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 11:46 [NTG-context] Re: Linebreaks Denis Maier via ntg-context
2025-05-20 12:10 ` Denis Maier via ntg-context
2025-05-26  9:11 ` Linebreaks Denis Maier via ntg-context
2025-05-26 17:34   ` Linebreaks Wolfgang Schuster
2025-05-26 18:47     ` Linebreaks Rik Kabel

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