lilypond-book and latex

2007-05-11 Thread Sebastian Menge
Hi

I want to write a report using lily and latex.

Is there a way of using lilypond such that i dont have to interrupt my
normal editing process?

Normally i write tex documents with my preferred editor (vim with
latexsuite) with completion, syntax highlighting, have previews,
quickfix, etc.

If i use lilypond-book i have to call latex on the generated document,
find and fix errors in the original document, then call l-b again and so
on.

On the other hand i dislike to generate eps for the lily-snippets,
because thats inflexible.

Does anyone have an idea how to manage that in a clever way?

Thanks,

Sebastian



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


Re: lilypond-book and latex

2007-05-11 Thread Laura Conrad
> "Sebastian" == Sebastian Menge <[EMAIL PROTECTED]> writes:

Sebastian> Does anyone have an idea how to manage that in a clever
Sebastian> way?

It's not especially clever, but I wouldn't dream of using
lilypond-book without a Makefile to run the commands.  So just set the
Makefile up and run that from emacs. (Or presumably jedit, but I don't
use that.)

My Makefile says:

%.pdf:  %.lytex *.ly *.bib Makefile
 lilypond-book --output=out --psfonts $*.lytex
 cd out;eps-fix-bounding.sh $*.tex;latex $*.tex;bibtex $*.aux;dvips 
$(DVIPSOPTS) -h $*.psfonts -o ../$*.ps $*.dvi
#cd out;latex $*.tex;bibtex $*.aux;dvips $(DVIPSOPTS) -h $*.psfonts -o 
../$*.ps $*.dvi
 ps2pdf $*.ps $*.pdf

You might not need to worry about the bibliography, and if you're
not printing double sided you might not have to do the workaround
(eps-fix-bounding.sh) for lilypond-book shifting everything to the
right of where it should be, but even without that, I wouldn't try to
do it without a Makefile.

If you don't need the eps-fix-bounding workaround, you may prefer to
use pdflatex rather than dvips and ps2pdf, but there's some reason I
couldn't get the workaround to work in that context.

-- 
Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ )
(617) 661-8097  fax: (501) 641-5011
233 Broadway, Cambridge, MA 02139


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


Re: lilypond-book and latex

2007-05-13 Thread Sebastian Menge
Am Freitag, den 11.05.2007, 18:07 -0400 schrieb Laura Conrad: 
> > "Sebastian" == Sebastian Menge <[EMAIL PROTECTED]> writes:
> 
> Sebastian> Does anyone have an idea how to manage that in a clever
> Sebastian> way?
> 
> It's not especially clever, but I wouldn't dream of using
> lilypond-book without a Makefile to run the commands.  So just set the

yes, i thought of that too, but then i would loose so many features of
vim-latexsuite like:

   * recompiling if necessary (aux-file change etc)
   * quickfix (directly jump to the line where an error occured, based
on output of compilation)
   * forward and reverse search (from vim to xdvi and back again, very
cool)

Essentially I would like to simply run latex on a file containing
lilypond markup.

Perhaps since most of the work I do is on the text rather than on the
music, i could imagine to only run lilypond when i changed something
with the music. how would one do that?

Sebastian.



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


Re: lilypond-book and latex

2007-05-14 Thread Mats Bengtsson



Sebastian Menge wrote:



It's not especially clever, but I wouldn't dream of using
lilypond-book without a Makefile to run the commands.  So just set the



yes, i thought of that too, but then i would loose so many features of
vim-latexsuite like:

   * recompiling if necessary (aux-file change etc)
   * quickfix (directly jump to the line where an error occured, based
on output of compilation)
   * forward and reverse search (from vim to xdvi and back again, very
cool)

Essentially I would like to simply run latex on a file containing
lilypond markup.
  
It shouldn't be hard to write  a script in your favourite scripting 
language,

that performs the necessary steps in a single command. Then you can replace
the call to latex by a call to your script in vim. If you make sure
that the printouts from latex are echoed on standard output, then the 
"quickfix"

