[NTG-context] little coding assistance (please)

2007-11-16 Thread Steffen Wolfrum
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
___


Re: [NTG-context] TOC: page headers

2007-11-16 Thread Jeff Smith
On Nov 15, 2007 6:02 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:

 you can use dummy chapters next time without problems. I changed a few
 of your settings because this should be a nice example I could use myself
 in the future (it's to easy to forgot many of the necessary settings).

So the strategy is to use \startsetups. This worked beautifully! Thank
you VERY much! :-)

Do you think your example should go in the Wiki somewhere?

Jeff
___
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
___


Re: [NTG-context] combination with an additional line centered in a placefigure?

2007-11-16 Thread Wolfgang Schuster
2007/11/16, Peter Schorsch [EMAIL PROTECTED]:
 Hi,

 as soon I enter the cbox-line the combination is not longer centered. I tried
 to embed the combination in a cbox, but that had no effect. Has anyone a hint
 how to center the combination successfullly?

 \starttext
 \placefigure
 [force][fig:xy]
 {captiontext}
 {\startcombination[2*1]
 {\externalfigure[xxx][]}{}
 {\externalfigure[yyy][]}{}
 \stopcombination
 \cbox{\tfx Quelle: XY}
 }
 \stoptext

 Thanks, P.

\setuplegend
  [align=middle,
   bodyfont=small]

\starttext

\placefigure
  [force][fig:xy]
  {captiontext}
  {\placelegend
 {\startcombination[2*1]
{\externalfigure[xxx]}{}
{\externalfigure[yyy]}{}
  \stopcombination}
 {Quelle: XY}}

\stoptext

You can define legend commands with \definepairedbox (see core-mis.tex)
and you can skip the second pair of brackets after \externalfigure.

Wolfgang
___
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
___


Re: [NTG-context] TOC: page headers

2007-11-16 Thread luigi scarso
 So the strategy is to use \startsetups. This worked beautifully! Thank
 you VERY much! :-)

 Do you think your example should go in the Wiki somewhere?

 Why don't you register as user and edit your page ?
-- 
luigi
___
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
___