On 17 January 2016 at 16:56, Carl-Henrik Buschmann <[email protected]>
wrote:

> Kevin, please humor a LP novice: Let us say my file was the one you would
> use in a .tex. What would you do?


It depends on the document and the musical example. For a small musical
example that will fit on one page (with no instrument names) you should be
able to get away with simply specifying a line-width in a layout block in
your .ly file, then including it in your .tex file with
\includegraphics{myexample.pdf}. The exact value you will need for
line-width has to be found by experimentation, since the textwidth of a
latex document depends on the documentclass and fontsize. For example, if
you are using \documentclass[12pt]{article}, which is probably the size I
use most frequently for class notes and the like then a line-width of 135
(mm) will do in most circumstances. You will have to experiment, but
assuming you tend to use the same margins frequently you will only have to
do it a limited number of times (and it really doesn't take long). (P.S.
the draft option can be helpful for doing this, but latex will complain
even when images seem to fit perfectly, so trust your eyes and not its
complaints about overfull hboxes and the like.)

That is the short version. The long version is more complicated...
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to