From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61494 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Macros for paper feedback form Date: Tue, 07 Sep 2010 01:00:12 +0200 Message-ID: <87fwxm7a0z.fsf@linux-lqcw.site> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283814034 924 80.91.229.12 (6 Sep 2010 23:00:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 23:00:34 +0000 (UTC) To: NTG ConTeXt mailing list Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 07 01:00:33 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oskfw-0004TT-7L for gctc-ntg-context-518@m.gmane.org; Tue, 07 Sep 2010 01:00:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 662E9CA5FC; Tue, 7 Sep 2010 01:00:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mK2tLj8ANwvi; Tue, 7 Sep 2010 01:00:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12A66CA5E2; Tue, 7 Sep 2010 01:00:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4AE11CA5E2 for ; Tue, 7 Sep 2010 01:00:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oDhNtMpXkkwl for ; Tue, 7 Sep 2010 01:00:15 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id AC8D1CA590 for ; Tue, 7 Sep 2010 01:00:15 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o86N0EJ2026155 for ; Tue, 7 Sep 2010 01:00:15 +0200 Original-Received: by wyb36 with SMTP id 36so6429379wyb.14 for ; Mon, 06 Sep 2010 16:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=AZPLq4lEUjWafbhGaHy9/Uh5V7Ftd7eH0TNz0LhFkxY=; b=m10rTlJ6Y4ykFUE4yTgPNPNqDnPrIJaKGc3iE+7GhYcC1Smz3XgTI3Ru7R7j6rqj0N p4LzD1yd4g9Y253d9W9+sHx0L/U1wQICoAEzq0x9foji8Be6rEs/pdxf2s5lNweyEgAO Ef5p7UDCqKBkh/8e0mLakaHb2WMrMwcafbnI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=OR5B93AErl9acKpmHLRXK0yssc8PZHkkICUe2Dd8WAACg3c78TwTPGcsWDTnvxafjh 8JIBQQSnM25oH1nOIyUNClL1/YNeSeMtIjixTtUh56wvUMO8fUT6JqiD4PDdSkBRkrG5 NzgNG38EFc1LUTQms4PzgM5gNx1qfFzsqJSK0= Original-Received: by 10.216.188.20 with SMTP id z20mr3918846wem.51.1283814014556; Mon, 06 Sep 2010 16:00:14 -0700 (PDT) Original-Received: from linux-lqcw.site (84-53-123-169.wxdsl.nl [84.53.123.169]) by mx.google.com with ESMTPS id k46sm3699731weq.34.2010.09.06.16.00.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Sep 2010 16:00:13 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xD3z0eNE - c4511c102fb9 - 20100907 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:61494 Archived-At: I am trying to make a set of macros for a paper feedback form. The first part is: \setuplayout [backspace=20mm,footer=5mm,header=5mm,height=middle,margin=1cm,topspace=0mm,width=middle] \setupindenting[yes,none] \enableregime[utf-8] \mainlanguage[nl] \setupbodyfont[roman, 12pt] \setuppagenumbering[state=stop] \setupoutput[pdf] \def\CheckBoxes[#1,#2]% {\blank #1\par \processcommalist[#2]\doCheckBoxes \blank \crlf } \def\doCheckBoxes#1% {\hskip2.5em[\hskip1em] #1\par } \def\GetComment[#1]{ \blank #1\par \thinrules[n=4] \blank \crlf } \def\Title[#1]{ \par \startalignment[center] {\switchtobodyfont[18pt]\bf\em#1} \stopalignment \blank } But I would like to have also a macro for the following: {\bf Contact gegevens:} \setupfillinrules[width=3cm] \fillinrules{Bedrijf:} \fillinrules{Naam:} \fillinrules{Adres:} \fillinrules{PC Woonplaats:} \fillinrules{E-mail} \fillinrules{Telefoon:} \fillinrules{GSM:} \blank \crlf The biggest problem is that the width is dependent on the longest text that is given here. In this case PC Woonplaats. Is there a smart way to calculate the right value? Another problem is that the distance between lines with fillinrules is about twice as big as with normal lines. How can I get the distance the same as with normal lines? -- Cecil Westerhof M CLDWesterhof@gmail.com O< ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________