Re: Lilypond-book -- almost there... round III

2007-10-04 Thread Eyolf Østrem
On 04.10.2007 (16:19), Graham Percival wrote:
 Eyolf Østrem wrote:
 I made a last attempt, with minimal files included, which look like
 this:

 I'm now going to commit the sin of jumping into a long discussion without 
 having read the intermediate steps (with GDP going on, I've been pretty 
 much ignoring -user), so please ignore if this is totally off-base...

 playground/book.tex:
 \documentclass{article}
 \begin{document}
 \include{out/lpb-file}
 \end{document}
 playground/lpb-file.lytex:
 \lilypondfile{music.ly}

 ... why?  Just not stick
 \lilypnodfile{out/music.ly

 in your main book.tex?  That's what I do.  Call it book.lytex, run it 
 through lilypond-book, then run the generated .tex through texinfo.  Or 
 pdflatex.

I'll look into that, but I think -- to the extent that I'm able to, at
these hours -- that the answer is that in real life, the included file
does not just contain the ly-file, but is a full chapter of its own,
so it needs to be kept in a separate file altogether. I think... 
This example was just to make it as minimal as possible. So while your
solution is certainly a workaround which works to some extent, it also
shows that the output=out thing has its limits.
But thanks for your input (or should that be include...? :-)

 Now, is this how it's supposed to be, or is there a way to work around
 this? As I said, I'm happy to keep all the output files in the main
 folder -- now it's become almost a matter of principle: I want to find
 out if I've overlooked something...

 This is related to a current bug (or enhancement request) about \includes 
 in pure lilypond files.  All the filenames are relative to the first file 
 called, not the first file.  Err, the bug summary has a better summary 
 than this.

I understand. I hope it will be fixed.

Eyolf

-- 
The one-eyed view of our universe says you must not look far afield for 
problems. Such problems may never arrive. Instead, tend to the wolf within
your fences. The packs ranging outside may not even exist.

  -- The Azhar Book; Shamra I:4


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


Lilypond-book -- almost there...

2007-10-02 Thread Eyolf Østrem
I've been struggling to get lilypond-book do what I want it to do, and 
I think I'm almost there. Now, I have working output, my question is
if there is a better way to work to get there.

I want to include files with lp-examples in chapters that I \include
in a main LaTeX document, fullbook.tex, something like this:

\documentclass[a4paper]{memoir}
\begin{document}
\include{ch1}
\include{ch2}
\include{lp-examples}
\end{document}

How I finally made it work, was to have a file lp-examples.lytex
containing sth like the following:


\chapter{appendix} 

\section{1 Gioia et amore}

This is a song.

\lilypondfile{graphics/01-gioia-et-amore.ly}


which I first process through lilypond-book. This gives a file
lp-examples.tex, which is then processed nicely when I do latex
fullbook.

1. Is this the recommended way to work?
2. Is there a way to automatize the process? E.g. in Kile, vim, or
-- god forbid -- emacs/auctex?

Eyolf

-- 
I already have too much problem with people thinking the efficiency of
a perl construct is related to its length.  On the other hand, I'm
perfectly capable of changing my mind next week...  :-) --lwall


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


Re: Lilypond-book -- almost there...

2007-10-02 Thread Francisco Vila
2007/10/2, Eyolf Østrem [EMAIL PROTECTED]:
 2. Is there a way to automatize the process? E.g. in Kile, vim, or

You can obtain a reasonable degree of automation using the 'make'
utility. Search for Marcus Brinkmann, (marcus dot brinkmann at rub dot
de) for a nice example of how to use it on a complete book (Slave
Songs of the United States, 1867)

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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