Re: line-width in lilypond book

2022-10-25 Thread Werner LEMBERG
>> Actually,
>>
>> ```
>> \begin[line-width=394\pt]{lilypond}
>> ```
>>
>> is also correct.
> 
> Nope.  It is backward compatibility but should not be used anywhere.
> 
> git grep '\\begin\['
> 
> unfortunately shows that this isn't consistently done yet.  The
> problem with the old form is that it is not the optional LaTeX
> option syntax and could not possibly be implemented in a
> LaTeX-internal verbatim-like environment.

OK.  David, could you prepare a documentation patch, please?


Werner



Re: line-width in lilypond book

2022-10-25 Thread David Kastrup
Werner LEMBERG  writes:

>> The correct syntax is
>> 
>> \begin{lilypond}[line-width=394\pt]
>
> Actually,
>
> ```
> \begin[line-width=394\pt]{lilypond}
> ```
>
> is also correct.

Nope.  It is backward compatibility but should not be used anywhere.

git grep '\\begin\['

unfortunately shows that this isn't consistently done yet.  The problem
with the old form is that it is not the optional LaTeX option syntax and
could not possibly be implemented in a LaTeX-internal verbatim-like
environment.

-- 
David Kastrup



Re: line-width in lilypond book

2022-10-25 Thread Jean Abou Samra




Le 25/10/2022 à 15:56, Werner LEMBERG a écrit :

The correct syntax is

\begin{lilypond}[line-width=394\pt]

Actually,

```
\begin[line-width=394\pt]{lilypond}
```

is also correct.


Ah, OK, I didn't know that. Then we need more info from the OP to 
understand what the problem actually is.




Re: line-width in lilypond book

2022-10-25 Thread Werner LEMBERG


> The correct syntax is
> 
> \begin{lilypond}[line-width=394\pt]

Actually,

```
\begin[line-width=394\pt]{lilypond}
```

is also correct.


Werner



Re: line-width in lilypond book

2022-10-25 Thread Jean Abou Samra

Le 25/10/2022 à 10:31, Stefan Thomas a écrit :

Community,
I just noticed that it doesn't seem to make any difference whether I 
write

 \begin[line-width=394\pt]{lilypond}
or
 \begin[line-width=394\pt]{lilypond}
in a latex file, that I process with lilypond-book.
The lines don't fit the page margins.
Does anyone know what to do here?



The correct syntax is

\begin{lilypond}[line-width=394\pt]

Best,
Jean




Re: Line-width in Lilypond-book

2009-07-22 Thread Carl Sorensen



On 7/22/09 8:11 AM, "Hugo Leonardo Ribeiro"  wrote:

> Hi everyone,
> I am trying to adjust the line width in a lilypond-book example, but
> whatever I try, it always look like a ragged right style. What I want is
> to stretch the line, in order to the chords places more distant one from
> each other.
> I searched in earlier messages and someone named Morton had the same
> problem:
> http://www.mail-archive.com/lilypond-user@gnu.org/msg28520.html
> 
> Graham said that this bug was fixed in 2.10.6.
> I am using 2.12.1 and have this problem.
> 
> This is the latex code:
> 
> \begin{center}
> \lilypondfile[noindent,line-width=10
> \cm,staffsize=15]{exemplos/parte_4/cap01/exemplo01.ly}
> \end{center}

You need to set ragged-right = ##f in your \lilypondfile call.

HTH,

Carl



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


Re: Line-width in Lilypond-book

2009-07-22 Thread Jonathan Kulp
To handle this problem on my own files, I make sure to use "false"
ragged-right setting inside the included lilypond file.

Jon

On Wed, Jul 22, 2009 at 9:11 AM, Hugo Leonardo Ribeiro
wrote:

> Hi everyone,
> I am trying to adjust the line width in a lilypond-book example, but
> whatever I try, it always look like a ragged right style. What I want is
> to stretch the line, in order to the chords places more distant one from
> each other.
> I searched in earlier messages and someone named Morton had the same
> problem:
> http://www.mail-archive.com/lilypond-user@gnu.org/msg28520.html
>
> Graham said that this bug was fixed in 2.10.6.
> I am using 2.12.1 and have this problem.
>
> --
Jonathan Kulp
http://www.jonathankulp.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Line-width in Lilypond-book

2009-07-22 Thread Dmytro O. Redchuk
2009/7/22 Hugo Leonardo Ribeiro :
> Hi everyone,
> I am trying to adjust the line width in a lilypond-book example, but
> whatever I try, it always look like a ragged right style. What I want is
> to stretch the line, in order to the chords places more distant one from
> each other.
Try noragged-right ?..

> This is the latex code:
>
> \begin{center}
> \lilypondfile[noindent,line-width=10
> \cm,staffsize=15]{exemplos/parte_4/cap01/exemplo01.ly}
> \end{center}
>
> This is the Lilypond code:
>
> \version "2.12.0"
>
> cima = {
> \time 5/4
> <<
> \relative c''{a4 b c d e} \\
> \relative c'{f4 g aes bes c}
>>>
> \bar "||"
>
> \time 3/2
> \relative c' {2   }
> \bar "||"
>
> \time 4/2
> \relative c' {2}
> \bar "||"
> }
>
> \score {
>        \new Staff \with { \remove Time_signature_engraver } << \cima >>
>        \layout {
> %               ragged-right = ##t
> %               indent = 2.5\cm
>        }
>        \midi {
>                \context {
>                \Score tempoWholesPerMinute = #(ly:make-moment 60 4)
>                }
>        }
> }
>
>
> Thanks in advance.
> Hugo Ribeiro
> Brazil
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Dmytro O. Redchuk


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


Re: line-width in lilypond-book

2007-03-04 Thread Graham Percival

Morten Lemvigh wrote:
I'm trying to set a songbook using lilypond-book with lilypond 2.10.2 
and latex with the geometry package. By some reason lilypond doesn't 
guess the right linewidth,


Please update to the latest stable version.  This bug was fixed in 2.10.6.

If you still see a problem with 2.10.20, please send a bug report:
http://lilypond.org/web/devel/participating/bugs

Cheers,
- Graham


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