Re: tocItem as \mark

2017-02-03 Thread Jan-Peter Voigt
... well, you can remove the mark engraver from the score context and place it in voice or staff: \layout { \context { \Score \remove "Mark_engraver" } } \new Staff << \new Voice \with { \consists "Mark_engraver" } \relative { \voiceOne c' d e f \mark \default g a b c } \n

Re: tocItem as \mark

2017-02-03 Thread Jan-Peter Voigt
Hi David, once I created a score with fermata marks and rehearsalmarks at the same time, but I have to look it up. Now I usually use SimultaneousMusic and place the TitleMark a very short moment before or behind the barline. But I will have a look, how I did it and if it still works. Jan-Pet

Re: tocItem as \mark

2017-02-03 Thread David Sumbler
Thanks, that's brilliant, and it will be a very useful template for me for creating functions in the future. Since my original post, I had experimented some more and thought I had succeeded in getting the result I wanted, basically doing what your function does, but as 2 separate calls.  My soluti

Re: tocItem as \mark

2017-02-03 Thread Jan-Peter Voigt
Hi David, to combine those two commands, you should wrap them in one music-function: % tocMark = #(define-music-function (mup)(markup?) #{ \tocItem $mup \once \override Score.RehearsalMark.self-alignment-X = #LEFT \mark $m

tocItem as \mark

2017-02-01 Thread David Sumbler
I want to have a table of contents with the titles of sections of a piece and the relevant page numbers. In pieces I have set previously, the title of each movement was placed centrally over the first line of the score/part for that movement.  I set the variable "piece" in the header for each move