ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Floats Method
       [not found] <mailman.153.1154467877.2039.ntg-context@ntg.nl>
@ 2006-08-02  8:39 ` wwl
  2006-08-13  7:46   ` Taco Hoekwater
  2006-08-02  8:39 ` Snapping sectionhead wwl
  1 sibling, 1 reply; 11+ messages in thread
From: wwl @ 2006-08-02  8:39 UTC (permalink / raw)


Hallo!

In \setupfloats[] what exactly is the difference between textmethod 
and sidemethod?

Compared with the gridsize, why does a 1 point window (method=2) help 
when typesetting on grids?

Isn't 1% (method=1) much more in the most cases than 1 point?

Wolfgang

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

* Snapping sectionhead
       [not found] <mailman.153.1154467877.2039.ntg-context@ntg.nl>
  2006-08-02  8:39 ` Floats Method wwl
@ 2006-08-02  8:39 ` wwl
  2006-08-13  7:52   ` Taco Hoekwater
  1 sibling, 1 reply; 11+ messages in thread
From: wwl @ 2006-08-02  8:39 UTC (permalink / raw)


Hallo!

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

But these two variants gave me not the same result!

Try

\setuplayout[grid=yes]
\definehead[Demo][section]
\setuphead[Demo][style=\bfb,
                 before=\blank,
                 after=\blank,
                 grid={broad,high,depth}]
%\setuphead[Demo][style=\bfb,before=\blank,after=\blank,grid=line]
\showgrid
\starttext
\Demo{Agathe}
Bla blubber
\stoptext

Hmm!

Wolfgang

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

* Re: Floats Method
  2006-08-02  8:39 ` Floats Method wwl
@ 2006-08-13  7:46   ` Taco Hoekwater
  2006-08-14 20:41     ` Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2006-08-13  7:46 UTC (permalink / raw)


wwl@musensturm.de wrote:
> Hallo!
> 
> In \setupfloats[] what exactly is the difference between textmethod 
> and sidemethod?

textmethod is used for floats inside the text flow, sidemethod for
sidefloats.

> Compared with the gridsize, why does a 1 point window (method=2) help 
> when typesetting on grids?

I assume it corrects for the \lineskip glue.

> Isn't 1% (method=1) much more in the most cases than 1 point?

Yes it would be. Perhaps that one is because of \maxdepth,
but I am only guessing. The fact that there are two methods
could be simply a trial-and-error left over.

Taco

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

* Re: Snapping sectionhead
  2006-08-02  8:39 ` Snapping sectionhead wwl
@ 2006-08-13  7:52   ` Taco Hoekwater
  0 siblings, 0 replies; 11+ messages in thread
From: Taco Hoekwater @ 2006-08-13  7:52 UTC (permalink / raw)


wwl@musensturm.de wrote:
> Hallo!
> 
> 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.

Taco

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

* Re: Floats Method
  2006-08-13  7:46   ` Taco Hoekwater
@ 2006-08-14 20:41     ` Hans Hagen
  0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-08-14 20:41 UTC (permalink / raw)


Taco Hoekwater wrote:
> wwl@musensturm.de wrote:
>   
>> Hallo!
>>
>> In \setupfloats[] what exactly is the difference between textmethod 
>> and sidemethod?
>>     
>
> textmethod is used for floats inside the text flow, sidemethod for
> sidefloats.
>
>   
>> Compared with the gridsize, why does a 1 point window (method=2) help 
>> when typesetting on grids?
>>     
>
> I assume it corrects for the \lineskip glue.
>
>   
>> Isn't 1% (method=1) much more in the most cases than 1 point?
>>     
>
> Yes it would be. Perhaps that one is because of \maxdepth,
> but I am only guessing. The fact that there are two methods
> could be simply a trial-and-error left over.
>   
kind of; depending on the way a document is set up, rounding errors play a role, so the 1pt is taking care if that, while the .99 is th eold method; tricky stuff anyway 

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

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

* Re: Snapping sectionhead
  2006-08-13 21:24 ` wwl
  2006-08-13 21:33   ` Taco Hoekwater
@ 2006-08-15 15:15   ` Hans Hagen
  1 sibling, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-08-15 15:15 UTC (permalink / raw)


wwl@musensturm.de wrote:
> Hallo!
>
>   
>>> 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).' 
> Is there a newer variant of that manual?
>   
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 


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

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

* Re: Snapping sectionhead
  2006-08-14 17:58   ` taco hoekwater
@ 2006-08-14 18:39     ` taco hoekwater
  0 siblings, 0 replies; 11+ messages in thread
