[NTG-context] snapping section head

wwl at musensturm.de wwl at musensturm.de
Wed Aug 16 02:14:03 CEST 2006


> >>> While I was reading 'In the Details' to learn more about grid-
> >>> typesetting, I could not comprehend the examples with 
> >>> grid={broad,...}. 
> >>>
> >>> Then in section 1.8 I read that grid=line should be a shortcut
> for
> >>> grid={broad,high,depth}.
> >>>       
> >> Section 1.8 deals \exclusively with \externalfigure. Apparently
> >> the grid option for sectioning commands is handled differently.
> >>     
> >
> > In my version of 'In the Details', dated 2002 chapter 1 deals with
> > 'Snapping section heads' and section 1.8 is titled 'Snapping
> around 
> > (broad,high,depth).' 

> the grid options as discussed with sections, are the ones that are
> taken care of by the \snaptogrid macro; the grid key in
> externalfigure is not related to that, it relates to scaling, as
> in
> 
> \setuplayout[grid=yes] \showgrid
> \setupcaptions[style=smallbodyfont,location=grid,inbetween=]
> 
> \defineexternalfigure[enkel] [width=10cm,frame=on,grid=depth]
> \defineexternalfigure[dubbel][width=10cm,frame=on,grid=depth]
> 
> \starttext
> 
> test \placefigure{}                
> {\externalfigure[t:/sources/cow.pdf][frame=on,grid=yes]} test
> \page
> test \placefigure{\input
> zapf\relax}{\externalfigure[t:/sources/cow.pdf][frame=on,grid=yes]}
> test \page
> 
> test \placefigure{}                
> {\externalfigure[t:/sources/cow.pdf][enkel]} test \page
> test \placefigure{\input
> zapf\relax}{\externalfigure[t:/sources/cow.pdf][enkel]} test \page
> 
> \stoptext
> 
> i.e. the grid option determins which way a height snaps (or is
> rounded); 
> 
> hans 

My original question was not related to \externalfigure or chapter 8  
of the Details-Manual at all. This was brought in the diskussion by 
mistake.

In section 1.8 grid=line was introduced as a shortcut for
grid={broad,high,depth}. But these two options are differing.

Wolfgang


More information about the ntg-context mailing list