[NTG-context] Microtipography

Tommaso Gordini illinguista1972 at gmail.com
Wed May 25 17:06:05 CEST 2022


Thank you, Henri!

Tommaso

Il mer 25 mag 2022, 16:59 Henri Menke via ntg-context <ntg-context at ntg.nl>
ha scritto:

> On Wed, 2022-05-25 at 15:51 +0200, Tommaso Gordini via ntg-context
> wrote:
> > Hello list,
> >
> > here and there on the Net there are slightly different ways to
> > activate the
> > microtypography functionality in a ConTeXt document.
> >
> >  My question is: what is the most correct and clean way to do it?
>
> I do not claim that this is the cleanest way. Probably it's better to
> define a separate font feature for microtypography rather than
> overwriting the default set, but this definitely works:
>
>    \definefontfeature[default][default]
>      [protrusion=quality,
>       expansion=quality]
>
>    \setupbodyfont[modern] % or whatever
>
>    \setupalign[hz,hanging]
>
> Unfortunately the global alignment settings do not propagate into
> certain structures. For example itemizations, captions, and
> bibliographies just reset it and need special treatment:
>
>    \setupitemize[each][align={hz,hanging}]
>    \setupbtxlist[align={hz,hanging,tolerant}]
>    \setupcaption[figure][align={justified,hz,hanging}]
>
> I think captions are not justified by default, so that might or might
> not matter to you. Bibliographies are usually full or names and
> academic words that do not hyphenate well, so adding tolerant relaxes
> that a little bit.
>
> Cheers, Henri
>
> >
> > Thanks in advance
> > Tommaso
> > _____________________________________________________________________
> > ______________
> > If your question is of interest to others as well, please add an
> > entry to the Wiki!
> >
> > maillist : ntg-context at 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
> > _____________________________________________________________________
> > ______________
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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 part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220525/6448915f/attachment-0001.htm>


More information about the ntg-context mailing list