[NTG-context] alignment parameters
Henning Hraban Ramm
texml at fiee.net
Sun Jan 19 22:44:02 CET 2020
> Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster <wolfgang.schuster.lists at 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
More information about the ntg-context
mailing list