Re: gvim point and click
Dear David, thanks for Your reply. Unfortunately, none of your suggestions have brought the desired result! Best, Stefan Am Mo., 3. Juni 2024 um 03:19 Uhr schrieb David Wright < lily...@lionunicorn.co.uk>: > On Sun 02 Jun 2024 at 16:10:56 (+0200), Stefan Thomas wrote: > > again, I'm trying to activate point and click in gvim. I made a little > > success: > > I wrote in the editor options of okular: > > gvim --remote-silent +%l %f +normal! %c > > When I click on a note, the right document is opened and the cursor is > > placed at the correct line, but not at the correct note in the lilypond > > file. > > What can I do? > > Perhaps the command you're trying to invoke is, for example: > > gvim --remote-silent +:123:norm45l path-to-file > > using literal constants for line number 123 and column 45. > > Naively, that would mean okular would have something like: > > gvim --remote-silent +:%l:norm%cl %f > > but, not being familiar with okular, I can't tell how it would > handle %cl (where l means move to the right by %c columns) and > whether it would need any quoting. For example, > > gvim --remote-silent '+:%l:norm%c l' %f > > might work better. > > Cheers, > David. >
Re: how to draw lines independent from the notes
> How can I draw a vertical (or even diagonal) line independently > positioned from the notes in the score, that can span across staves, > as shown in the figure? The question is formulated in a very broad way. Assuming that you want to draw something completely independent of the score, you might use a zero-dimension markup at the very beginning. Together with adjusting some paper variables, it shouldn't have an impact on everything else. Werner == \markup \with-dimensions #'(0 . 0) #'(0 . 0) foo << { f'2 f' f' f' f'1 } { d'2 d' d' d' d'1 } >> \paper { markup-markup-spacing.basic-distance = 0 markup-markup-spacing.minimum-distance = 0 markup-markup-spacing.padding = 0 markup-system-spacing.basic-distance = 0 markup-system-spacing.minimum-distance = 0 markup-system-spacing.padding = 0 top-markup-spacing.basic-distance = 0 top-markup-spacing.minimum-distance = 0 top-markup-spacing.padding = 0 }
how to draw lines independent from the notes
Hello, How can I draw a vertical (or even diagonal) line independently positioned from the notes in the score, that can span across staves, as shown in the figure? In addition, how can I draw a horizontal line with arrows on both sides and centered text above it, always independent from the score? (See the attached image) Thanks for your help! P test.pdf Description: Adobe PDF document
Re: how to draw lines independent from the notes
For the question 1), I just found this: https://lsr.di.unimi.it/LSR/Snippet?id=253 Any idea about question 2? (arrows + centered text) Thanks On Sun, Jun 2, 2024 at 7:05 PM Paolo Prete wrote: > Hello, > > How can I draw a vertical (or even diagonal) line independently positioned > from the notes in the score, that can span across staves, as shown in the > figure? > > In addition, how can I draw a horizontal line with arrows on both sides > and centered text above it, always independent from the score? > > (See the attached image) > > Thanks for your help! > P >
Re: gvim point and click
On Sun 02 Jun 2024 at 16:10:56 (+0200), Stefan Thomas wrote: > again, I'm trying to activate point and click in gvim. I made a little > success: > I wrote in the editor options of okular: > gvim --remote-silent +%l %f +normal! %c > When I click on a note, the right document is opened and the cursor is > placed at the correct line, but not at the correct note in the lilypond > file. > What can I do? Perhaps the command you're trying to invoke is, for example: gvim --remote-silent +:123:norm45l path-to-file using literal constants for line number 123 and column 45. Naively, that would mean okular would have something like: gvim --remote-silent +:%l:norm%cl %f but, not being familiar with okular, I can't tell how it would handle %cl (where l means move to the right by %c columns) and whether it would need any quoting. For example, gvim --remote-silent '+:%l:norm%c l' %f might work better. Cheers, David.
gvim point and click
Dear community, again, I'm trying to activate point and click in gvim. I made a little success: I wrote in the editor options of okular: gvim --remote-silent +%l %f +normal! %c When I click on a note, the right document is opened and the cursor is placed at the correct line, but not at the correct note in the lilypond file. What can I do? Thanks for Your help, Stefan
Re: wordwrap on argument of markup function
#(define-markup-command (freely layout props width-param text) (number? markup-list?) "Format text for one bar of 'width-param' quarter notes’ length" (interpret-markup layout props #{\markup\box \line { \override #`(line-width . ,width-param) \wordwrap { #text }} #})) \markup \freely #10 { test test test test test test } Le samedi 1 juin 2024 à 17:55:22 UTC+2, Jean Abou Samra a écrit : > (define-markup-command (freely layout props width-param text) (number? > markup?) ^^^ Make that `markup-list?`. Otherwise, your command is accepting only a single markup. In your example, \line inside the command is working perfectly (though not actually needed), but \freely gets applied multiple times. HTH Jean