ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupinterlinespace
@ 2000-05-18  1:04 Christopher G D Tipper
  2000-05-18  7:57 ` \setupinterlinespace Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher G D Tipper @ 2000-05-18  1:04 UTC (permalink / raw)


Hi all,

This is isn't really a request for technical advice, merely documentation, as I have a working solution.

Basically, the situation is I am trying to create a style for my publications that I can include at the beginning of a document in the recommended manner (ie \input mystylesheet)

so I have 

\setupinterlinespace[line=16pt]

at the top of mystylesheet.tex (the bodyfont is defined at the same position, so we don't have to worry about inconsistencies).

The problem then is that the linespacing in the footnotes is now 16pt--way big.

the obvious thing is then

\setupfootnotes[line=10pt]

Strangely this compiles but makes no difference. Great big huge interlinespace in the footnotes.

\setupfootnotes[line=10pt,height=fit]

just spits out

! Missing number, treated as zero.
<to be read again> 
                   f
\@@vnhoogte ->f
               it
\dosetupfootnotes ...footins =\@@vnhoogte 
                                          \multiply \dimen \footins b...
l.21 \setupfootnotes[line=10pt,height=fit]                                          

? 
! Emergency stop.

So freely interpreting Hans last piece of advice I cook up the following:

\def\Footnotespace#1#2{\setupinterlinespace[#1]#2}

\setupfootnotes[command={\Footnotespace[line=10pt]}]

AGAIN! No difference. The document compiles, no error messages, but still big huge interlinespace.

The hack is to use \setupinterlinespace[..] before and after every footnote. Not good. I've lost all the benefit of having the stylesheet, and it just isn't elegant.

What to do?

Christopher


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

* Re: \setupinterlinespace
  2000-05-18  1:04 \setupinterlinespace Christopher G D Tipper
@ 2000-05-18  7:57 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-05-18  7:57 UTC (permalink / raw)
  Cc: ConTeXT Mailing List

At 04:04 AM 5/18/2000 +0300, Christopher G D Tipper wrote:

>\setupinterlinespace[line=16pt]

>The problem then is that the linespacing in the footnotes is now 16pt--way
big.

>So freely interpreting Hans last piece of advice I cook up the following:
>
>\def\Footnotespace#1#2{\setupinterlinespace[#1]#2}
>
>\setupfootnotes[command={\Footnotespace[line=10pt]}]

A 'command' key, when available, is applied to something. 

>AGAIN! No difference. The document compiles, no error messages, but still
big huge interlinespace.
>
>The hack is to use \setupinterlinespace[..] before and after every
footnote. Not good. I've lost all the benefit of having the stylesheet, and
it just isn't elegant.
>
>What to do?

How about defining the interlinespace as relative measure: 

  \setupinterlinespace[3ex]

alternatively you can use the style key: 

... style=\bf\setupinterlinespace[..] ...

Maybe some day I'll add a few more keys. 

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


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

end of thread, other threads:[~2000-05-18  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-18  1:04 \setupinterlinespace Christopher G D Tipper
2000-05-18  7:57 ` \setupinterlinespace 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).