From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Manual hyphenation
Date: Thu, 24 May 2007 12:19:44 +0200 [thread overview]
Message-ID: <465566C0.3050608@wxs.nl> (raw)
In-Reply-To: <e65d34bf0705240222i26f41465w9c61f285ec7573f3@mail.gmail.com>
Elliot Clifton wrote:
> Thank you very much Taco. It works very well. It really is useful to
> be able to select less aggressive hyphenation when necessary.
>
>
here is a variant: stepwise and relative to the current values:
\unprotect
\startvariables all
lesshyphenation: lesshyphenation
morehyphenation: morehyphenation
\stopvariables
\def\lesshyphens
{\lefthyphenmin =\numexpr\lefthyphenmin +1\relax
\righthyphenmin=\numexpr\righthyphenmin+1\relax}
\def\morehyphens
{\ifcase\lefthyphenmin \else
\lefthyphenmin =\numexpr\lefthyphenmin +1\relax
\fi
\ifcase\righthyphenmin\else
\righthyphenmin=\numexpr\righthyphenmin+1\relax
\fi}
\installalign \v!lesshyphenation {\lesshyphens}
\installalign \v!morehyphenation {\morehyphens}
%D The next two lines implement 'align=lesshyphenation' as an option
%D for \type{\framed} etc.
\setvalue{\@@ragged@@command\v!lesshyphenation}{\appendtoks\lesshyphens\to\everyraggedcommand}
\setvalue{\@@ragged@@command\v!morehyphenation}{\appendtoks\morehyphens\to\everyraggedcommand}
\protect
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2007-05-24 10:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-24 9:22 Elliot Clifton
2007-05-24 10:19 ` Hans Hagen [this message]
2007-05-24 12:43 ` John R. Culleton
2007-06-01 18:10 ` page break handle in TOC Horacio Suarez
2007-06-02 20:16 ` Hans Hagen
2007-06-02 20:22 ` Steffen Wolfrum
2007-06-02 20:59 ` Hans Hagen
2007-06-04 8:53 ` Steffen Wolfrum
2007-06-12 22:01 ` hyphenation inside natural tables Horacio Suarez
2007-06-13 6:44 ` Wolfgang Schuster
2007-06-13 14:33 ` Horacio Suarez
2007-06-13 16:16 ` Aditya Mahajan
2007-06-02 21:20 ` page break handle in TOC Horacio Suarez
2007-05-24 10:29 ` Manual hyphenation Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2007-05-23 23:23 Elliot Clifton
2007-05-24 7:39 ` Taco Hoekwater
2007-05-24 16:52 ` Elliot Clifton
2007-05-23 19:48 Elliot Clifton
2007-05-23 21:28 ` Thomas A. Schmitz
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=465566C0.3050608@wxs.nl \
--to=pragma@wxs.nl \
--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).