Re: Trouble with paragraph duplication

Pierre <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Message-ID <[email protected]>
Martin Senft :
> That is true, but I am still confused that no paragraph breaking takes
> place in this case. Also, when I use the @Wide command inside the
> @Lorem definition or around its invocation, It breaks as expected.
> However, when I use @Wide around @Lorem @Lorem, I get the same error
> as without using @Wide. What is the rule here that decides when to
> break lines in the contents of the @Lorem definition?
> 

The way I understand it, you are trying to put 2 objects side by side.
They are too large for that, causing the error. If now you resize them,
individually, using @Wide, they might fit (depending on the width you
specify).
Putting @Wide _around_ the dual invocation of @Lorem is reducing the
width available to the already too large juxtaposition. Why should it
get rid of the error? If anything it would create a problem if there
wasn't already one.


> Martin
> 
> 2012/2/21 Jeff Kingston <[email protected]>:
> > OK, there is also a problem further down:
> >
> >  @Text @Begin
> >  @Lorem
> >  @Lorem
> >  @End @Text
> >
> > The writer of this has treated @Lorem as though it is a macro
> > which returns a sequence of tokens rather than a definition
> > which returns an object.  This will produce two copies of
> > @Lorem side by side within a paragraph, in the same way that
> >
> >  @Text @Begin
> >  lorikeet
> >  lorikeet
> >  @End @Text
> >
> > would produce two copies of lorikeet side by side within
> > a paragraph.  See the User's Guide, Section 1.3.
> >
> > Jeff
> >
> > On Tue, Feb 21, 2012 at 08:31:10PM +0100, Martin Senft wrote:
> >> 2012/2/20 Jeff Kingston <[email protected]>:
> >> > Forgetting the // is a well-known Lout gotcha.
> >> >
> >>
> >> Good point, I haven't noticed that. However, fixing this does not
> >> remove the paragraph breaking issue in "def @Lorem { @PP ... }" for
> >> me.
> >>
> >> Martin
> 

-- 
Pierre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.