ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: no grid for single par
@ 2000-08-12 16:57 pragma
  0 siblings, 0 replies; 4+ messages in thread
From: pragma @ 2000-08-12 16:57 UTC (permalink / raw)
  Cc: ntg-context

>Hans Hagen wrote:
>> When in grid mode (multi columns) many commands will honor
the grid.=20
>
>Does that mean, that it can't work with one column?
>
>> \startlinecorrection
>>   whatever content
>> \stoplinecorrection

It does. 

>But that doesn't work in my environment:
>
>\definestartstop
>	[anmerkung]
>	[style=3Dsmall,grid=3Dno,
>	before=3D{\vfill\startlinecorrection},
>	after=3D\stoplinecorrection]
>
>TeX sets only one long line.
>And I don't know how I could use \vbox or like that
>within \definestartstop.
>
>> \snaptogrid\vbox{...} (or hbox)

[before={\startlinecorrection\vbox\bgroup},
 after={\egroup\stoplinecorrection}]

Hans


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

* Re: no grid for single par
  2000-08-09 11:05 ` Hans Hagen
@ 2000-08-09 17:35   ` Hraban
  0 siblings, 0 replies; 4+ messages in thread
From: Hraban @ 2000-08-09 17:35 UTC (permalink / raw)


Hans Hagen wrote:
> When in grid mode (multi columns) many commands will honor the grid. 

Does that mean, that it can't work with one column?

> \startlinecorrection
>   whatever content
> \stoplinecorrection

But that doesn't work in my environment:

\definestartstop
	[anmerkung]
	[style=small,grid=no,
	before={\vfill\startlinecorrection},
	after=\stoplinecorrection]

TeX sets only one long line.
And I don't know how I could use \vbox or like that
within \definestartstop.

> \snaptogrid\vbox{...} (or hbox)

Grütze für alle!

Hraban.


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

* Re: no grid for single par
  2000-07-26 17:49 Hraban
@ 2000-08-09 11:05 ` Hans Hagen
  2000-08-09 17:35   ` Hraban
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2000-08-09 11:05 UTC (permalink / raw)
  Cc: ConTeXt

At 07:49 PM 7/26/00 +0200, Hraban wrote:
>My book has "grid=yes", but I need several paragraphs with small text
>that should use their standard linefeed. They are defined as an own
>environment (\definestartstop).
>I tried to use \startlinecorrection, but it disables the wrapping.
>
>Is it possible to typeset the whole text block, perhaps as buffer, and
>align it to the next grid line?
>
>Same with subjects/titles: The normal linespacing is too small (or too
>stretched) for other text sizes. Can I switch off the grid setting for
>all headers?

I'm cleaning up my overful mail buffer and ran into this question. 

Concerning grid, i happen to be working on more advanced figure placement
in columns and just ran some 300 page 500 fig sample with success. So,
things are improvind -) 

When in grid mode (multi columns) many commands will honor the grid. When
not, you may use: 

\startlinecorrection
  whatever content 
\stoplinecorrection

[this is also advised when embedding framed thingies, 

\startlinecorrection
\externalfigure[...]
\stoplinecorrection

This command does a rather good job on getting things visually spaced well.
[stable for years now but not that trivial]. 

You may also try: 

\snaptogrid\vbox{...} (or hbox)

If you look into core-grd.tex, you will find more details, on how to snap
to the top/bottom/center as well as corrections and so.

Did you try \showgrid already? 

Some day soon I will start doing more experiments with pdftex grid snapping
btw. So, expect more.

Hans 
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* no grid for single par
@ 2000-07-26 17:49 Hraban
  2000-08-09 11:05 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Hraban @ 2000-07-26 17:49 UTC (permalink / raw)


My book has "grid=yes", but I need several paragraphs with small text
that should use their standard linefeed. They are defined as an own
environment (\definestartstop).
I tried to use \startlinecorrection, but it disables the wrapping.

Is it possible to typeset the whole text block, perhaps as buffer, and
align it to the next grid line?

Same with subjects/titles: The normal linespacing is too small (or too
stretched) for other text sizes. Can I switch off the grid setting for
all headers?

hraban.


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

end of thread, other threads:[~2000-08-12 16:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-12 16:57 no grid for single par pragma
  -- strict thread matches above, loose matches on Subject: below --
2000-07-26 17:49 Hraban
2000-08-09 11:05 ` Hans Hagen
2000-08-09 17:35   ` Hraban

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