The music should be separated into its own pure .ly
file with no layout.
If desired, that music can be arranged for engraving into a standalone score
for sharing the music directly.
The music can then be incorporated directly into a lualatex book.
Examples of this are shown where DemoMusic.ly is used by both: DemoScore.ly and DemoBook.ly.
Anything in the root directory ending in .tex is assumed to be compiled and published
Recursively anything in any subdirectories ending in -Score.ly
is assumed to be compiled and published as well as a standalone sheet score.
Visual Studio Code and docker are technically all you need to work in this repository.
<Ctrl><Shift><P>
and start typing in Remote-Containers
to see options.
Re-build and Reopen in Container
will purge the existing development
environment and rebuild everything if you run into problems,
(especially when switching branches if the development environment was changed).DemoBook.tex
file in the root of the repo and press <Ctrl><s>
to save the document, and automatically trigger the build system.
You should see a compilation begin, and produce a DemoBook.pdf
.
This can be opened and previewed in the Visual Studio editor.<Ctrl><Shift><P>
and type LaTex
to filter to the latex
workshop commands (like Clean up all auxillary files
and
Build LaTeX Project
)The simplest way to develop music, is to open and edit it directly with the WYSIWYG-ish frescobaldi editor for lilypond. Just do all of the development with that tool, and then, once the music and score look right, it can be embedded into a lualatex book
Recommend use of the TeXLive distribution of LaTeX for all operating systems.
Any of the books can be compiled with LaTeX installed using the lualatex compiler,
as long as the lyluatex
extension has been installed and made available to the compiler.
For example, the DemoBook can be compiled by running
lualatex -shell-escape DemoBook.tex
However, for command-line use, Use the latexmk command-line tool supplied by TeXLive. This will compile the document the correct number of times to be sure that the references (index and hyperref references in PDF for page numbers etc) get sorted out properly.
For example, to compile vespers (after installing TeXLive and lualatex) run:
latexmk -shell-escape -pdf 1-GreatVespers.tex
.