Re: [NTG-context] Margin Kerning Problem

2006-07-24 Thread Hans Hagen
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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Margin Kerning Problem

2006-07-23 Thread Alan Bowen
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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Margin Kerning Problem

2006-07-23 Thread Mojca Miklavec
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Margin Kerning Problem

2006-07-23 Thread Helin Gai
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


Re: [NTG-context] Margin Kerning Problem

2006-07-23 Thread Alan Bowen
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] Margin Kerning Problem

2006-07-23 Thread Helin Gai
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


Re: [NTG-context] margin kerning problem

2005-10-26 Thread David Wooten
Ah! My mistake. I have a defineparagraph in my bibliography which  
needed the align={hz,hanging} declared. Thanks.


David

On Oct 25, 2005, at 11:21 PM, Taco Hoekwater wrote:


David Wooten wrote:


Greetings all,
On a related note, is there a similar (or dissimilar for that  
matter)  solution to margin kerning with the bib-module?


I wasn't even aware that there is a problem. The module uses a rather
straightforward list, so if hanging works for the TOC, it should work
for the bib module. And if not, then both should require the same fix.

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] margin kerning problem

2005-10-25 Thread Taco Hoekwater

David Wooten wrote:

Greetings all,

On a related note, is there a similar (or dissimilar for that matter)  
solution to margin kerning with the bib-module?


I wasn't even aware that there is a problem. The module uses a rather
straightforward list, so if hanging works for the TOC, it should work
for the bib module. And if not, then both should require the same fix.

Taco



David

On Oct 25, 2005, at 10:04 AM, Hans Hagen Test wrote:


Alan Bowen wrote:


To answer my own question:
To get margin kerning in the footnotes/endnotes as well as in the   
body text, put

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]
before the fonts are installed.



indeed; this has to do with the fact that pdftex (tex) has some  nasty 
global font assignments and optimizations hard coded


Hans


___
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


Re: [NTG-context] margin kerning problem

2005-10-25 Thread David Wooten

Greetings all,

On a related note, is there a similar (or dissimilar for that matter)  
solution to margin kerning with the bib-module?


David

On Oct 25, 2005, at 10:04 AM, Hans Hagen Test wrote:


Alan Bowen wrote:


To answer my own question:
To get margin kerning in the footnotes/endnotes as well as in the   
body text, put

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]
before the fonts are installed.


indeed; this has to do with the fact that pdftex (tex) has some  
nasty global font assignments and optimizations hard coded


Hans

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] margin kerning problem

2005-10-25 Thread Hans Hagen Test

Alan Bowen wrote:


To answer my own question:
To get margin kerning in the footnotes/endnotes as well as in the  
body text, put

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]
before the fonts are installed.



indeed; this has to do with the fact that pdftex (tex) has some nasty 
global font assignments and optimizations hard coded


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] margin kerning problem

2005-10-25 Thread Alan Bowen

To answer my own question:
To get margin kerning in the footnotes/endnotes as well as in the  
body text, put

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]
before the fonts are installed.

Cheers, A.

On Oct 21, 2005, at 4:29 PM, Alan Bowen wrote:

Sorry for the flurry of questions. But here’s one about margin  
kerning now.


I see that by using
\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
I can get margin kerning in the body text, but not in any footnotes/ 
endnotes. What else is needed to get margin kerning throughout the  
notes too?


As ever, any advice will be gratefully received.

Alan
___
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] margin kerning problem

2005-10-22 Thread Alan C. Bowen
Sorry for the flurry of questions. But here’s one about margin  
kerning now.


I see that by using
\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
I can get margin kerning in the body text, but not in any footnotes/ 
endnotes. What else is needed to get margin kerning throughout the  
notes too?


As ever, any advice will be gratefully received.

Alan___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] margin kerning problem

2005-10-21 Thread Alan Bowen
Sorry for the flurry of questions. But here’s one about margin  
kerning now.


I see that by using
\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
I can get margin kerning in the body text, but not in any footnotes/ 
endnotes. What else is needed to get margin kerning throughout the  
notes too?


As ever, any advice will be gratefully received.

Alan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context