From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37403 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: little coding assistance (please) Date: Fri, 16 Nov 2007 12:55:06 +0100 Message-ID: <57C1B077-4364-4D28-A1F0-9B5FF8596EDE@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195214166 17922 80.91.229.12 (16 Nov 2007 11:56:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2007 11:56:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 16 12:56:11 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Isznv-0004lP-H3 for gctc-ntg-context-518@m.gmane.org; Fri, 16 Nov 2007 12:56:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C0031FB74; Fri, 16 Nov 2007 12:55:53 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30001-02; Fri, 16 Nov 2007 12:55:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 876FB1FB5B; Fri, 16 Nov 2007 12:55:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2FBAC1FB5B for ; Fri, 16 Nov 2007 12:55:22 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03324-01-3 for ; Fri, 16 Nov 2007 12:55:08 +0100 (CET) Original-Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [80.67.29.8]) by ronja.ntg.nl (Postfix) with ESMTP id 523D51FB37 for ; Fri, 16 Nov 2007 12:55:08 +0100 (CET) Original-Received: (qmail 30238 invoked from network); 16 Nov 2007 11:55:07 -0000 Original-Received: from unknown (HELO [192.168.1.5]) (698580@[89.247.120.15]) (envelope-sender ) by smtprelay08.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 16 Nov 2007 11:55:07 -0000 X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37403 Archived-At: 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 ___________________________________________________________________________________