From: Alexander Dyomin <alexdyomin@yandex.ru>
To: ntg-context@ntg.nl
Subject: Automatic negative tracking to prevent slight overfull hbox's
Date: Thu, 14 Jan 2016 02:07:33 +0300 [thread overview]
Message-ID: <2902051452726453@web13o.yandex.ru> (raw)
Dear list,
when I stumble upon a slightly overhanging line (where it's not allowed to hyphenate the hanging word and putting it on next line leaves huge whitespaces), decreasing letterspacing in that line seems like a good idea, and I manually insert \kerncharacters commands to do the trick. Here's a MWE for the purpose of demonstration:
% ConTeXt code
\setuppapersize[A5]
\setupbackgrounds[text] [rightframe=on,framecolor=red,rulethickness=0.1pt] %right margin line
\setupalign[hz,hanging] % microtypography enabled
\definefontfeature[default][default][protrusion=quality,expansion=quality]
\definetypeface[mainface][rm][specserif][Linux Libertine O] [default]
\setupbodyfont[mainface,14pt]
\mainlanguage[russian]
\setupindenting[yes,medium,first]
\starttext
{\kerncharacters[-0.018] Здесь будет длинный-предлинный текст, \mbox{в~коем}} никак нельзя перенести строку.
Запрещено { \kerncharacters[-0.008] разрывать телефонные номера, например, \mbox{(000)1234-5678}}, многозначные числа и дефисные написания.
\stoptext
Is the a way for automating such negative tracking?
----------------------------------
Best regards,
Alexander Dyomin
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2016-01-13 23:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 23:07 Alexander Dyomin [this message]
2016-01-16 17:57 ` Aditya Mahajan
2016-01-17 18:27 ` Hans Hagen
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=2902051452726453@web13o.yandex.ru \
--to=alexdyomin@yandex.ru \
--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).