ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Line spacing in footnotes
@ 2007-03-12 22:47 Oliver Buerschaper
  2007-03-13  6:11 ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Buerschaper @ 2007-03-12 22:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

is there a way to influence the linespacing of the footnote block?  
I'd like to typeset it in 9pt/11pt while the main text is set to 12pt/ 
14.5pt (using an OpenType font) ... Any help highly appreciated!

Thanks,
Oliver

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

* Re: Line spacing in footnotes
  2007-03-12 22:47 Line spacing in footnotes Oliver Buerschaper
@ 2007-03-13  6:11 ` Aditya Mahajan
  2007-03-13  7:27   ` Oliver Buerschaper
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2007-03-13  6:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 12 Mar 2007, Oliver Buerschaper wrote:

> Hi all,
>
> is there a way to influence the linespacing of the footnote block?
> I'd like to typeset it in 9pt/11pt while the main text is set to 12pt/
> 14.5pt (using an OpenType font) ... Any help highly appreciated!

If you just want a smaller font size

\setupnotedefinition
   [footnote]
   [style=small]

or if you also want to set interline space

\setupnotedefinition
   [footnote]
   [before={\switchtobodyfont[9pt]\setupinterlinespace},
    after{\endgraf}]

You can also pass parameters to \setupinterlinespace to get the 
precise spacing that you want.

Aditya

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

* Re: Line spacing in footnotes
  2007-03-13  6:11 ` Aditya Mahajan
@ 2007-03-13  7:27   ` Oliver Buerschaper
  2007-03-14  2:03     ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Buerschaper @ 2007-03-13  7:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> is there a way to influence the linespacing of the footnote block?
>> I'd like to typeset it in 9pt/11pt while the main text is set to  
>> 12pt/
>> 14.5pt (using an OpenType font) ... Any help highly appreciated!
>
> If you just want a smaller font size
>
> \setupnotedefinition
>    [footnote]
>    [style=small]
>
> or if you also want to set interline space
>
> \setupnotedefinition
>    [footnote]
>    [before={\switchtobodyfont[9pt]\setupinterlinespace},
>     after{\endgraf}]
>
> You can also pass parameters to \setupinterlinespace to get the
> precise spacing that you want.

Thanks for your quick reply, Aditya. I'm afraid this doesn't quite  
work as expected ... the line spacing isn't changed at all here :- 
( This is my setup:

\setupnote
	[footnote]
	[before=, % remove blank line before
%	 bodyfont=9pt,
	 command=, % this disables the superscript
	 n=0] % footnote block as a single paragraph
\setupnotedefinition
	[footnote]
	[location=serried,
	 before={\switchtobodyfont[9pt]\setupinterlinespace[line=11pt]},
	 after={\endgraf},
	 distance=1ex,
	 headstyle=\ss\bf]

Also I'm somewhat puzzled ... why put these before and after commands  
in \setupnotedefinition rather than \setupnote? As far as I can tell  
\setupnote already has a bodyfont option (but none for the line  
spacing) ... also I always thought that \setupnotedefinition refers  
to a description and controls the way a single footnote is typeset  
while \setupnote is supposed to influence the whole block ... On top  
of that does the \endgraf command conflict with the n=0 option in  
\setupnote?

Oliver

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

* Re: Line spacing in footnotes
  2007-03-13  7:27   ` Oliver Buerschaper
@ 2007-03-14  2:03     ` Aditya Mahajan
  0 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2007-03-14  2:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 13 Mar 2007, Oliver Buerschaper wrote:

>>> is there a way to influence the linespacing of the footnote block?
>>> I'd like to typeset it in 9pt/11pt while the main text is set to
>>> 12pt/
>>> 14.5pt (using an OpenType font) ... Any help highly appreciated!
>>
>> If you just want a smaller font size
>>
>> \setupnotedefinition
>>    [footnote]
>>    [style=small]
>>
>> or if you also want to set interline space
>>
>> \setupnotedefinition
>>    [footnote]
>>    [before={\switchtobodyfont[9pt]\setupinterlinespace},
>>     after{\endgraf}]
>>
>> You can also pass parameters to \setupinterlinespace to get the
>> precise spacing that you want.
>
> Thanks for your quick reply, Aditya. I'm afraid this doesn't quite
> work as expected ... the line spacing isn't changed at all here :-
> ( This is my setup:
>
> \setupnote
> 	[footnote]
> 	[before=, % remove blank line before
> %	 bodyfont=9pt,
> 	 command=, % this disables the superscript
> 	 n=0] % footnote block as a single paragraph
> \setupnotedefinition
> 	[footnote]
> 	[location=serried,
> 	 before={\switchtobodyfont[9pt]\setupinterlinespace[line=11pt]},
> 	 after={\endgraf},
> 	 distance=1ex,
> 	 headstyle=\ss\bf]


If the only place you use 9pt font is footnotes then something like 
this should also work

\setupbodyfontenvironment[9pt][interlinespace=11pt]


Since you use n=0, you can also do

  \setupnote
         [footnote]
         [before={\setupinterlinespace[line=11pt]},
          bodyfont=9pt,
          command=, % this disables the superscript
          n=0] % footnote block as a single paragraph

\setupnotedefinition
         [footnote]
         [location=serried,
          distance=1ex,
          headstyle=\ss\bf]


> Also I'm somewhat puzzled ... why put these before and after commands
> in \setupnotedefinition rather than \setupnote?

Since you are working with line=11pt it does not make a difference. 
I was thinking of line=1.2ex (or something) where it matters what is 
the current font size.

If n=0 is not set, and you use absolute font sizes, it will work in 
both cases.

With n=0, things are a bit different. n=0 uses \starttextnotes instead 
of \setcolumnnotes and both work differently. So, with n=0, you need 
it in setupnotes.

> As far as I can tell
> \setupnote already has a bodyfont option (but none for the line
> spacing)

It is not too hard to add. For fun, try

\def\setnotebodyfont
    {\switchtobodyfont[9pt]\setupinterlinespace[line=50pt]}

with default settings. (this of course is not a good idea, especially 
in this case, when there are other workarounds)


> ... also I always thought that \setupnotedefinition refers
> to a description and controls the way a single footnote is typeset
> while \setupnote is supposed to influence the whole block

Yes. What I reasoned was that interline space should be set for each 
footnote.

> ... On top of that does the \endgraf command conflict with the n=0 
> option in \setupnote?

Forget about what I said earlier. n=0 uses a different setup 
altogether.


Hans, does it make sense to interface interlinespace in footnotes? Or 
add a \everyfootnotebodyfontswitch token?

Aditya

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

end of thread, other threads:[~2007-03-14  2:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-12 22:47 Line spacing in footnotes Oliver Buerschaper
2007-03-13  6:11 ` Aditya Mahajan
2007-03-13  7:27   ` Oliver Buerschaper
2007-03-14  2:03     ` Aditya Mahajan

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