From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35207 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: white around descriptions Date: Sat, 30 Jun 2007 22:14:57 +0200 Message-ID: <502EA6D9-2077-4554-9034-3026EE70EE1C@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============0201281840==" X-Trace: sea.gmane.org 1183234482 30323 80.91.229.12 (30 Jun 2007 20:14:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2007 20:14:42 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 30 22:14:34 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 1I4jL0-00063b-PQ for gctc-ntg-context-518@m.gmane.org; Sat, 30 Jun 2007 22:14:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3EF721FFA2; Sat, 30 Jun 2007 22:14:34 +0200 (CEST) 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 27935-01; Sat, 30 Jun 2007 22:14:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77A2A1FF0A; Sat, 30 Jun 2007 22:14:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CCAF61FF0A for ; Sat, 30 Jun 2007 22:14:19 +0200 (CEST) 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 24030-04 for ; Sat, 30 Jun 2007 22:14:14 +0200 (CEST) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with ESMTP id 52C0E1FF02 for ; Sat, 30 Jun 2007 22:14:14 +0200 (CEST) Original-Received: from 119-151.uva.surfnetthuis.nl [145.98.119.151] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.38). id l5UKEB005042; Sat, 30 Jun 2007 22:14:11 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new 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:35207 Archived-At: --===============0201281840== Content-Type: multipart/alternative; boundary=Apple-Mail-1-916351456 --Apple-Mail-1-916351456 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I find a get a lot of whitespace around my defined descriptions. Setting \setupdescriptions[\c!before=,\c!inbetween=,\c!after=] does not much help. Is there something else that can be done. Preferably without resorting to wild guesses like "before=\godown[-10pt]" or the like. Or is there something else I fail to see. A sample of the code involved(don't mind the \@@exm.. parameters, they are defined elsewhere, annotationtext is a token register): \definedescription[annotationblock][margin=no,location=top,width=broad,% before=,inbetween=,after=\strut,% headstyle=\@@exmintrostyle,style=\@@exmstyle,% text=\placeannotationstart] \def\annotation#1\par{\global\annotationtext={#1}}% \long\def\startannotation#1\stopannotation{\global\annotationtext={#1}}% %....................................................................... % placing the annotation indicator in the annotationblock description \def\placeannotationstart{% no white above and below rule \vboxinsideframedtext{% \setuptextrules[style=\@@exmintrostyle]% \textrule{\WWord{\Note}}}} Hans van der Meer --Apple-Mail-1-916351456 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=US-ASCII
I find a get a lot of = whitespace around my defined descriptions.
Setting
= \setupdescriptions[\c!before=3D,\c!inbetween=3D,\c!after=3D]
do= es not much help.
Is there something else that can be done. = Preferably without resorting to wild guesses like = "before=3D\godown[-10pt]" or the like.
Or is there something = else I fail to see.
A sample of the code involved(don't = mind the \@@exm.. parameters, they are defined elsewhere, annotationtext = is a token register):

\definedescription[annotation= block][margin=3Dno,location=3Dtop,width=3Dbroad,%
= before=3D,inbetween=3D,after=3D\strut,%
= headstyle=3D\@@exmintrostyle,style=3D\@@exmstyle,%
= text=3D\placeannotationstart]
\def\annotation#1\par{\glob= al\annotationtext=3D{#1}}%
\long\def\startannotation#1\stopannot= ation{\global\annotationtext=3D{#1}}%
%.........................= ..............................................
% placing the = annotation indicator in the annotationblock = description
\def\placeannotationstart{% no white above and = below rule
= \vboxinsideframedtext{%
= \setuptextrules[style=3D\@@exmintrostyle]%
= \textrule{\WWord{\Note}}}}

Hans van der Meer

=

= --Apple-Mail-1-916351456-- --===============0201281840== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0201281840==--