lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Producing a hymn book


From: Barrie Stott
Subject: Re: Producing a hymn book
Date: Wed, 9 Nov 2005 13:42:25 +0000
User-agent: Mutt/1.5.6+20040722i

Many thanks Jeff for your suggestions. I've used @OneRow to good
effect and only one problem remains. I've been on it some time and am
beginning to think it cannot be solved. Hence my current email.

The body of each hymn is centred on the page in some structure of the
following form where I assume that there are 3 verses and some
copyright information:

        <hymn number> @Hymn {
        <verse 1 stuff>
        <verse 2 stuff>
        <verse 3 stuff>
        }
        <unbreakable vertical space: eg `//5pu'>
        <copyright stuff: to be right justified>

The placing of the only `}' in the example is crucial. It should be
said that my only problem is the positioning of the copyright
information; everything else is just as I want it, now that I am using
@OneRow within each verse and within copyright stuff.

Suppose first that `}' is as in the example: Although the vertical
space is unbreakable, there are 2 or 3 places where the hymn is at the
bottom of a page with the copyright stuff at the top of the next page.
I would have thought, if the space really is unbreakable, that the
whole hymn should appear at the top of the second page since I am
making the hymn and the copyright indivisible. Why is this not so?

Suppose now I move the `}' to the end of the example, after the
copyright stuff. Now verse 3 and the copyright stay together at the
top of the second page as desired. Unfortunately, the copyright is not
right justified in the page but within the centred part used by the
hymn proper. This I would expect.

Is there some way to get just the 3rd verse and copyright glued
together with the copyright right justified within the page?

(The verse stuff is as Jeff showed below. The other definition is:
def @Hymn left x right y { @LP {Bold 20p} @Font x @RCD y }
where x is the hymn number and y is the sequence of verse stuff.)

Barrie.

On Tue, Nov 08, 2005 at 07:21:55AM +1100, Jeff Kingston wrote:
> To keep part of a document on one page, enclose it in @OneRow {}.
> To prevent a vertical concatenation operator from becoming the
> point where a column or page break occurs, append "u" (for
> unbreakable) to its length, e.g. //0.37cu.
> 
> > Any suggestions would be greatly appreciated.
> 
> Your example code is an unholy mixture of raw Lout and symbols
> from the standard packages.  You could make things a lot nicer
> by using some well-chosen definitions, put into a mydefs file.
> For example,
> 
>     macro @NextVerse { //0.37c }
> 
> and
> 
>     def @Verse
>         right x
>     {
>         {Times Base 12p} @Font {1.3fx lines} @Break @OneRow x
>     }
> 
> or similar.
> 
> Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]