> I am not an experienced LaTeX user. I have worked through some
> tutorials (at learnlatex.org) and am able to do basic formatting,
> import images, etc, but thats about all.

Iit is good that you know how to import images.

> I thought it was possible to embed a lilypond file, or run Lilypond
> in LaTex.

Yes.  There are two completely different approaches.

1. Use `lilypond-book`: You write a LaTeX file, using a *different*
   extension for the file name, say, `foo.lytex`.  There you can embed
   LilyPond code using the `lilypond` environment and related
   commands, see

     https://lilypond.org/doc/v2.26/Documentation/usage/lilypond_002dbook

   for details.

   Two steps must be done.

   a. You call `lilypond-book` to process `foo.lytex`: this script
      parses `foo.lytex`, calls `lilypond` to create images (usually
      in PDF format) and generates a file `foo.tex`, replacing the
      `lilypond` environments and the like essentially with
      `\includegraphics` calls.

   b. You call LaTeX to process `foo.tex`; this produces the final
      output file.

2. Use the `lyluatex` package for LuaLaTeX.  This combines steps 1a
   and 1b into a single call, i.e., an input file `foo.tex` gets
   directly processed with LuaLaTeX to generate the final output PDF.
   There are some minor differences in the syntax compared to
   `lilypond-book`, IIRC.

     https://mirrors.ctan.org/macros/luatex/latex/lyluatex/lyluatex.pdf

These are two packages for integrating LilyPond source code into your
input file.  If you do not want that, it is always possible to process
your `.ly` files manually with lilypond to get PDFs, and you include
the PDFs with `\includegraphics` into your LaTeX document.

> I'm hoping to find something like:
>
>   * Open TeXShop and type "\documentclass{book}"
>   [...]
>   * drag your lilypond file here (or type in the name and path of
>     the file here: ".....")
>   * click "Typeset"
>
> Voila, here is your pdf!

I guess you should give `lyluatex` a try.

> Unfortunately, I get bogged down with instructions such as "invoke
> lilypond-book" (what does that mean?) or "move this from the
> inactive directory to the active directory" ...? and "run this from
> the command line".... again, i dont know how to do these things.

'Inactive directory'?  Such a phrase isn't part of either the
lilypond-book or the lyluatex documentation...

> Just being able to make a simple book, 3 or 4 pages with 2 very
> short sample scores would be very helpful; once i have the bare
> bones, then i could use it as a template and experiment with
> formatting, etc.

The lyluatex documentation contains plenty of examples.

> Does anyone know of a GOOD TUTORIAL, including ALL the obvious
> instructions, for making a book with Lilypond / LaTeX?

I don't know, sorry, but maybe others can chime in.


    Werner

Reply via email to