Re: Char alignment in literals

Subject: Re: Char alignment in literals
From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
Date: Tue, 21 Jul 1998 11:48:03 -0400 (EDT)
At 21 Jul 1998 12:52 +0100, Pawson, David wrote:
 > I have a series of paragraphs, each with a literal
 > and document data.
 > Tel:             xxx
 > Fax:            xxx
 > etc.
 > 
 > 
 > 
 > (element (contacts tel) 
 > 	(make paragraph
 > 	use: para-style
 > 	keep-with-next?:  #t 
 > 	(sosofo-append
 > 	 (literal "Tel:       ")
 > 	(process-children))))
 > 
 > In order to align them vertically, I want to 
 > insert a <tab> within the literal, or cause the 
 > content to commence at some fixed point.
 > Because of the literal, I cannot use
 > first-line-start-indent for the para.
 > 
 > 
 > How should I cause the alignment please?

Use a line-field flow object.  This example (cut down from an existing
stylesheet) presumes a %field-width% variable:

(element (contacts tel)
	  (make paragraph
		start-indent: %field-width%
		first-line-start-indent: (- %field-width%)
		(make line-field
		      field-width: %field-width%
	              (literal "Tel:"))
	        (process-children)))

Regards,


Tony Graham
=======================================================================
Tony Graham
Mulberry Technologies, Inc.                         Phone: 301-315-9632
17 West Jefferson Street, Suite 207                 Fax:   301-315-8285
Rockville, MD USA 20850                 email: tgraham@xxxxxxxxxxxxxxxx
=======================================================================


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Char alignment in literals
    • Pawson, David - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id HAA23559Tue, 21 Jul 1998 07:59:54 -0400 (EDT)
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA28728Tue, 21 Jul 1998 11:50:06 -0400 (EDT) <=
      • Brandon Ibach - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA00288Tue, 21 Jul 1998 12:03:06 -0400 (EDT)
      • <Possible follow-ups>
      • Pawson, David - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id DAA24489Wed, 22 Jul 1998 03:19:39 -0400 (EDT)