Re: Centering / Indenting a paragraph?

2012-11-24 Thread David Kastrup
Bric  writes:

> Since it's developing so fast, it might be a good idea to mention
> versions to a newbie.  Ubuntu still has nothing newer than 2.14 in its
> repositories.

Raring has 2.16.0: https://launchpad.net/ubuntu/+source/lilypond>

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-24 Thread Bric


On November 23, 2012 at 6:17 PM Trevor Daniels  wrote:
>
> Bric, you wrote Friday, November 23, 2012 10:57 PM
> 
> > Nope.  Removed all the "\hspace"s.  The third paragraph (set of \line's) is
> > still rammed all the way to the left, crossing the gutter.
> >
> > Actually, changing "\column" to "\center-column" shoves the paragraph left,
> > beyond the absolute margin ( pixel 0)
> >
> > When it's "\column" the paragraph is left-aligned, but with a 2-cm or so
> > left
> > margin
>
> If you look at the example at the end of section 2.1.3 in the Notation
> Reference,
> and add the following to the end, it will add a centered sixth verse.  You
> should be able to work out from this what you need to do.  Here's the
> extra verse - make sure you get fill-line (which centres a single argument)
> and line (which makes a single argument from two) right!
>
> \markup {
>   \fill-line {
> \line {
>   \bold "6."
>   \column {
> "This is verse six."
> "It has two lines."
>   }
> }
>   }
> }
>
> Trevor

OK.  I hadn't checked my version -- it is/was 2.14 .  Somewhere between 2.14 and
2.16.1 things like "\vspace" and other syntax/commands were added...

Since it's developing so fast, it might be a good idea to mention versions to a
newbie.  Ubuntu still has nothing newer than 2.14 in its repositories.

Anyhow, I'm trying the most stable now -- 2.16.1 ; let me see how far I can get
with 2.16.1 on my own.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread Thomas Morley
2012/11/23 Bric :
> On November 23, 2012 at 4:08 PM Thomas Morley 
> wrote:
[...]
>> Deleting \hspace #4 will center it horizontally on the page.
>>
>
> Nope.  Removed all the "\hspace"s.  The third paragraph (set of \line's) is
> still rammed all the way to the left, crossing the gutter.
[...]

Please excuse, if I'm a bit grumpy today.
Being a music-teacher in germany, I can confirm: german so called
"learning-an-instrument-pupil" are the worsest you can ever imagine.
So I will not further explain anything at the end of this horrible day.

Maybe the code below will give you some hints.
Some links included. (Compile the code and you can simply click on them.)

\version "2.16.0"

\markup \rounded-box \fill-line {
\override #'(font-name . "Comic Sans MS Bold")
\center-column {
\fontsize #5  "It's all in the docs"
\smaller "Some examples (with links) below"
}
}


\markup \fill-line {
\center-column {

\vspace #2
\line \bold \large { "The \\paragraph markup-command" }
\with-url
#"http://lilypond.org/doc/v2.17/Documentation/extending-big-page#index";
\line \bold \large { "From \"Extending\"" }
\with-url

#"http://lilypond.org/doc/v2.17/Documentation/extending-big-page#new-markup-list-command-definition";
\line \bold \large { "2.5.4 New markup list command definition" }
\null
}
}

#(define-markup-list-command (paragraph layout props args) (markup-list?)
   #:properties ((par-indent 2))
   (interpret-markup-list layout props
 #{\markuplist \justified-lines { \hspace #par-indent #args } #}))

\markuplist {
  \paragraph {
The art of music typography is called \italic {(plate) engraving.}
The term derives from the traditional process of music printing.
Just a few decades ago, sheet music was made by cutting and stamping
the music into a zinc or pewter plate in mirror image.
  }
  \override-lines #'(par-indent . 10) \paragraph {
The plate would be inked, the depressions caused by the cutting
and stamping would hold ink.  An image was formed by pressing paper
to the plate.  The stamping and cutting was completely done by
hand.
  }
  \vspace #2
}

\markup \fill-line { \center-column {
\with-url
#"http://lilypond.org/doc/v2.17/Documentation/notation-big-page#index";
\line \bold \large { "From \"Notation Reference\"" }
\with-url
#"http://lilypond.org/doc/v2.17/Documentation/notation-big-page#align";
\line \bold \large { "A.10.2 Align" }
\null
}
}

\markup \fill-line {
  \override #'(line-width . 40)
  \justify-string #"Lorem ipsum dolor sit amet, consectetur
  adipisicing elit, sed do eiusmod tempor incididunt ut labore
  et dolore magna aliqua.


  Ut enim ad minim veniam, quis nostrud exercitation ullamco
  laboris nisi ut aliquip ex ea commodo consequat.


  Excepteur sint occaecat cupidatat non proident, sunt in culpa
  qui officia deserunt mollit anim id est laborum"
}

\markup \vspace #2

\markup {
  \fill-line {
\hspace #1
\column {
  \line { This is my first verse  }
  \line { For Column 1 as a  supplemental }
  \line { Text blurb below the score }
  \line { This is when I don't }
  \line { Want to align multiple  }
  \line { Verses directly beneath the score staves }
}
\hspace #2

\column {
  \line { This is my second verse  }
  \null
  \line { It is for Column 2 }
  \null
  \line { of the second  }
  \line { Blurb. }
  \line { Pretty cool and all is well  }
  \line { Wit these two columns }
}
\hspace #3
  }
}

\markup {
  \column {
\vspace #1
\draw-hline
  }
}

\markup {
  \fill-line {
\column  {
  \vspace #1
  \line { \italic { I want this  } }
  \line { \italic { Centered underneath } }
  \line { \italic { The above two verses } }
  \line { \italic { Apparently, that isn't easy! } }

}
  }
}

\markup {
  \column {
\vspace #2
\draw-hline
  }
}

\markup \fill-line {
\center-column {
\vspace #2
\with-url
#"http://lsr.dsi.unimi.it/LSR/";
\line { \italic "Btw, do you know the LSR?" }
}
}


-Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread Trevor Daniels

Bric, you wrote Friday, November 23, 2012 10:57 PM
 
> Nope.  Removed all the "\hspace"s.  The third paragraph (set of \line's) is
> still rammed all the way to the left, crossing the gutter.
> 
> Actually, changing "\column" to "\center-column" shoves the paragraph left,
> beyond the absolute margin ( pixel 0)
> 
> When it's "\column" the paragraph is left-aligned, but with a 2-cm or so left
> margin

If you look at the example at the end of section 2.1.3 in the Notation 
Reference,
and add the following to the end, it will add a centered sixth verse.  You
should be able to work out from this what you need to do.  Here's the
extra verse - make sure you get fill-line (which centres a single argument)
and line (which makes a single argument from two) right!

\markup {
  \fill-line {
\line {
  \bold "6."
  \column {
"This is verse six."
"It has two lines."
  }
}
  }
}

Trevor

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread Eluze
Bric wrote
>> Lily does what you told her:
>> \fill-line with \column { ... } on the left and \hspace #4 on the right.
>> Visible, if you add \box before \hspace #4.
>> Deleting \hspace #4 will center it horizontally on the page.
>>
> 
> Nope.  Removed all the "\hspace"s.  The third paragraph (set of \line's)
> is
> still rammed all the way to the left, crossing the gutter.
> 
> Actually, changing "\column" to "\center-column" shoves the paragraph
> left,
> beyond the absolute margin ( pixel 0)
> 
> When it's "\column" the paragraph is left-aligned, but with a 2-cm or so
> left
> margin

better send the new code instead of quoting the old one …

for me Harm's solution works perfectly!

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Centering-Indenting-a-paragraph-tp136743p136757.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread Bric
On November 23, 2012 at 4:08 PM Thomas Morley 
wrote:
> 2012/11/23 Bric :
> > Hi, I'm new to this list and to lilypond
> >
> > I just learned that I can do this:
> >
> >
> > \markup {
> >   \fill-line {
> > \hspace #1
> > \column {
> >   \line { This is my first verse  }
> >   \line { For Column 1 as a  supplemental }
> >   \line { Text blurb below the score }
> >   \line { This is when I don't }
> >   \line { Want to align multiple  }
> >   \line { Verses directly beneath the score staves }
> > }
> > \hspace #2
> >
> > \column {
> >   \line { This is my second verse  }
> >   \line { It is for Column 2 }
> >   \line { of the second  }
> >   \line { Blurb. }
> >   \line { Pretty cool and all is well  }
> >   \line { Wit these two columns }
> > }
> > \hspace #3
> >
> > }
> >
> > The above is rendered fine, with two columns well balanced.
> >
> > the problem is:  How do I add a third paragraph, centered and indented?
> >
> > If I add the following after the above...
> >
> > \markup {
> >   \fill-line {
> > \column  {
> >   \line { \italic { I want this  } }
> >   \line { \italic { Centered underneath } }
> >   \line { \italic { The above two verses } }
> >   \line { \italic { Apparently, that isn't easy! } }
> >
> > }
> > \hspace #4
> >   }
> > }
> >
> > it is left-justified, left-aligned.  How do I shift the paragraph?
>
> Lily does what you told her:
> \fill-line with \column { ... } on the left and \hspace #4 on the right.
> Visible, if you add \box before \hspace #4.
> Deleting \hspace #4 will center it horizontally on the page.
>

Nope.  Removed all the "\hspace"s.  The third paragraph (set of \line's) is
still rammed all the way to the left, crossing the gutter.

Actually, changing "\column" to "\center-column" shoves the paragraph left,
beyond the absolute margin ( pixel 0)

When it's "\column" the paragraph is left-aligned, but with a 2-cm or so left
margin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread Eluze
Bric wrote
> Also, while we're on this topic:
> 
> (2) How do I add an empty line (forced newline, paragraphbreak, or some
> such),
> in the above sets of lines?
> 
> (3) How can I add other things like solid horizontal line (rules), etc..,
> etc. ?

the text markup commands are well explained in
http://lilypond.org/doc/v2.17/Documentation/notation-big-page#text-markup-commands
- please read it and come back with open questions!

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Centering-Indenting-a-paragraph-tp136743p136748.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread Thomas Morley
2012/11/23 Bric :
> Hi, I'm new to this list and to lilypond
>
> I just learned that I can do this:
>
>
> \markup {
>   \fill-line {
> \hspace #1
> \column {
>   \line { This is my first verse  }
>   \line { For Column 1 as a  supplemental }
>   \line { Text blurb below the score }
>   \line { This is when I don't }
>   \line { Want to align multiple  }
>   \line { Verses directly beneath the score staves }
> }
> \hspace #2
>
> \column {
>   \line { This is my second verse  }
>   \line { It is for Column 2 }
>   \line { of the second  }
>   \line { Blurb. }
>   \line { Pretty cool and all is well  }
>   \line { Wit these two columns }
> }
> \hspace #3
>
> }
>
> The above is rendered fine, with two columns well balanced.
>
> the problem is:  How do I add a third paragraph, centered and indented?
>
> If I add the following after the above...
>
> \markup {
>   \fill-line {
> \column  {
>   \line { \italic { I want this  } }
>   \line { \italic { Centered underneath } }
>   \line { \italic { The above two verses } }
>   \line { \italic { Apparently, that isn't easy! } }
>
> }
> \hspace #4
>   }
> }
>
> it is left-justified, left-aligned.  How do I shift the paragraph?

Lily does what you told her:
\fill-line with \column { ... } on the left and \hspace #4 on the right.
Visible, if you add \box before \hspace #4.
Deleting \hspace #4 will center it horizontally on the page.

>
> Also, while we're on this topic:
>
> (2) How do I add an empty line (forced newline, paragraphbreak, or some such),
> in the above sets of lines?
>
> (3) How can I add other things like solid horizontal line (rules), etc.., 
> etc. ?
>

Oh, no, I'm not the "Erklärbär" (don't knw how to translate _that_
into english).

Perhaps someone else.

-Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread Bric
On November 23, 2012 at 3:29 PM SoundsFromSound 
wrote:
> Bric wrote
> > Hi, I'm new to this list and to lilypond
> >
> > How do I shift the paragraph?
> >
> > Also, while we're on this topic:
> >
> > (2) How do I add an empty line (forced newline, paragraphbreak, or some
> > such),
> > in the above sets of lines?
> >
> > (3) How can I add other things like solid horizontal line (rules), etc..,
> > etc. ?
> >
> > Thanks
>
> Hi Bric,
>
> Welcome to the list!
>
> Does this thread help at all with your question?
>
> http://lilypond.1069038.n5.nabble.com/Adding-3-column-section-to-score-td136474.html

Changinge "\column" to "\center-column"  doesn't center the column.  It only
shoves the verse further leftward, beyond gutter (left) margin.

(the rounded box is rendered fine, though)


>
> Ben
>
>
>
> -
> composer | sound designer
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/Centering-Indenting-a-paragraph-tp136743p136744.html
> Sent from the User mailing list archive at Nabble.com.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centering / Indenting a paragraph?

2012-11-23 Thread SoundsFromSound
Bric wrote
> Hi, I'm new to this list and to lilypond
> 
> How do I shift the paragraph?
> 
> Also, while we're on this topic:
> 
> (2) How do I add an empty line (forced newline, paragraphbreak, or some
> such),
> in the above sets of lines?
> 
> (3) How can I add other things like solid horizontal line (rules), etc..,
> etc. ?
> 
> Thanks

Hi Bric,

Welcome to the list! 

Does this thread help at all with your question?

http://lilypond.1069038.n5.nabble.com/Adding-3-column-section-to-score-td136474.html

Ben



-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Centering-Indenting-a-paragraph-tp136743p136744.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Centering / Indenting a paragraph?

2012-11-23 Thread Bric
Hi, I'm new to this list and to lilypond

I just learned that I can do this:


\markup {
  \fill-line {
\hspace #1
\column {
  \line { This is my first verse  }
  \line { For Column 1 as a  supplemental }
  \line { Text blurb below the score }
  \line { This is when I don't }
  \line { Want to align multiple  }
  \line { Verses directly beneath the score staves }
}
\hspace #2

\column {
  \line { This is my second verse  }
  \line { It is for Column 2 }
  \line { of the second  }
  \line { Blurb. }
  \line { Pretty cool and all is well  }
  \line { Wit these two columns }
}
\hspace #3

}

The above is rendered fine, with two columns well balanced.

the problem is:  How do I add a third paragraph, centered and indented?

If I add the following after the above...

\markup {
  \fill-line {
\column  {
  \line { \italic { I want this  } }
  \line { \italic { Centered underneath } }
  \line { \italic { The above two verses } }
  \line { \italic { Apparently, that isn't easy! } }

}
\hspace #4
  }
}

it is left-justified, left-aligned.  How do I shift the paragraph?

Also, while we're on this topic:

(2) How do I add an empty line (forced newline, paragraphbreak, or some such),
in the above sets of lines?

(3) How can I add other things like solid horizontal line (rules), etc.., etc. ?

Thanks

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user