Hi Malte,

Am 10. Mai 2018 14:31:20 MESZ schrieb Malte Meyn <[email protected]>:
>Hi list,
>
>the lyluatex manual 
>(https://github.com/jperon/lyluatex/releases/download/v1.0-beta/lyluatex.pdf)
>
>says at p. 8 about vertical alignment of inline snippets:
>
>“Note: The alignment works with the edges of the image file, there is
>no 
>notion of an ‘optical’ center or aligning with the staff lines.”
>
>Would it be possible to get such an alignment and how hard would that
>be 
>to achieve?
>

I would have loved to add such a feature, but I didn't see a way to achieve it. 
But maybe you just gave me an idea.

The problem is that within a cropped image we have no clue as to where the 
staff symbol is placed vertically.

What we could try is write a Scheme function that determines the highest and 
lowest points within a system (we expect inline examples to have one system 
only). This function could then write this information to an auxiliary file, 
and from there we could determine the center of the staff relative to the image 
file.

>The reason why I’m asking: I made a markup command that takes a string 
>like "/DD-7-9>_5>" and makes a nice functional analysis symbol from 
>that. I would like to use these symbols also in the text in my LaTeX 
>document without having to code an extra solution for LaTeX. But the 
>baseline of the text in LaTeX and the baseline of the LilyPond markup 
>don’t match. Using a simple offset wouldn’t be enough because the 
>symbols don’t always extend down the same amount.
>
>Any ideas, hints or solutions? I would be willing to contribute to a 
>possible lyluatex feature.

If you could investigate the functionality mentioned above we could proceed 
from there. It would be great to have the possibility to include snippets at a 
consistent vertical position.

Urs

>
>Cheers,
>Malte
>
>_______________________________________________
>lilypond-user mailing list
>[email protected]
>https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to