Re: Footnote separator line
>> Simply removing \fill-line will shift the line to the left margin, >> leaving the length the same. > > To my eye that looks a lot better. It's really a matter of style. For example, https://tex.stackexchange.com/questions/214644/how-to-add-a-footnote-separator-rule shows a footnote rule exactly as formatted by LilyPond (see attached image) – this is for the scientific magazine 'IEEE transactions'. Werner
Re: Footnote separator line
Thanks Michael, To my eye that looks a lot better. Kevin. On Wed, 24 Jan 2024, at 12:57, Michael Werner wrote: > Hi Kevin, > > On Tue, Jan 23, 2024 at 8:06 PM Kevin Pye wrote: >> __ >> For the first time in many years of using Lilypond, I have a need to add a >> footnote to some music. One thing puzzles me: >> >> As is traditional in all texts, Lilypond places a horizontal line above the >> footnotes, separating them from the music above. However the horizontal >> position of this line confuses me. I would have expected the line to be >> above the footnotes, starting at the left margin. However it is placed >> further to the right. This can be seen in the examples in the NR >> (http://lilypond.org/doc/v2.25/Documentation/notation/footnotes-in-music-expressions). >> In my case the footnote is in the second bar of music in the staff, and the >> line does not start until the beginning of that bar, potentially after the >> end of the footnote text. Because the music to which the footnote is >> attached may be several staves above the footnote text, this does not make >> sense to me. >> >> Is there some way of shifting this line to the left margin? >> >> Kevin. > The function defining the separator line can be found in > ly/paper-defaults-init.ly It defaults to: > footnote-separator-markup = \markup \fill-line { \override #'(span-factor . > 1/2) \draw-hline } > Copying that into the \paper block of your .ly file, you can then tweak it to > whatever you desire. Simply removing \fill-line will shift the line to the > left margin, leaving the length the same. > -- > Michael
Re: Footnote separator line
Hi Kevin, On Tue, Jan 23, 2024 at 8:06 PM Kevin Pye wrote: > For the first time in many years of using Lilypond, I have a need to add a > footnote to some music. One thing puzzles me: > > As is traditional in all texts, Lilypond places a horizontal line above > the footnotes, separating them from the music above. However the horizontal > position of this line confuses me. I would have expected the line to be > above the footnotes, starting at the left margin. However it is placed > further to the right. This can be seen in the examples in the NR ( > http://lilypond.org/doc/v2.25/Documentation/notation/footnotes-in-music-expressions). > In my case the footnote is in the second bar of music in the staff, and the > line does not start until the beginning of that bar, potentially after the > end of the footnote text. Because the music to which the footnote is > attached may be several staves above the footnote text, this does not make > sense to me. > > Is there some way of shifting this line to the left margin? > > Kevin. > The function defining the separator line can be found in ly/ paper-defaults-init.ly It defaults to: footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } Copying that into the \paper block of your .ly file, you can then tweak it to whatever you desire. Simply removing \fill-line will shift the line to the left margin, leaving the length the same. -- Michael
Footnote separator line
For the first time in many years of using Lilypond, I have a need to add a footnote to some music. One thing puzzles me: As is traditional in all texts, Lilypond places a horizontal line above the footnotes, separating them from the music above. However the horizontal position of this line confuses me. I would have expected the line to be above the footnotes, starting at the left margin. However it is placed further to the right. This can be seen in the examples in the NR (http://lilypond.org/doc/v2.25/Documentation/notation/footnotes-in-music-expressions). In my case the footnote is in the second bar of music in the staff, and the line does not start until the beginning of that bar, potentially after the end of the footnote text. Because the music to which the footnote is attached may be several staves above the footnote text, this does not make sense to me. Is there some way of shifting this line to the left margin? Kevin.
Re: Footnote separator line
On Wed, Oct 11, 2017 at 8:58 AM, Malte Meyn <lilyp...@maltemeyn.de> wrote: > > > Am 11.10.2017 um 14:55 schrieb Malte Meyn: > >> >> >> Am 11.10.2017 um 14:42 schrieb Jan-Peter Voigt: >> >>> Hi fellows, >>> >>> I have a footnote in a score. This footnote is separated by a centered >>> horizontal line. Is there a possibility to remove it or adjust formatting? >>> >>> TIA >>> Jan-Peter >>> >> >> \paper { >>footnote-separator-markup = ##f >> } >> > > This should be documented. At the moment, it isn’t mentioned anywhere a > normal user can find it: > > $ git grep footnote-separator-markup > lily/page-layout-problem.cc: SCM markup = paper->c_variable > ("footnote-separator-markup"); > ly/paper-defaults-init.ly: footnote-separator-markup = \markup > \fill-line { \override #'(span-factor . 1/2) \draw-hline } > $ > > CC to bug list. > Greetings, Malte Meyne - Thanks for the email. This has been submitted as Issue #5218 Footnote separator line. Ralph ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote separator line
Thank you! :-) Am 11.10.2017 um 14:58 schrieb Malte Meyn: Am 11.10.2017 um 14:55 schrieb Malte Meyn: Am 11.10.2017 um 14:42 schrieb Jan-Peter Voigt: Hi fellows, I have a footnote in a score. This footnote is separated by a centered horizontal line. Is there a possibility to remove it or adjust formatting? TIA Jan-Peter \paper { footnote-separator-markup = ##f } This should be documented. At the moment, it isn’t mentioned anywhere a normal user can find it: $ git grep footnote-separator-markup lily/page-layout-problem.cc: SCM markup = paper->c_variable ("footnote-separator-markup"); ly/paper-defaults-init.ly: footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } $ CC to bug list. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote separator line
Am 11.10.2017 um 14:55 schrieb Malte Meyn: Am 11.10.2017 um 14:42 schrieb Jan-Peter Voigt: Hi fellows, I have a footnote in a score. This footnote is separated by a centered horizontal line. Is there a possibility to remove it or adjust formatting? TIA Jan-Peter \paper { footnote-separator-markup = ##f } This should be documented. At the moment, it isn’t mentioned anywhere a normal user can find it: $ git grep footnote-separator-markup lily/page-layout-problem.cc: SCM markup = paper->c_variable ("footnote-separator-markup"); ly/paper-defaults-init.ly: footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } $ CC to bug list. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote separator line
Am 11.10.2017 um 14:42 schrieb Jan-Peter Voigt: Hi fellows, I have a footnote in a score. This footnote is separated by a centered horizontal line. Is there a possibility to remove it or adjust formatting? TIA Jan-Peter \paper { footnote-separator-markup = ##f } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Footnote separator line
Hi fellows, I have a footnote in a score. This footnote is separated by a centered horizontal line. Is there a possibility to remove it or adjust formatting? TIA Jan-Peter ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote separator line too close
Thanks for the suggestion, but what I need is to leave more space before the first footnote text. I have made progress: the bug arises only when you don't have a superscript, (e.g. when you are not using the numbering) **and** when you have the footnote markup text long enough to extend underneath the horizontal text. You can see this if you take the only example in the documentation http://www.lilypond.org/doc/v2.16/Documentation/notation/creating-footnotes that does not use a superscript and extend the line of text: \book { \header { tagline = ##f } \relative c' { \footnote * #'(0.5 . -2) \markup { \italic * The first note - with this footnote text extending a long way across the page is too close to the line above } a'4 b8 \footnote \markup { \super $ } #'(0.5 . 1) \markup { \super $ \italic The second note } e c4 \once \override Score.FootnoteItem #'annotation-line = ##f b-\footnote \markup \tiny + #'(0.1 . 0.1) \markup { \super + \italic Editorial } \p } } With the first footnote line extended the hline is unpleasantly close to the text. The workaround it to include a superscript :) Richard On Wed, 2013-04-03 at 07:08 +1100, Nick Payne wrote: On 03/04/13 06:24, Richard Shann wrote: I've found that the line dividing the footnote from the music is rather close to the footnote text. I can see I need to override this definition footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } but I can't see what to add to provide more space under the line ... any suggestions? Just use \vspace within the footnote markup. eg: \version 2.17.15 \relative f' { \footnote * #'(2 . -1) \markup\teeny { \column { \left-align { \line { \concat { \vspace #1 \lower #0.8 \super { * } At this point the performer may insert an improvisation in the form of a \italic Cadenza furiosa } } \line { } } } } c4 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Footnote separator line too close
I've found that the line dividing the footnote from the music is rather close to the footnote text. I can see I need to override this definition footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } but I can't see what to add to provide more space under the line ... any suggestions? Richard Shann ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote separator line too close
On 03/04/13 06:24, Richard Shann wrote: I've found that the line dividing the footnote from the music is rather close to the footnote text. I can see I need to override this definition footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } but I can't see what to add to provide more space under the line ... any suggestions? Just use \vspace within the footnote markup. eg: \version 2.17.15 \relative f' { \footnote * #'(2 . -1) \markup\teeny { \column { \left-align { \line { \concat { \vspace #1 \lower #0.8 \super { * } At this point the performer may insert an improvisation in the form of a \italic Cadenza furiosa } } \line { } } } } c4 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote separator line too close
Nick Payne nick.pa...@internode.on.net writes: On 03/04/13 06:24, Richard Shann wrote: I've found that the line dividing the footnote from the music is rather close to the footnote text. I can see I need to override this definition footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } but I can't see what to add to provide more space under the line ... any suggestions? Just use \vspace within the footnote markup. eg: That's not an option since it affects interfootnote spacing as well, and the user has no control over which footnote on a page will be the topmost one: pagebreaking makes that decision. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: controlling footnote separator line
Am 20.04.2012 10:43, schrieb Gilles: Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles Thank you again for this hint which works perfectly. (and BTW looking into this I had the opportunity to understand something new about lily's workings ...) But I have a new question in this context: How can I override the font that is used for footnotes? In the above list there are no helpful options, and I didn't find a responsible layout object that I could override. FootnoteItem seems to be responsible for the reference text in the score, but changes to FootnoteSpanner don't seem to change anything (and I didn't found more information in the IR). So which Engraver does print the footnote text? (Of course I can select a font within the footnote markup itself, but I want to have an override that I can define for the whole score). Any ideas? Would be highly appreciated Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: controlling footnote separator line
On 25 avr. 2012, at 08:15, Urs Liska wrote: Am 20.04.2012 10:43, schrieb Gilles: Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles Thank you again for this hint which works perfectly. (and BTW looking into this I had the opportunity to understand something new about lily's workings ...) But I have a new question in this context: How can I override the font that is used for footnotes? Footnotes use markups, so you should be able to control the font within the markup: http://lilypond.org/doc/v2.15/Documentation/notation/formatting-text#selecting-font-and-font-size Cheers, MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: P.S. controlling footnote separator line
Am 25.04.2012 08:15, schrieb Urs Liska: Am 20.04.2012 10:43, schrieb Gilles: Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles Thank you again for this hint which works perfectly. (and BTW looking into this I had the opportunity to understand something new about lily's workings ...) But I have a new question in this context: How can I override the font that is used for footnotes? In the above list there are no helpful options, and I didn't find a responsible layout object that I could override. FootnoteItem seems to be responsible for the reference text in the score, but changes to FootnoteSpanner don't seem to change anything (and I didn't found more information in the IR). So which Engraver does print the footnote text? (Of course I can select a font within the footnote markup itself, but I want to have an override that I can define for the whole score). P.S. And I need to override font-name, not just access something like \italic \huge a.s.o Any ideas? Would be highly appreciated Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: controlling footnote separator line
Am 25.04.2012 08:18, schrieb m...@apollinemike.com: On 25 avr. 2012, at 08:15, Urs Liska wrote: Am 20.04.2012 10:43, schrieb Gilles: Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly http://paper-defaults-init.ly, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles Thank you again for this hint which works perfectly. (and BTW looking into this I had the opportunity to understand something new about lily's workings ...) But I have a new question in this context: How can I override the font that is used for footnotes? Footnotes use markups, so you should be able to control the font within the markup: http://lilypond.org/doc/v2.15/Documentation/notation/formatting-text#selecting-font-and-font-size Yes, but as mentioned I want to override it for the whole document, and I didn't find a place where this is possible. Cheers, MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: controlling footnote separator line
On 25 avr. 2012, at 08:19, Urs Liska wrote: Am 25.04.2012 08:18, schrieb m...@apollinemike.com: On 25 avr. 2012, at 08:15, Urs Liska wrote: Am 20.04.2012 10:43, schrieb Gilles: Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles Thank you again for this hint which works perfectly. (and BTW looking into this I had the opportunity to understand something new about lily's workings ...) But I have a new question in this context: How can I override the font that is used for footnotes? Footnotes use markups, so you should be able to control the font within the markup: http://lilypond.org/doc/v2.15/Documentation/notation/formatting-text#selecting-font-and-font-size Yes, but as mentioned I want to override it for the whole document, and I didn't find a place where this is possible. Ah, sorry, missed that bit. You can likely kludge your way through this - basically, you want to write a dummy callback for a property that'll be consulted no matter what (something like Y-extent). This can read the markup stashed in the 'footnote-text property, wrap it in a font override, reset the footnote-text property with the new markup, and then return whatever Y-extent was supposed to return (the default is #f). Cheers, MS___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: controlling footnote separator line
Am 25.04.2012 08:34, schrieb m...@apollinemike.com: On 25 avr. 2012, at 08:19, Urs Liska wrote: Am 25.04.2012 08:18, schrieb m...@apollinemike.com: On 25 avr. 2012, at 08:15, Urs Liska wrote: Am 20.04.2012 10:43, schrieb Gilles: Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly http://paper-defaults-init.ly/, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles Thank you again for this hint which works perfectly. (and BTW looking into this I had the opportunity to understand something new about lily's workings ...) But I have a new question in this context: How can I override the font that is used for footnotes? Footnotes use markups, so you should be able to control the font within the markup: http://lilypond.org/doc/v2.15/Documentation/notation/formatting-text#selecting-font-and-font-size Yes, but as mentioned I want to override it for the whole document, and I didn't find a place where this is possible. Ah, sorry, missed that bit. You can likely kludge your way through this - basically, you want to write a dummy callback for a property that'll be consulted no matter what (something like Y-extent). This can read the markup stashed in the 'footnote-text property, wrap it in a font override, reset the footnote-text property with the new markup, and then return whatever Y-extent was supposed to return (the default is #f). Cheers, MS OK, I was already afraid it would look something like that. As this is way over my head, I'd rather to it by hand in the current project :-( Or, another idea I missed to mention in my earlier post: I can write a markup function to call from the footnote text. This isn't automatical but of course at least document (or project) wide. Can you tell me how I can override font-name from within a markup function? I only understood how to access properties like \italic (#:italic) etc. Best Urs Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: controlling footnote separator line
Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: controlling footnote separator line
Hi Gilles, thank you very much. Looks very promising. Best Urs Am 20.04.2012 10:43, schrieb Gilles: Unfortunately I didn't find the property that controls the line separating the footnote. from the score. Is this possible? is it documented (and I am blind)? or is this impossible? Well not easy to find. In paper-defaults-init.ly, you have some variable controlling Footnotes. By default, the settings are \paper { footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } footnote-padding = 0.5\mm footnote-footer-padding = 0.5\mm footnote-number-raise = 0.5\mm footnote-numbering-function = #numbered-footnotes reset-footnotes-on-new-page = ##t } If you set : footnote-separator-markup = \markup \null it will do the trick. Gilles ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
controlling footnote separator line
Hello list, I was very pleased to see that by now one can write footnotes quite easily. Unfortunately I didn't find the property that controls the line separating the footnote. from the score. I would like to have the footnote either without any separator or with a short, left-aligned line. Is this possible? is it documented (and I am blind)? or is this impossible? Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user