ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* little coding assistance (please)
@ 2007-11-16 11:55 Steffen Wolfrum
  2007-11-17  8:06 ` luigi scarso
  0 siblings, 1 reply; 4+ messages in thread
From: Steffen Wolfrum @ 2007-11-16 11:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I need some help for shorten the TeX code in the following example:

My footnotes are defined like this:

  \def\setnotebodyfont
    {\let\setnotebodyfont\relax
     \restoreglobalbodyfont
    \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt] 
\parskip2pt}


But sometimes at single pages I need to shrink footnote's  
setupinterlinespace and parskip a bit.
To adjust the percentage of shrinking (setupinterlinespace[line= 
\dimexpr(9.8\MyFaktor)]\parskip\dimexpr(2\MyFaktor)}) I use the  
following:

\newdimen\MyFaktor
\MyFaktor=0.978pt

[Normal body-text ...]
  \def\setnotebodyfont
    {\let\setnotebodyfont\relax
     \restoreglobalbodyfont
    \switchtobodyfont[rm,9pt]\setupinterlinespace[line=\dimexpr(9.8 
\MyFaktor)]\parskip\dimexpr(2\MyFaktor)}
[...] Text with footnotes [...]
  \def\setnotebodyfont
    {\let\setnotebodyfont\relax
     \restoreglobalbodyfont
    \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt] 
\parskip2pt}
[...]


This works great, but looks ugly and not clear at all!!

Could someone please provide me a definition like \ThightNotes[0.978]  
and \NormalNotes that I could hook handy and clear in the respective  
body-text?


Thanks in advance,

Steffen
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-11-18  2:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-16 11:55 little coding assistance (please) Steffen Wolfrum
2007-11-17  8:06 ` luigi scarso
2007-11-17  9:26   ` Steffen Wolfrum
2007-11-18  2:36     ` luigi scarso

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