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




line-width in lilypond book

2022-10-25 Thread Stefan Thomas
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?
Thanks,
Stefan


Re: Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
Hi Kevin,

thanks for your advise. I have found that in fact I have to adjust the
line-width file by file. Most of the times when a file has multiple lines
lilypond-book works fine, the problem arises when I have single lines which
lilypond doesn't split in two lines but which are too full to be placed
within the line-width.

Maybe it would be nice to have a function by which to fix the total-width of
a line, including brackets and instrument names.

Thank you,
Andrea



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880p170915.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: Line-width and Lilypond-book

2015-01-23 Thread Kevin Barry
On Fri, Jan 23, 2015 at 2:34 PM, Jayaratna jayara...@gmail.com wrote:

 I'd simply like it to be as large as the textwidth. I have had a good
 result
 by manually inserting a slightly shorter line-width (2mm less than the
 textwidth) in the paper block.


There is currently no way to fix the width of a lilypond score: lilypond
considers a `line' to begin with the line that starts a system, so anything
that is to the /left/ of that, such as the system start bracket, the
instrument name, or bar numbers will make the actual line-width longer than
you have specified. Fixing the paper width doesn't solve the problem
either: if the left margin and indent are both 0, lilypond will put stuff
off the page to the left (or, in the case of eps-backend images, make the
image wider than the paper=width).

The workaround I use is either to use a shorter line-width (or
paper-width), or to add a little left-margin, but the value you need to use
varies depending on the staff-size and on what lies outside of it, so you
just have to experiment every time and check how wide the images are. It's
tedious, and also the reason I stopped using lilypond-book (now I just
create the score images separately and include them manually).

I don't know if this is considered a bug (but I think it should be, or at
least a much-needed enhancement). As an example, consider the following
minimal example:

\version 2.18.2


\paper {

  left-margin = 0

  indent = 0

}

\new Staff \with { instrumentName = CAN'T SEE ME } {

  c

}


hth,

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


Re: Line-width and Lilypond-book

2015-01-23 Thread Federico Bruni
2015-01-23 10:47 GMT+01:00 Jayaratna jayara...@gmail.com:

 \documentclass[a4paper]{article}
 \begin{document}

 Dummy text, dummy text...

 \noindent \lilypondfile{exemple01.ly}

 \end{document}



I think that the indent should be an option of \lilypondfile, as explained
in the doc:

\lilypondfile[options,go,here]{filename}

so:

\lilypondfile[noindent]{example01.ly}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
Dear Lilypondians,

I am stuck with a linewidth problem in Lilypond-book. Here is a minimal
example of my latex file:

\documentclass[a4paper]{article}
\begin{document}

Dummy text, dummy text...

\noindent \lilypondfile{exemple01.ly}

\end{document}

And my esemple01.ly:
\version 2.18.2
\score { \new Staff \relative c'' {
  \clef violin \key f \major
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d

}

}


I use 
lilypond-book --latex-program=pdflatex --leftpadding=0 latexfile.lytex
and then 
pdflatex latexfile.tex

I get this:

http://lilypond.1069038.n5.nabble.com/file/n170880/2015-01-23-104544_1920x1080_scrot.png
 

Where's the problem?

Thank you,
Andrea



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880.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: Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
\documentclass[a4paper]{article}

\begin{document}

Dummy text, dummy text...

\lilypondfile[noindent]{esempioprova01.ly}

\end{document}

and

\documentclass[a4paper]{article}

\begin{document}

Dummy text, dummy text...

\lilypondfile{esempioprova01.ly}

\end{document}

give exactly the same result. I'm more worried about the right margin than
about the indent, though.

A



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880p170890.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: Line-width and Lilypond-book

2015-01-23 Thread Federico Bruni
2015-01-23 14:17 GMT+01:00 Jayaratna jayara...@gmail.com:

 give exactly the same result. I'm more worried about the right margin than
 about the indent, though.



how do you want it to look like?
perhaps:

\noindent
Dummy text, dummy text...

???

see attached pdf


book.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
I'd simply like it to be as large as the textwidth. I have had a good result
by manually inserting a slightly shorter line-width (2mm less than the
textwidth) in the paper block.

A



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880p170894.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


Line-width in Lilypond-book

2009-07-22 Thread 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.
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}

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' {c e g b2 d fis a cis e gis b dis }
\bar ||

\time 4/2
\relative c' {a d g2 c f bes b e a d g c }
\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


Re: Line-width in Lilypond-book

2009-07-22 Thread Dmytro O. Redchuk
2009/7/22 Hugo Leonardo Ribeiro hugole...@gmail.com:
 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' {c e g b2 d fis a cis e gis b dis }
 \bar ||

 \time 4/2
 \relative c' {a d g2 c f bes b e a d g c }
 \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

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
hugole...@gmail.comwrote:

 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 Carl Sorensen



On 7/22/09 8:11 AM, Hugo Leonardo Ribeiro hugole...@gmail.com 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