From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9791 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: problem: long descriptions Date: Sat, 09 Nov 2002 18:23:55 +0100 Sender: ntg-context-admin@ref.ntg.nl Message-ID: <5.1.0.14.1.20021109182252.033e34e0@remote-1> References: <20021109080616.GA1623@fly.srk.fer.hr> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1036962937 16358 80.91.224.249 (10 Nov 2002 21:15:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2002 21:15:37 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18AzQe-0004Fi-00 for ; Sun, 10 Nov 2002 22:15:36 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id F325210B4A; Sun, 10 Nov 2002 22:17:12 +0100 (MET) Original-Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by ref.ntg.nl (Postfix) with ESMTP id 0FF2D10B46 for ; Sun, 10 Nov 2002 22:15:19 +0100 (MET) Original-Received: from LAPTOP-3.wxs.nl ([213.75.95.46]) by smtp01.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id H5DPPH01.AYE for ; Sun, 10 Nov 2002 22:15:17 +0100 X-Sender: hagen-mail@remote-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ref.vet.uu.nl In-Reply-To: <20021109080616.GA1623@fly.srk.fer.hr> Errors-To: ntg-context-admin@ref.ntg.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9791 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9791 At 09:06 AM 11/9/2002 +0100, you wrote: >Hi! I'm writing reference manual for a C/C++ library and I have the >following problem: When I define a description, long prototypes are not >line-broken. For example, I've set up > >\definedescription > [methref] > [location=top,headstyle=\tt] > >When I have >\startmethref{a very long prototype.........................} >blah blah blah >\stopmethref > >the argument is not line-broken and it goes out of the page boundary. The >text shows properly only in the next line. I have something like the following >in mind, but I don't know how to do it: > >I'd like the typeset layout to look something like this > >a very long prototype proto.. Text describing the method >proto proto proto proto proto Text describing the method >proto proto Text describinb the method >More text describing the method. More text. More text >More text. > >Prototype may be framed. The text widths should be 0.5 and 0.5 of textwidth >for both the prototype and the description. > >I hope you understood what I want :) I was thinking something like typesetting >prototype in the box and then using floating mechanism (\startXXXleft, would >that work at all?), but is there a more straightforward way? How about: \definefloat[Prototype] \setupfloat[Prototype][default={left,none}] % default is a new parameter, you need a recent version fot this, else % \placePrototype[left]{none} \defineframedtext[Prototype][width=.5\textwidth,bodyfont=8pt] \placePrototype\empty \startPrototype \input knuth \stopPrototype \input tufte \def\StartPrototype{\placePrototype\empty\startPrototype} \def\StopPrototype {\stopPrototype} \StartPrototype \input knuth \StopPrototype \input tufte Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------