should work.

Perhaps since most of the work I do is on the text rather than on the
music, i could imagine to only run lilypond when i changed something
with the music. how would one do that?
  

That's already taken care of in lilypond-book, which only runs lilypond if
any of the music has changed, otherwise it just goes through the LaTeX
code and makes sure that the lilypond code is replaced by the suitable
\includegraphics commands.

   /Mats


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


lilypond-book and latex indenting issue

2016-07-08 Thread Vaylor Trucks
I'm not sure if this is a LaTeX question or a Lilypond question. I would 
very much like for music examples embedded with \lilypondfile to be flush 
against the left margin, in line with my text. However, there always seems 
to be space added to the left of my embedded music. Here is some sample 
.lytex code:

\documentclass{article}
\usepackage[letterpaper, portrait, margin=1in]{geometry}
\usepackage{parskip}

\usepackage{graphics}   

\begin{document}
This is some sample text. Note where the left hand margin is, compared 
with the musical example below. I would like for the two to have the same 
margin with no indentation.
\lilypondfile[noindent]{indent-test.ly}
\end{document}

and here is the sample indent-text.ly code I used:

\version "2.18.2"
\score {<< \new Staff { \relative c' {c4 d e f} } >>}
\paper{ indent=#0
left-margin = #0 }

As you can see, I have specified no indent in both the LaTeX and Lilypond 
source, but this is still the result.(http://i.imgur.com/8gx291c.jpg). 
What am I missing?


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


Lilypond-book and LaTeX; a few issues

2008-01-11 Thread Alasdair McAndrew
I am using lilypond-book (with LaTeX) to collect several different lilypond
files into one nice document - with title page, table of contents, and an
introduction.  However, the music never comes out properly on the page.
Using lilypond on a single file, the music is nicely laid out, appropriate
space between the systems, and the first system (there are only two staves -
it's a collection of duets) indented for the instrument names.

However, the same music in lilypond-book comes out either moved partly off
the page, or on the page but with huge margins - and the first system not
indented, but with the instrument names set to its left.  (This accounts for
the huge margin - there is white space beneath the instrument names for the
rest of the page).  Also, the systems are more crowded vertically then they
are in plain lilypond.

Clearly I need to do some fiddling to make lilypond's page formatter, and
LaTeX's page formatter, go well together.  Can anybody give me some advice
on this?

Thanks very much,
Alasdair
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Vaylor Trucks
Vaylor Trucks  gmail.com> writes:

> 
> I'm not sure if this is a LaTeX question or a Lilypond question. 

After some digging, the definitely seems to be a Lilypond issue. If I look 
in the output directory I specify in invoking lilypond-book, I see the 
.PDF files created by Lilypond which are used as images in the LaTeX doc, 
and there is definitely white space to the left of the staff in these 
images. The question I have now is, how to I eliminate that white space if 
not by using #indent=0?


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


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Vaylor Trucks
I found the problem. Invoking lilypond-book with --left-padding 0 solved 
the problem.


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


Re: lilypond-book and latex indenting issue

2016-07-08 Thread David Wright
On Fri 08 Jul 2016 at 17:21:17 (+), Vaylor Trucks wrote:
> Vaylor Trucks  gmail.com> writes:
> > I'm not sure if this is a LaTeX question or a Lilypond question. 
> 
> After some digging, the definitely seems to be a Lilypond issue. If I look 
> in the output directory I specify in invoking lilypond-book, I see the 
> .PDF files created by Lilypond which are used as images in the LaTeX doc, 
> and there is definitely white space to the left of the staff in these 
> images. The question I have now is, how to I eliminate that white space if 
> not by using #indent=0?

Try indent = -3

Cheers,
David.

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


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Benjamin Strecker
On Fri, Jul 8, 2016 at 1:32 PM, Vaylor Trucks  wrote:
> I found the problem. Invoking lilypond-book with --left-padding 0 solved
> the problem.
>

That is a much better solution.

Cheers!
Ben

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


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Benjamin Strecker
Hello,

On Fri, Jul 8, 2016 at 1:21 PM, Vaylor Trucks  wrote:
> Vaylor Trucks  gmail.com> writes:
>
>>
>> I'm not sure if this is a LaTeX question or a Lilypond question.
>
> After some digging, the definitely seems to be a Lilypond issue. If I look
> in the output directory I specify in invoking lilypond-book, I see the
> .PDF files created by Lilypond which are used as images in the LaTeX doc,
> and there is definitely white space to the left of the staff in these
> images. The question I have now is, how to I eliminate that white space if
> not by using #indent=0?
>

lilypond-book adds a little bit of space by slightly reducing the
line-width (it looks like about 4mm to me).  One possible way to
remove this space is by adding the following to a paper block inside
your external .ly file:

line-width = #(+ line-width (* mm 4))

And in the preamble of your .lytex file:

\def\preLilyPondExample{\hspace*{-3mm}}
\newcommand{\betweenLilyPondSystem}[1]{\linebreak\hspace*{-3mm}}

Note: this is what I would call a workaround, not a fix.  There are
reasons why this space exists.  If you are using braces at the
beginning of a stave or have long bar numbers showing up at the
beginning of the line, these will be hanging in the left margin.

Hope this helps!
Ben

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


Re: lilypond-book and latex indenting issue

2016-07-08 Thread David Wright
On Fri 08 Jul 2016 at 14:08:57 (-0400), Benjamin Strecker wrote:
> On Fri, Jul 8, 2016 at 1:32 PM, Vaylor Trucks  wrote:
> > I found the problem. Invoking lilypond-book with --left-padding 0 solved
> > the problem.
> >
> 
> That is a much better solution.

Agreed. To be honest, I did the same as the OP; looked first at the
EPS files generated. Then I looked for the output PDF and realised I
had to run LaTeX myself! But 3 was a good guess!

I'm no fan of lilypond-book, preferring to rely on pdfcrop to crop
PDF snippets precisely, and then placing them where I want them.

Cheers,
David.

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


Re: Lilypond-book and LaTeX; a few issues

2008-01-11 Thread Nicolas Sceaux

Le 11 janv. 08 à 22:31, Alasdair McAndrew a écrit :

I am using lilypond-book (with LaTeX) to collect several different  
lilypond files into one nice document - with title page, table of  
contents, and an introduction.  However, the music never comes out  
properly on the page.  Using lilypond on a single file, the music is  
nicely laid out, appropriate space between the systems, and the  
first system (there are only two staves - it's a collection of  
duets) indented for the instrument names.


However, the same music in lilypond-book comes out either moved  
partly off the page, or on the page but with huge margins - and the  
first system not indented, but with the instrument names set to its  
left.  (This accounts for the huge margin - there is white space  
beneath the instrument names for the rest of the page).  Also, the  
systems are more crowded vertically then they are in plain lilypond.


Clearly I need to do some fiddling to make lilypond's page  
formatter, and LaTeX's page formatter, go well together.  Can  
anybody give me some advice on this?


The vertical layout cannot be as finely tuned using lilypond-book and  
LaTeX as
it can be using LilyPond only. Indeed, in the first case, LilyPond  
layout engine
computes the line breaks, and LaTeX takes care of filling the pages.  
Using LilyPond
only, the layout engine can compute line breaks together with page  
breaks, and

space nicely the systems.

You may get rid off LaTeX and use LilyPond only, for instance with the  
help of

this titling stylesheet:
  http://lsr.dsi.unimi.it/LSR/Item?id=368



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


Re: Lilypond-book and LaTeX; a few issues

2008-01-11 Thread Joe Mc Cool
On Fri, Jan 11, 2008 at 10:45:45PM +0100, Nicolas Sceaux wrote:

> You may get rid off LaTeX and use LilyPond only, for instance with the  

Can you also use Lily to produce graphics (ps, eps, pdf, ...) of the
music and then \include them in Latex ?

Perhaps this is not elegant.

-- 
Thanks

Joe Mc Cool
Snark, currently LEYC
028 37548074, 07802572441


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


Re: Lilypond-book and LaTeX; a few issues

2008-01-11 Thread Valentin Villenave
2008/1/11, Alasdair McAndrew <[EMAIL PROTECTED]>:
> Thanks - your code may do the job!  Will it work with version 2.10.33?  I
> guess what would be nice would be for a page of lilypond to be "pasted" onto
> a blank LaTeX page by lilypond-book, but as you say LaTeX does the page
> filling.

Unfortunately this great code only works with the latest development
versions (say, 2.11.25 and greater) -- which is why I had to comment
the whole code when I posted the snippet (the LSR doesn't support
these features yet).

Cheers,
Valentin


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


Re: Lilypond-book and LaTeX; a few issues

2008-01-11 Thread Nicholas Haggin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe Mc Cool wrote:
> Can you also use Lily to produce graphics (ps, eps, pdf, ...) of the
> music and then \include them in Latex ?

In essence, this is what lilypond-book does when operating on a
LaTeX document; it determines the LaTeX line width, generates music
to the appropriate specifications, and writes a new LaTeX file with
the appropriate \include statements.

- --
Nicholas Haggin
A.M.D.G.
Find my public keys at my website: http://nhaggin.freeshell.org/
-BEGIN PGP SIGNATURE-

iD8DBQFHh+9fYbuXiaDnyW4RAk1NAJwMIaBdZ8bh+/5tq9RtcNyW8udc4gCfZ6SC
cIfiULf5qO3pUjopp1EAke8=
=D44U
-END PGP SIGNATURE-


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


Re: Lilypond-book and LaTeX; a few issues

2008-01-11 Thread Alasdair McAndrew
Thanks - your code may do the job!  Will it work with version 2.10.33?  I
guess what would be nice would be for a page of lilypond to be "pasted" onto
a blank LaTeX page by lilypond-book, but as you say LaTeX does the page
filling.

-Alasdair

On Jan 12, 2008 8:45 AM, Nicolas Sceaux <[EMAIL PROTECTED]> wrote:

> Le 11 janv. 08 à 22:31, Alasdair McAndrew a écrit :
>
> > I am using lilypond-book (with LaTeX) to collect several different
> > lilypond files into one nice document - with title page, table of
> > contents, and an introduction.  However, the music never comes out
> > properly on the page.  Using lilypond on a single file, the music is
> > nicely laid out, appropriate space between the systems, and the
> > first system (there are only two staves - it's a collection of
> > duets) indented for the instrument names.
> >
> > However, the same music in lilypond-book comes out either moved
> > partly off the page, or on the page but with huge margins - and the
> > first system not indented, but with the instrument names set to its
> > left.  (This accounts for the huge margin - there is white space
> > beneath the instrument names for the rest of the page).  Also, the
> > systems are more crowded vertically then they are in plain lilypond.
> >
> > Clearly I need to do some fiddling to make lilypond's page
> > formatter, and LaTeX's page formatter, go well together.  Can
> > anybody give me some advice on this?
>
> The vertical layout cannot be as finely tuned using lilypond-book and
> LaTeX as
> it can be using LilyPond only. Indeed, in the first case, LilyPond
> layout engine
> computes the line breaks, and LaTeX takes care of filling the pages.
> Using LilyPond
> only, the layout engine can compute line breaks together with page
> breaks, and
> space nicely the systems.
>
> You may get rid off LaTeX and use LilyPond only, for instance with the
> help of
> this titling stylesheet:
>   http://lsr.dsi.unimi.it/LSR/Item?id=368
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book and LaTeX; a few issues

2008-01-12 Thread Joe Mc Cool
On Fri, Jan 11, 2008 at 10:45:45PM +0100, Nicolas Sceaux wrote:

> You may get rid off LaTeX and use LilyPond only, for instance with the  
> help of
> this titling stylesheet:
>   http://lsr.dsi.unimi.it/LSR/Item?id=368

Newbie:

Please, I have tried this with the result:

GNU LilyPond 2.11.33
Processing `test.ly'
Parsing...
book-titling.ily:41:1: error: GUILE signaled an error for the expression 
beginning here
#
 (let ((lower-case-accented-string "??? 
???$B!H??(B")
book-titling.ily:41:6: error: syntax error, unexpected '(', expecting '='
#(let 
  ((lower-case-accented-string "??? 
???$B!H??(B")
book-titling.ily:126:63: missing '(' in vector or array literal
book-titling.ily:333:37: In expression (string-upper-case (*book-title*)):
book-titling.ily:333:37: Wrong type to apply: #f

Hopefully I have doctored the ily snippet ok, I remove the first %{
and the last %}.

If I take this approach, without my beloved latex I will miss: indexing,
including graphics, lists of figures, lists of tables, 

-- 
Thanks

Joe Mc Cool
Snark, currently LEYC
028 37548074, 07802572441


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


Re: Lilypond-book and LaTeX; a few issues

2008-01-13 Thread Nicolas Sceaux


Le 13 janv. 08 à 08:57, Joe Mc Cool a écrit :


On Fri, Jan 11, 2008 at 10:45:45PM +0100, Nicolas Sceaux wrote:

You may get rid off LaTeX and use LilyPond only, for instance with  
the

help of
this titling stylesheet:
 http://lsr.dsi.unimi.it/LSR/Item?id=368


Newbie:

Please, I have tried this with the result:

GNU LilyPond 2.11.33
Processing `test.ly'
Parsing...
book-titling.ily:41:1: error: GUILE signaled an error for the  
expression beginning here

#
(let ((lower-case-accented-string "éèêëáà âäà ìîïóòà 
´Ã¶ÃºÃ¹Ã»Ã¼Ã§Å$B!Hæ(B")
book-titling.ily:41:6: error: syntax error, unexpected '(',  
expecting '='

#(let
 ((lower-case-accented-string "éèêëáà âäà ìîïóòà 
´Ã¶ÃºÃ¹Ã»Ã¼Ã§Å$B!Hæ(B")



There is something wrong in LSR wrt to character encoding. When looking
the snippet source in the database interface, it looks right, whereas in
the above link weird characters appear. The original file can be found
there: 

nicolas



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


Re: Lilypond-book and LaTeX; a few issues

2008-01-13 Thread Valentin Villenave
2008/1/13, Nicolas Sceaux <[EMAIL PROTECTED]>:

> There is something wrong in LSR wrt to character encoding.

OK, I've added it on my ask-Sebastiano list.

Cheers,
Valentin


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


Re: Lilypond-book and LaTeX; a few issues

2008-01-18 Thread Joe Mc Cool
On Fri, Jan 11, 2008 at 10:45:45PM +0100, Nicolas Sceaux wrote:

> You may get rid off LaTeX and use LilyPond only, for instance with the  
> help of
> this titling stylesheet:
>   http://lsr.dsi.unimi.it/LSR/Item?id=368

Yes, but what can I do if I want to continue with Latex ?  I am
already a fair bit down that road.

Like the OP, I find that the scores are not positioned properly on
the page.  There are often large gaps at the top of each snippet.

-- 
Thanks

Joe Mc Cool
Snark, currently LEYC
028 37548074, 07802572441


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


Very inconsistent vertical spacing from lilypond book and LaTeX

2020-05-21 Thread Robert Hickman
Hi,

I'm helping my partner create a book of interval exercises, and I'm
getting very inconsistent vertical spacing coming from lilypond-book,
here is an example:

https://files.robehickman.com/problem.pdf

Weird thing is that this is very inconsistent between pages, and I
have verified there is no excess space in the music images. LaTeX
seems to be stretching white space erratically.



Re: Very inconsistent vertical spacing from lilypond book and LaTeX

2020-05-21 Thread Valentin Petzel
Most likely the scores are for some obscure reason cropped to different 
heights. For a quick workaround, you can try putting the images in a parbox 
with a specified height.

signature.asc
Description: This is a digitally signed message part.


Re: Very inconsistent vertical spacing from lilypond book and LaTeX

2020-05-21 Thread David Wright
On Thu 21 May 2020 at 18:40:53 (+0100), Robert Hickman wrote:
> 
> I'm helping my partner create a book of interval exercises, and I'm
> getting very inconsistent vertical spacing coming from lilypond-book,
> here is an example:
> 
> https://files.robehickman.com/problem.pdf
> 
> Weird thing is that this is very inconsistent between pages, and I
> have verified there is no excess space in the music images. LaTeX
> seems to be stretching white space erratically.

No idea what's in your .tex file. Perhaps the larger spaces are where
LaTeX thinks a new paragraph starts. The mere presence or absence of
blank lines between the figures can affect/control that.

Cheers,
David.



Re: Very inconsistent vertical spacing from lilypond book and LaTeX

2020-05-21 Thread Robert Hickman
Hi David,

The .tex file contains the following (a snippet of), The idea about it
being where a new paragraph or line starts seems to make sense as the
added space seems to be about 1em.

\vspace{-0em}\Ssubsection{Scale}\vspace{-0em}
{%
\parindent 0pt
\noindent
\ifx\preLilyPondExample \undefined
\else
  \expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%
\input{ce/lily-6d98c8ee-systems.tex}
\ifx\postLilyPondExample \undefined
\else
  \expandafter\postLilyPondExample
\fi
}

\vspace{-0.8em}\Ssubsection{Thirds}\vspace{-0em}
{%
\parindent 0pt
\noindent
\ifx\preLilyPondExample \undefined
\else
  \expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%
\input{ec/lily-01f558b3-systems.tex}
\ifx\postLilyPondExample \undefined
\else
  \expandafter\postLilyPondExample
\fi
}

\vspace{-0.8em}\Ssubsection{Fourths}\vspace{-0em}
{%
\parindent 0pt
\noindent
\ifx\preLilyPondExample \undefined
\else
  \expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%
\input{75/lily-95458ceb-systems.tex}
\ifx\postLilyPondExample \undefined
\else
  \expandafter\postLilyPondExample
\fi
}

\vspace{-0.8em}\Ssubsection{Fifths}\vspace{-0em}
{%
\parindent 0pt
\noindent
\ifx\preLilyPondExample \undefined
\else
  \expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%
\input{2f/lily-cee1d442-systems.tex}
\ifx\postLilyPondExample \undefined
\else
  \expandafter\postLilyPondExample
\fi
}

\vspace{-0.8em}\Ssubsection{Sixths}\vspace{-0em}
{%
\parindent 0pt
\noindent
\ifx\preLilyPondExample \undefined
\else
  \expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%
\input{05/lily-bdd1bc6c-systems.tex}
\ifx\postLilyPondExample \undefined
\else
  \expandafter\postLilyPondExample
\fi
}

On Thu, 21 May 2020 at 19:56, David Wright  wrote:
>
> On Thu 21 May 2020 at 18:40:53 (+0100), Robert Hickman wrote:
> >
> > I'm helping my partner create a book of interval exercises, and I'm
> > getting very inconsistent vertical spacing coming from lilypond-book,
> > here is an example:
> >
> > https://files.robehickman.com/problem.pdf
> >
> > Weird thing is that this is very inconsistent between pages, and I
> > have verified there is no excess space in the music images. LaTeX
> > seems to be stretching white space erratically.
>
> No idea what's in your .tex file. Perhaps the larger spaces are where
> LaTeX thinks a new paragraph starts. The mere presence or absence of
> blank lines between the figures can affect/control that.
>
> Cheers,
> David.
>



Re: Very inconsistent vertical spacing from lilypond book and LaTeX

2020-05-23 Thread David Wright
On Thu 21 May 2020 at 21:02:25 (+0100), Robert Hickman wrote:
> On Thu, 21 May 2020 at 19:56, David Wright  wrote:
> > On Thu 21 May 2020 at 18:40:53 (+0100), Robert Hickman wrote:
> > >
> > > I'm helping my partner create a book of interval exercises, and I'm
> > > getting very inconsistent vertical spacing coming from lilypond-book,
> > > here is an example:
> > >
> > > https://files.robehickman.com/problem.pdf
> > >
> > > Weird thing is that this is very inconsistent between pages, and I
> > > have verified there is no excess space in the music images. LaTeX
> > > seems to be stretching white space erratically.
> >
> > No idea what's in your .tex file. Perhaps the larger spaces are where
> > LaTeX thinks a new paragraph starts. The mere presence or absence of
> > blank lines between the figures can affect/control that.
> 
> The .tex file contains the following (a snippet of), The idea about it
> being where a new paragraph or line starts seems to make sense as the
> added space seems to be about 1em.

To check this out, you could increase \parskip substantially and see
if the result is consistent with that.

If it is, then the alternatives would appear to be either to scour the
individual \input files for differences in paragraph control, like
blank lines, or to capitulate and add blank lines to this file, making
every score into a new paragraph. (Multiple blank lines only cause a
single \parskip.)

If the problem lies in lilypondbook, I'm afraid I'm out of my depth.

> \vspace{-0em}\Ssubsection{Scale}\vspace{-0em}
> {%
> \parindent 0pt
> \noindent
> \ifx\preLilyPondExample \undefined
> \else
>   \expandafter\preLilyPondExample
> \fi
> \def\lilypondbook{}%
> \input{ce/lily-6d98c8ee-systems.tex}
> \ifx\postLilyPondExample \undefined
> \else
>   \expandafter\postLilyPondExample
> \fi
> }
> 
> \vspace{-0.8em}\Ssubsection{Thirds}\vspace{-0em}
> {%
> \parindent 0pt
> \noindent
> \ifx\preLilyPondExample \undefined
> \else
>   \expandafter\preLilyPondExample
> \fi
> \def\lilypondbook{}%
> \input{ec/lily-01f558b3-systems.tex}
> \ifx\postLilyPondExample \undefined
> \else
>   \expandafter\postLilyPondExample
> \fi
> }
> 
> \vspace{-0.8em}\Ssubsection{Fourths}\vspace{-0em}
> {%
> \parindent 0pt
> \noindent
> \ifx\preLilyPondExample \undefined
> \else
>   \expandafter\preLilyPondExample
> \fi
> \def\lilypondbook{}%
> \input{75/lily-95458ceb-systems.tex}
> \ifx\postLilyPondExample \undefined
> \else
>   \expandafter\postLilyPondExample
> \fi
> }
> 
> \vspace{-0.8em}\Ssubsection{Fifths}\vspace{-0em}
> {%
> \parindent 0pt
> \noindent
> \ifx\preLilyPondExample \undefined
> \else
>   \expandafter\preLilyPondExample
> \fi
> \def\lilypondbook{}%
> \input{2f/lily-cee1d442-systems.tex}
> \ifx\postLilyPondExample \undefined
> \else
>   \expandafter\postLilyPondExample
> \fi
> }
> 
> \vspace{-0.8em}\Ssubsection{Sixths}\vspace{-0em}
> {%
> \parindent 0pt
> \noindent
> \ifx\preLilyPondExample \undefined
> \else
>   \expandafter\preLilyPondExample
> \fi
> \def\lilypondbook{}%
> \input{05/lily-bdd1bc6c-systems.tex}
> \ifx\postLilyPondExample \undefined
> \else
>   \expandafter\postLilyPondExample
> \fi
> }

Cheers,
David.