![](https://secure.gravatar.com/avatar/7b379a30e1f93c5c5ed942c7a404fd86.jpg?s=120&d=mm&r=g)
Hi, I used the following code to set up margin kerning: \setupfontsynonym[cmr10][handling=hz] \setupfontsynonym[Serif][handling=hz] \usetypescript[cmr] \setupbodyfont[cmr,10pt] \setupalign[hz,hanging] Can someone please tell me what is going wrong? Thanks!! Colin
![](https://secure.gravatar.com/avatar/a5cd60098cd767332ac751c0ccd8091e.jpg?s=120&d=mm&r=g)
Colin— I think \setupalign has to come before \setupbodyfont is defined. Try \setupalign[hz,hanging] \usetypescript[cmr] \setupfontsynonym[cmr10][handling=hz] \setupfontsynonym[Serif][handling=hz] \setupbodyfont[cmr,10pt] Alan On Jul 23, 2006, at 9:54 AM, Helin Gai wrote:
Hi,
I used the following code to set up margin kerning:
\setupfontsynonym[cmr10][handling=hz] \setupfontsynonym[Serif][handling=hz] \usetypescript[cmr] \setupbodyfont[cmr,10pt] \setupalign[hz,hanging]
Can someone please tell me what is going wrong? Thanks!!
Colin _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
![](https://secure.gravatar.com/avatar/7b379a30e1f93c5c5ed942c7a404fd86.jpg?s=120&d=mm&r=g)
Hi Alan, Thanks for the reply. But it doesn't seem to work either. Colin On Jul 23, 2006, at 10:40 PM, Alan Bowen wrote:
Colin—
I think \setupalign has to come before \setupbodyfont is defined. Try
\setupalign[hz,hanging]
\usetypescript[cmr]
\setupfontsynonym[cmr10][handling=hz]
\setupfontsynonym[Serif][handling=hz]
\setupbodyfont[cmr,10pt]
Alan
On Jul 23, 2006, at 9:54 AM, Helin Gai wrote:
Hi,
I used the following code to set up margin kerning:
\setupfontsynonym[cmr10][handling=hz] \setupfontsynonym[Serif][handling=hz] \usetypescript[cmr] \setupbodyfont[cmr,10pt] \setupalign[hz,hanging]
Can someone please tell me what is going wrong? Thanks!!
Colin _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
![](https://secure.gravatar.com/avatar/a5cd60098cd767332ac751c0ccd8091e.jpg?s=120&d=mm&r=g)
Colin— Sorry: what I indicated would work for any font but Latin/Computer Modern. This works at my end. \enableregime[mac] \mainlanguage[en] %%%% Margin Kerning and Font Expansion \usetypescript[serif,sans,mono,mm][hanging][normal] \setupalign[hz,hanging] \setupfootnotes[align={hz,hanging}] %%%% Default Encoding \setupencoding[default=texnansi] % install Latin Modern % install margin kerning before the font is loaded: since Latin is % loaded before font definitions, load it again \starttypescript[serif][default][size] \definebodyfont[9.5pt,10.5pt][rm][default] \definebodyfont[9.5pt,10.5pt][mm][default] \stoptypescript On Jul 23, 2006, at 10:43 AM, Helin Gai wrote:
Hi Alan,
Thanks for the reply. But it doesn't seem to work either.
Colin
On Jul 23, 2006, at 10:40 PM, Alan Bowen wrote:
Colin—
I think \setupalign has to come before \setupbodyfont is defined. Try
\setupalign[hz,hanging]
\usetypescript[cmr]
\setupfontsynonym[cmr10][handling=hz]
\setupfontsynonym[Serif][handling=hz]
\setupbodyfont[cmr,10pt]
Alan
On Jul 23, 2006, at 9:54 AM, Helin Gai wrote:
Hi,
I used the following code to set up margin kerning:
\setupfontsynonym[cmr10][handling=hz] \setupfontsynonym[Serif][handling=hz] \usetypescript[cmr] \setupbodyfont[cmr,10pt] \setupalign[hz,hanging]
Can someone please tell me what is going wrong? Thanks!!
Colin _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On 7/23/06, Helin Gai wrote:
Hi,
I used the following code to set up margin kerning:
\setupfontsynonym[cmr10][handling=hz] \setupfontsynonym[Serif][handling=hz] \usetypescript[cmr] \setupbodyfont[cmr,10pt] \setupalign[hz,hanging]
Can someone please tell me what is going wrong? Thanks!!
Does the recipe on http://wiki.contextgarden.net/Protrusion#Use_with_Latin_Modern help you? Mojca
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Mojca Miklavec wrote:
On 7/23/06, Helin Gai wrote:
Hi,
I used the following code to set up margin kerning:
\setupfontsynonym[cmr10][handling=hz] \setupfontsynonym[Serif][handling=hz] \usetypescript[cmr] \setupbodyfont[cmr,10pt] \setupalign[hz,hanging]
Can someone please tell me what is going wrong? Thanks!!
Does the recipe on http://wiki.contextgarden.net/Protrusion#Use_with_Latin_Modern help you?
because of tex's global font attribute assignments and font resource optimizations, one cannot add features after a font has been defined; so, in you rcase, the cmr fonts have already be defined try the wiki recipe instead: - tell what handlings to use which what style - then define the typeface - then invoke it \setupalign is independent of this and can be applied afterwards when needed 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 -----------------------------------------------------------------
participants (4)
-
Alan Bowen
-
Hans Hagen
-
Helin Gai
-
Mojca Miklavec