* alignment parameters
@ 2020-01-19 12:59 Henning Hraban Ramm
2020-01-19 19:02 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-01-19 12:59 UTC (permalink / raw)
To: Mailing list for ConTeXt users
Hi, for my section titles I’m looking for the alignment parameters that give me:
- left aligned
- no hyphenation (or only where I set breakpoints manually)
- no overfull hboxes
At the moment I have
align={flushleft,extremestretch,nothyphenated}
(would use also hz and hanging, if they don’t interfere),
but in a few cases I still get section titles that are much wider than the text column.
Can I reduce the penalty for underfull hboxes? Or what else?
In case it matters, this is within a columnset.
Best, 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] 7+ messages in thread
* Re: alignment parameters
2020-01-19 12:59 alignment parameters Henning Hraban Ramm
@ 2020-01-19 19:02 ` Wolfgang Schuster
2020-01-19 19:56 ` Henning Hraban Ramm
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2020-01-19 19:02 UTC (permalink / raw)
To: ntg-context
On Sun, 19 Jan 2020 13:59:15 +0100
Henning Hraban Ramm <texml@fiee.net> wrote:
> Hi, for my section titles I’m looking for the alignment parameters that give me:
> - left aligned
> - no hyphenation (or only where I set breakpoints manually)
> - no overfull hboxes
>
> At the moment I have
> align={flushleft,extremestretch,nothyphenated}
> (would use also hz and hanging, if they don’t interfere),
> but in a few cases I still get section titles that are much wider than the text column.
align={flushleft,broad,nothyphenated}
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] 7+ messages in thread
* Re: alignment parameters
2020-01-19 19:02 ` Wolfgang Schuster
@ 2020-01-19 19:56 ` Henning Hraban Ramm
2020-01-19 20:01 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-01-19 19:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
>
> On Sun, 19 Jan 2020 13:59:15 +0100
> Henning Hraban Ramm <texml@fiee.net> wrote:
>
>> Hi, for my section titles I’m looking for the alignment parameters that give me:
>> - left aligned
>> - no hyphenation (or only where I set breakpoints manually)
>> - no overfull hboxes
>>
>> At the moment I have
>> align={flushleft,extremestretch,nothyphenated}
>> (would use also hz and hanging, if they don’t interfere),
>> but in a few cases I still get section titles that are much wider than the text column.
>
> align={flushleft,broad,nothyphenated}
Thank you, but unfortunately it makes no difference.
Best, 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] 7+ messages in thread
* Re: alignment parameters
2020-01-19 19:56 ` Henning Hraban Ramm
@ 2020-01-19 20:01 ` Wolfgang Schuster
2020-01-19 21:44 ` Henning Hraban Ramm
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2020-01-19 20:01 UTC (permalink / raw)
To: ntg-context
On Sun, 19 Jan 2020 20:56:53 +0100
Henning Hraban Ramm <texml@fiee.net> wrote:
>
> > Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
> >
> > On Sun, 19 Jan 2020 13:59:15 +0100
> > Henning Hraban Ramm <texml@fiee.net> wrote:
> >
> >> Hi, for my section titles I’m looking for the alignment parameters that give me:
> >> - left aligned
> >> - no hyphenation (or only where I set breakpoints manually)
> >> - no overfull hboxes
> >>
> >> At the moment I have
> >> align={flushleft,extremestretch,nothyphenated}
> >> (would use also hz and hanging, if they don’t interfere),
> >> but in a few cases I still get section titles that are much wider than the text column.
> >
> > align={flushleft,broad,nothyphenated}
>
> Thank you, but unfortunately it makes no difference.
You have to provide a minimal example.
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] 7+ messages in thread
* Re: alignment parameters
2020-01-19 20:01 ` Wolfgang Schuster
@ 2020-01-19 21:44 ` Henning Hraban Ramm
2020-01-20 4:57 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-01-19 21:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
>>>
>>>> Hi, for my section titles I’m looking for the alignment parameters that give me:
>>>> - left aligned
>>>> - no hyphenation (or only where I set breakpoints manually)
>>>> - no overfull hboxes
>>>>
>>>> At the moment I have
>>>> align={flushleft,extremestretch,nothyphenated}
>>>> (would use also hz and hanging, if they don’t interfere),
>>>> but in a few cases I still get section titles that are much wider than the text column.
>>>
>>> align={flushleft,broad,nothyphenated}
>>
>> Thank you, but unfortunately it makes no difference.
>
> You have to provide a minimal example.
I know. My project setup is just so extensive, and there are several problems that I'm trying to isolate since days…
I was hoping for an easy solution in this case.
I already learned that \setuplayout[grid=strut] makes more problems than it solves while fontfeature dimensions=strut is good; I should avoid frames in section titles (not necessarily, but it’s more controllable without); how to get more control over makeups and that columnsets are somewhat fastidious, esp. with floats…
Still open: this one, different behaviour of \blank in before vs. command, chapters always starting on left pages despite page=no (a side effect of the columnset, I guess), and floats, floats, floats.
But here we are:
\setuppapersize[A6]
\showframe[text]
\setupalign[flushleft,broad,nothyphenated]
\define[2]\MySection{\vbox{#2}}
\setuphead[section][
command=\MySection,
%align={flushleft,broad,nothyphenated},
]
\starttext
\section{Rübenheimer Klimaschutz\-kommission interveniert wohlwollend.}
% It should break "Klimaschutz-komission" or put the whole word in the next line,
% but it keeps the first two words together.
\section{Ein Schwarzelf mit Gelatinewürfel zagt im Regen nie.}
\section{Die Donau\-dampfschifffahrts\-gesellschaft lädt zum Tanztee.}
\stoptext
Best, 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] 7+ messages in thread
* Re: alignment parameters
2020-01-19 21:44 ` Henning Hraban Ramm
@ 2020-01-20 4:57 ` Wolfgang Schuster
2020-01-20 6:05 ` Henning Hraban Ramm
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2020-01-20 4:57 UTC (permalink / raw)
To: ntg-context
On Sun, 19 Jan 2020 22:44:02 +0100
Henning Hraban Ramm <texml@fiee.net> wrote:
>
> > Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
> >>>
> >>>> Hi, for my section titles I’m looking for the alignment parameters that give me:
> >>>> - left aligned
> >>>> - no hyphenation (or only where I set breakpoints manually)
> >>>> - no overfull hboxes
> >>>>
> >>>> At the moment I have
> >>>> align={flushleft,extremestretch,nothyphenated}
> >>>> (would use also hz and hanging, if they don’t interfere),
> >>>> but in a few cases I still get section titles that are much wider than the text column.
> >>>
> >>> align={flushleft,broad,nothyphenated}
> >>
> >> Thank you, but unfortunately it makes no difference.
> >
> > You have to provide a minimal example.
>
> I know. My project setup is just so extensive, and there are several problems that I'm trying to isolate since days…
> I was hoping for an easy solution in this case.
>
> I already learned that \setuplayout[grid=strut] makes more problems than it solves while fontfeature dimensions=strut is good;I should avoid frames in section titles (not necessarily, but it’s more controllable without); how to get more control over makeups and that columnsets are somewhat fastidious, esp. with floats…
Use \setuplayout[grid=yes] when "grid=strut" doesn't work.
> Still open: this one, different behaviour of \blank in before vs. command, chapters always starting on left pages despite page=no (a side effect of the columnset, I guess), and floats, floats, floats.
>
> But here we are:
>
>
> \setuppapersize[A6]
> \showframe[text]
> \setupalign[flushleft,broad,nothyphenated]
> \define[2]\MySection{\vbox{#2}}
Put the alignment command in the box.
\define[2]\MySection
{\vbox{\setupalign[flushleft,broad,nothyphenated]#2}}
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] 7+ messages in thread
* Re: alignment parameters
2020-01-20 4:57 ` Wolfgang Schuster
@ 2020-01-20 6:05 ` Henning Hraban Ramm
0 siblings, 0 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-01-20 6:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 2020-01-20 um 05:57 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
>> I already learned that \setuplayout[grid=strut] makes more problems than it solves while fontfeature dimensions=strut is good;I should avoid frames in section titles (not necessarily, but it’s more controllable without); how to get more control over makeups and that columnsets are somewhat fastidious, esp. with floats…
>
> Use \setuplayout[grid=yes] when "grid=strut" doesn't work.
That’s what I do.
>> \setuppapersize[A6]
>> \showframe[text]
>> \setupalign[flushleft,broad,nothyphenated]
>> \define[2]\MySection{\vbox{#2}}
>
> Put the alignment command in the box.
>
> \define[2]\MySection
> {\vbox{\setupalign[flushleft,broad,nothyphenated]#2}}
Oh yes, thank you!
Could have tried that myself.
Best, 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] 7+ messages in thread
end of thread, other threads:[~2020-01-20 6:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-19 12:59 alignment parameters Henning Hraban Ramm
2020-01-19 19:02 ` Wolfgang Schuster
2020-01-19 19:56 ` Henning Hraban Ramm
2020-01-19 20:01 ` Wolfgang Schuster
2020-01-19 21:44 ` Henning Hraban Ramm
2020-01-20 4:57 ` Wolfgang Schuster
2020-01-20 6:05 ` Henning Hraban Ramm
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).