From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38868 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Descriptions and headerwidth, distance and align Date: Wed, 30 Jan 2008 16:21:08 +0100 Message-ID: <115224fb0801300721t20b643a1u6cefe7fa2a4f0135@mail.gmail.com> 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: ger.gmane.org 1201706585 24359 80.91.229.12 (30 Jan 2008 15:23:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2008 15:23:05 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 30 16:23:23 2008 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 1JKEmS-0002qN-50 for gctc-ntg-context-518@m.gmane.org; Wed, 30 Jan 2008 16:23:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8ADC51FC09; Wed, 30 Jan 2008 16:22:48 +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 21411-03-2; Wed, 30 Jan 2008 16:22:40 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D78621FBEB; Wed, 30 Jan 2008 16:22:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6C9751FBCC for ; Wed, 30 Jan 2008 16:22:39 +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 21411-03 for ; Wed, 30 Jan 2008 16:22:33 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by ronja.ntg.nl (Postfix) with ESMTP id 5EBCA1FBEB for ; Wed, 30 Jan 2008 16:21:08 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so365075uge.50 for ; Wed, 30 Jan 2008 07:21:08 -0800 (PST) Original-Received: by 10.66.249.16 with SMTP id w16mr2873929ugh.32.1201706468116; Wed, 30 Jan 2008 07:21:08 -0800 (PST) Original-Received: by 10.67.94.6 with HTTP; Wed, 30 Jan 2008 07:21:08 -0800 (PST) Content-Disposition: inline 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:38868 Archived-At: Hi all, I tried to use descriptions in a module from me and get a few unwanted and wrong results from the settings. In my first example I try to set the headerwidth to 3cm and the distance between the header and the text to 1cm. The result I get from this example is a 2cm wide header and 2cm between the header and the text. I know the real width for the header is the difference between width and distance and 2cm are correct but this is a stupid method, changing this will break many documents but a alternative solution would be to introduce a label headerwidth. The wrong distance between the header and the text is also a result from this method, the description macros reduce the headerwidth by the distance value and introduce a extra value between the headerbox and the text, this give me twice the distance width and is a bug for me. Another missing thing is a key headeralign, a workaround for moment is to misuse the text key but this should be implemented. \definedescription [test] [width=3cm, text=\hfill, % better headalign=flushright distance=1cm] \starttext \showframe \test{One} Text for the first description. \test{Two} Text for the second description. \stoptext My second example deals with the same problem as above (headerwidth is reduced by distance width) but it gives a completely broken output. I let ConTeXt calculate the width for the header and set a distance value of 1cm between the header and text. This works prefect but the text itself is placed in a box with the width "calculated textwidth - distance" and this is not enough room for the text and it is broken into two lines. \definedescription [test] [width=fit, distance=1cm] \starttext \test{First description} Text for the first description. \test{Second description} Text for the second description. \stoptext Greetings, 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 ___________________________________________________________________________________