ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Issue with \setupinterlinespace
@ 2010-05-14 12:03 Khaled Hosny
  2010-05-14 12:55 ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Khaled Hosny @ 2010-05-14 12:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wgat is wrong with this example:

\setuplayout[grid=force]
\setupinterlinespace[height=1.081em, depth=.7em, distance=.018em]
\starttext
\input knuth
\stoptext

I get:
! You can't use `\dimexpr' in horizontal mode.
<recently read> \dimexpr

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue with \setupinterlinespace
  2010-05-14 12:03 Issue with \setupinterlinespace Khaled Hosny
@ 2010-05-14 12:55 ` luigi scarso
  2010-05-14 13:15   ` Khaled Hosny
  0 siblings, 1 reply; 6+ messages in thread
From: luigi scarso @ 2010-05-14 12:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, May 14, 2010 at 2:03 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
> Wgat is wrong with this example:
>
> \setuplayout[grid=force]
> \setupinterlinespace[height=1.081em, depth=.7em, distance=.018em]
> \starttext
> \input knuth
> \stoptext
use number, not dimensions;
see http://wiki.contextgarden.net/Reference/en/setupinterlinespace

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue with \setupinterlinespace
  2010-05-14 12:55 ` luigi scarso
@ 2010-05-14 13:15   ` Khaled Hosny
  2010-05-14 13:20     ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Khaled Hosny @ 2010-05-14 13:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, May 14, 2010 at 02:55:54PM +0200, luigi scarso wrote:
> On Fri, May 14, 2010 at 2:03 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
> > Wgat is wrong with this example:
> >
> > \setuplayout[grid=force]
> > \setupinterlinespace[height=1.081em, depth=.7em, distance=.018em]
> > \starttext
> > \input knuth
> > \stoptext
> use number, not dimensions;
> see http://wiki.contextgarden.net/Reference/en/setupinterlinespace

I see, in the wiki:

   height: ration|size of strut (e.g. 0.72 or 9pt)
   depth:  ration|size of strut (e.g. 0.28 or 3pt)

And I assumed .7em is comparable to 9pt, how it is different? Using
points gives the same error.

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue with \setupinterlinespace
  2010-05-14 13:15   ` Khaled Hosny
@ 2010-05-14 13:20     ` luigi scarso
  2010-05-14 22:23       ` Khaled Hosny
  0 siblings, 1 reply; 6+ messages in thread
From: luigi scarso @ 2010-05-14 13:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, May 14, 2010 at 3:15 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
> I see, in the wiki:
>
>   height: ration|size of strut (e.g. 0.72 or 9pt)
>   depth:  ration|size of strut (e.g. 0.28 or 3pt)
>
> And I assumed .7em is comparable to 9pt, how it is different? Using
> points gives the same error.

use *numbers*, not *dimensions*

height  	number
depth 	number
line 	dimension
top 	number
bottom 	number

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue with \setupinterlinespace
  2010-05-14 13:20     ` luigi scarso
@ 2010-05-14 22:23       ` Khaled Hosny
  2010-05-15  6:16         ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Khaled Hosny @ 2010-05-14 22:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, May 14, 2010 at 03:20:21PM +0200, luigi scarso wrote:
> On Fri, May 14, 2010 at 3:15 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
> > I see, in the wiki:
> >
> >   height: ration|size of strut (e.g. 0.72 or 9pt)
> >   depth:  ration|size of strut (e.g. 0.28 or 3pt)
> >
> > And I assumed .7em is comparable to 9pt, how it is different? Using
> > points gives the same error.
> 
> use *numbers*, not *dimensions*
> 
> height  	number
> depth 	number
> line 	dimension
> top 	number
> bottom 	number

Ah, didn't notice that, but this contradicts the description (or I'm
severely confused).

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue with \setupinterlinespace
  2010-05-14 22:23       ` Khaled Hosny
@ 2010-05-15  6:16         ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2010-05-15  6:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 15.05.10 00:23, schrieb Khaled Hosny:
> On Fri, May 14, 2010 at 03:20:21PM +0200, luigi scarso wrote:
>    
>> On Fri, May 14, 2010 at 3:15 PM, Khaled Hosny<khaledhosny@eglug.org>  wrote:
>>      
>>> I see, in the wiki:
>>>
>>>    height: ration|size of strut (e.g. 0.72 or 9pt)
>>>    depth:  ration|size of strut (e.g. 0.28 or 3pt)
>>>
>>> And I assumed .7em is comparable to 9pt, how it is different? Using
>>> points gives the same error.
>>>        
>> use *numbers*, not *dimensions*
>>
>> height  	number
>> depth 	number
>> line 	dimension
>> top 	number
>> bottom 	number
>>      
> Ah, didn't notice that, but this contradicts the description (or I'm
> severely confused).
>    

The description on the wiki is wrong, accept this. The others told
you height and depth to use number because the values are fraction
of the line height.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-15  6:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-14 12:03 Issue with \setupinterlinespace Khaled Hosny
2010-05-14 12:55 ` luigi scarso
2010-05-14 13:15   ` Khaled Hosny
2010-05-14 13:20     ` luigi scarso
2010-05-14 22:23       ` Khaled Hosny
2010-05-15  6:16         ` Wolfgang Schuster

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).