On 2020-08-30 2:12 am, Claire Meyer wrote:
Hi all,
I'm integrating a score with latex via lyluatex. The .ly file is
finished,
and gives no error; the score produced looks good, and I'm at the step
where I just integrate with latex, and touch up the things that need
retouching. I insert system by system, and unfortunately, some dynamics
are
mostly cropped out :
[image: image.png]
The scribble between the two systems is a dynamic mark that applies to
the
lower system. I looked in the temporary files generated by lyluatex,
and
the pdfs are cropped in such a manner that all my
higher-placed-within-the-system dynamics are mostly removed.
Those dynamics are all custom dynamic marks that I constructed like :
mydyn = \tweak DynamicText.self-alignment-X #LEFT
#(make-dynamic-script
(markup
#:with-dimensions '(0 . 5) '(0 . 0) #:line
(#:normal-text #:italic "<whatever my dynamic mark says>")))
Be careful using \withDimensions, especially when specifying extents
that do not accurately represent the content. In this case, you are
telling LilyPond that the text has no vertical extent.
I would imagine the issue(s) stem from this. I suggest allowing
LilyPond to manage extents on its own, which would give it the
information needed to properly crop.
-- Aaron Hill