Hi Luigi, Am 17.11.2007 um 09:06 schrieb luigi scarso:
On Nov 16, 2007 12:55 PM, Steffen Wolfrum
wrote: Hi, I need some help for shorten the TeX code in the following example: Can you give a short and comprensive example ?
Wolfgang provided me an excellent example that illustrates the idea perfectly: \usemodule[visual] \def\NFD{9.8pt} % normalfootnotedistance \def\footnotedistance[#1]% {\setupfootnotedefinition[style={\setupinterlinespace[line=\dimexpr \NFD*#1\relax]}]} \starttext \dorecurse{10} {\fakewords{30}{40}\footnote{\fakewords{5}{15}} } \footnotedistance[4] \dorecurse{10} {\fakewords{30}{40}\footnote{\fakewords{5}{15}} } \footnotedistance[1] \dorecurse{10} {\fakewords{30}{40}\footnote{\fakewords{5}{15}} } \stoptext Now, my problem is that I don't use the footnote definition \setupfootnotedefinition[style=...] but the following instead: \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt] \parskip2pt} And I couldn't find a way to use this with variables like above (\def \footnotedistance[#1]...). Do you know how this should be coded? Steffen