ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Baselineskip in sections
@ 2001-07-31  8:47 AlterEgo Qasars
  2001-07-31 12:45 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: AlterEgo Qasars @ 2001-07-31  8:47 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]

Dear Mr. Hagen,

I found in ConTeXt a pretty unpleasant feature. The sectioning system adds
a lot of material to the section title. Some of this added stuff probably
interferes with the line-spacing mechanism.

I do have this very problem: I do want multiple-line titles to be typeset
so that distances among all title baselines are the same. I do also prefer
to set the \baselineskip to some small amount, narrower than the amount
necessary for lines not to touch. In the plainTeX, the solution is quite
simple, just to set the \baselineskip to a preferred distance and the
\lineskiplimit to minus infinity. But this doesn't work in the ConTeXt. 
(I include a funny minimal test file.)

How can I handle this very problem?

With best regards
Michal Kvasnicka                                                                

P.S. Please, resent me answer to my private address `qasar@econ.muni.cz'.
I'm disabled (with my leg) for a long time now, and this is the only
address I can scan with my (very slow) modem. Many thanks.

[-- Attachment #2: pokus2.tex --]
[-- Type: application/x-tex, Size: 403 bytes --]

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

* Re: Baselineskip in sections
  2001-07-31  8:47 Baselineskip in sections AlterEgo Qasars
@ 2001-07-31 12:45 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-07-31 12:45 UTC (permalink / raw)
  Cc: ntg-context

Hi Michal,

>I found in ConTeXt a pretty unpleasant feature. The sectioning system adds
>a lot of material to the section title. Some of this added stuff probably
>interferes with the line-spacing mechanism.

right, context very hard tries to be consistent in spacing

>I do have this very problem: I do want multiple-line titles to be typeset
>so that distances among all title baselines are the same. I do also prefer
>to set the \baselineskip to some small amount, narrower than the amount
>necessary for lines not to touch. In the plainTeX, the solution is quite
>simple, just to set the \baselineskip to a preferred distance and the
>\lineskiplimit to minus infinity. But this doesn't work in the ConTeXt.
>(I include a funny minimal test file.)

that's a lot of plain code and definitely wrong -)

how about:

\showstruts

\starttext

\setuphead[section][style={\bfd}]

\section{bum\\bac}

\setuphead[section][style={\setupinterlinespace[line=2ex]\bfd}]

\section{bum\\bac}

\setuphead[section][style={\setupinterlinespace[line=0ex]\bfd}]

\section{bum\\bac}

\setuphead[section][style={\setupinterlinespace[line=4ex]\bfd}]

\section{bum\\bac}

\stoptext
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       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] 2+ messages in thread

end of thread, other threads:[~2001-07-31 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-31  8:47 Baselineskip in sections AlterEgo Qasars
2001-07-31 12:45 ` Hans Hagen

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