From: taco hoekwater @ 2006-08-14 18:39 UTC (permalink / raw)


taco hoekwater wrote:
> wwl@musensturm.de wrote:
>>> Must be, I read mine online from
>>>
>>>    http://www.pragma-ade.com/general/manuals/details.pdf
>>>
>>> while I was keying in this answer.
>>>
>>> Greetings,
>>> Taco
>> I checked this.
>>
>> But it is the same document!
>>
>> Section 1.8 deals there with 'Snapping section heads' too.
> 
> Oops excuse me. I was reading _chapter 8_ . I'll try to
> find the difference

Ok: yes they are definately different, but at the moment I don't
know why. I predict that it is the manual that needs fixing,
though.

Taco

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

* Re: Snapping sectionhead
  2006-08-14 17:30 ` wwl
@ 2006-08-14 17:58   ` taco hoekwater
  2006-08-14 18:39     ` taco hoekwater
  0 siblings, 1 reply; 11+ messages in thread
From: taco hoekwater @ 2006-08-14 17:58 UTC (permalink / raw)


wwl@musensturm.de wrote:
>> Must be, I read mine online from
>>
>>    http://www.pragma-ade.com/general/manuals/details.pdf
>>
>> while I was keying in this answer.
>>
>> Greetings,
>> Taco
> 
> I checked this.
> 
> But it is the same document!
> 
> Section 1.8 deals there with 'Snapping section heads' too.


Oops excuse me. I was reading _chapter 8_ . I'll try to
find the difference

Taco

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

* Re: Snapping sectionhead
       [not found] <mailman.1.1155549602.30697.ntg-context@ntg.nl>
@ 2006-08-14 17:30 ` wwl
  2006-08-14 17:58   ` taco hoekwater
  0 siblings, 1 reply; 11+ messages in thread
From: wwl @ 2006-08-14 17:30 UTC (permalink / raw)


> Date: Sun, 13 Aug 2006 23:33:38 +0200
> From: Taco Hoekwater <taco@elvenkind.com>
> Subject: Re: [NTG-context] Snapping sectionhead

> >>> 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).' 
> > Is there a newer variant of that manual?
> 
> Must be, I read mine online from
> 
>    http://www.pragma-ade.com/general/manuals/details.pdf
> 
> while I was keying in this answer.
> 
> Greetings,
> Taco

I checked this.

But it is the same document!

Section 1.8 deals there with 'Snapping section heads' too.

Wolfgang

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

* Re: Snapping sectionhead
  2006-08-13 21:24 ` wwl
@ 2006-08-13 21:33   ` Taco Hoekwater
  2006-08-15 15:15   ` Hans Hagen
  1 sibling, 0 replies; 11+ messages in thread
From: Taco Hoekwater @ 2006-08-13 21:33 UTC (permalink / raw)


wwl@musensturm.de wrote:
> Hallo!
> 
>>> 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).' 
> Is there a newer variant of that manual?

Must be, I read mine online from

   http://www.pragma-ade.com/general/manuals/details.pdf

while I was keying in this answer.

Greetings,
Taco

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

* Re: Snapping sectionhead
       [not found] <mailman.1.1155463203.3247.ntg-context@ntg.nl>
@ 2006-08-13 21:24 ` wwl
  2006-08-13 21:33   ` Taco Hoekwater
  2006-08-15 15:15   ` Hans Hagen
  0 siblings, 2 replies; 11+ messages in thread
From: wwl @ 2006-08-13 21:24 UTC (permalink / raw)


Hallo!

> > 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).' 
Is there a newer variant of that manual?

Wolfgang

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

end of thread, other threads:[~2006-08-15 15:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.153.1154467877.2039.ntg-context@ntg.nl>
2006-08-02  8:39 ` Floats Method wwl
2006-08-13  7:46   ` Taco Hoekwater
2006-08-14 20:41     ` Hans Hagen
2006-08-02  8:39 ` Snapping sectionhead wwl
2006-08-13  7:52   ` Taco Hoekwater
     [not found] <mailman.1.1155463203.3247.ntg-context@ntg.nl>
2006-08-13 21:24 ` wwl
2006-08-13 21:33   ` Taco Hoekwater
2006-08-15 15:15   ` Hans Hagen
     [not found] <mailman.1.1155549602.30697.ntg-context@ntg.nl>
2006-08-14 17:30 ` wwl
2006-08-14 17:58   ` taco hoekwater
2006-08-14 18:39     ` taco hoekwater

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