From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: alignment parameters
Date: Mon, 20 Jan 2020 05:57:14 +0100 [thread overview]
Message-ID: <20200120055714.9cab890f3548b540ca7df26d@gmail.com> (raw)
In-Reply-To: <BE7F3257-12ED-4AE9-AFF1-0B3E2591DFFD@fiee.net>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-01-20 4:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-19 12:59 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 [this message]
2020-01-20 6:05 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200120055714.9cab890f3548b540ca7df26d@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).