Re: How to "guarantee" Lilypond pdf (letter) output with sufficient margins for 3-hole punch?
Hi Knute; Thanks for the tips. I'm in the midst of engraving a one-page sheet of music now using your suggestions, hopefully it will be correct for three-hole-punching or easy for me to fiddle with the values of the settings. Thanks, Ken On Mon, Oct 23, 2023 at 1:30 PM Knute Snortum wrote: > > > On Mon, Oct 23, 2023 at 11:09 AM Kenneth Wolcott > wrote: >> >> Hi; >> >> How to "guarantee" Lilypond pdf (letter) output with sufficient >> margins for 3-hole punch? > > > It's no guarantee, but I put the following in my paper block: > > two-sided = ##t > inner-margin = 12\mm > outer-margin = 8\mm > > -- > Knute Snortum > >
Re: How to "guarantee" Lilypond pdf (letter) output with sufficient margins for 3-hole punch?
On Mon, Oct 23, 2023 at 11:09 AM Kenneth Wolcott wrote: > Hi; > > How to "guarantee" Lilypond pdf (letter) output with sufficient > margins for 3-hole punch? > It's no guarantee, but I put the following in my paper block: two-sided = ##t inner-margin = 12\mm outer-margin = 8\mm -- Knute Snortum
How to "guarantee" Lilypond pdf (letter) output with sufficient margins for 3-hole punch?
Hi; How to "guarantee" Lilypond pdf (letter) output with sufficient margins for 3-hole punch? I'm looking forward to having a method of "guaranteeing" Lilypond pdf output for letter (not a4) of my engravings such that the resulting printout can be three-hole punched (on both sides potentially) without making adversely affecting the visibility of the pdf. This "procedure" or "process" might be needed retroactively as well as for a new engraving project. I know that this might be a proportionate value so I'd have to adjust it if I specified (or changed) a global font size. I guess what I'm looking for is the equivalent of "indent" but for every system. I'll look again to see if I understand "margin"-related settings... Thanks for hints... Ken Wolcott
Re: margins
Indeed I did. And somehow that never occured to me. Thanks, Shane On Fri, Jul 21, 2023, 5:23 PM Hans Aikema wrote: > > On 21 Jul 2023, at 23:08, Shane Brandes wrote: > > Hi all, > > Today I was working on a project and I tried setting the top and bottom > margins in the paperblock in the 2.24.0 version. Nothing changed so I ended > up editing the paper-defaults-init.ly. That caused the change I wanted, > but why isn't the paper block part working? The side margins work just > fine. It is odd and was a time waster finding a workaround. Any > explanations? > > regards, > Shane > > > I suspect you set the paper-size AFTER the top-margin > > Working: > { c' } > \paper { > #(set-paper-size "a4") > top-margin = 60 > } > > > Not working: > { c' } > \paper { > top-margin = 60 > #(set-paper-size "a4") > } > >
Re: margins
> On 21 Jul 2023, at 23:08, Shane Brandes wrote: > > Hi all, > > Today I was working on a project and I tried setting the top and bottom > margins in the paperblock in the 2.24.0 version. Nothing changed so I ended > up editing the paper-defaults-init.ly <http://paper-defaults-init.ly/>. That > caused the change I wanted, but why isn't the paper block part working? The > side margins work just fine. It is odd and was a time waster finding a > workaround. Any explanations? > > regards, > Shane I suspect you set the paper-size AFTER the top-margin Working: { c' } \paper { #(set-paper-size "a4") top-margin = 60 } Not working: { c' } \paper { top-margin = 60 #(set-paper-size "a4") }
margins
Hi all, Today I was working on a project and I tried setting the top and bottom margins in the paperblock in the 2.24.0 version. Nothing changed so I ended up editing the paper-defaults-init.ly. That caused the change I wanted, but why isn't the paper block part working? The side margins work just fine. It is odd and was a time waster finding a workaround. Any explanations? regards, Shane
Re: Questions about ragged-right and margins
Not sure if this is helpful to your use case, but you may want to take a look at how to centre psalms on a page in LSR snippet 708. https://lsr.di.unimi.it/LSR/Item?id=708 Andrew
Questions about ragged-right and margins
Hello All, I have two questions related to ragged-right. #1: Is it possible to change the behavior of ragged-right so that rather than a system being an arbitrary length, the length snaps to certain intervals? The out-of-the-box behavior of ragged-right = ##t can result in systems that are minutely different lengths, which isn't particularly attractive. Instead, it would be nice to snap to, say increments of 10% of the maximum line length. I recognize that it's still possible to have two similar-length lines that snap in opposite directions. #2: Given #1 above, is it possible to set the margins of the score dynamically so that the longest system is centered on the page, and all other systems are left-aligned with it? Ideally, everything outside the score would take the full margin/line length defined in the \paper block. I'm typesetting a psalter with tune pairings. We want to generally match the layout of a previously published hymnal that was done in Finale with some of the above layout decisions. We're doing this project in LP because the scope of the project (195 psalm paraphrases, each paired and notated with multiple common tunes, prepared in multiple slide and print formats) would be infeasible without the ability to automate the work using LP and a language like Python. Thanks in advance, Carl Peterson
Fwd: Writing markup into the margins
From: Paul Hodges To: Valentin Petzel Sent: 04/05/2022 23:12 Subject: Re: Writing markup into the margins PS: In my example I forgot to remove the indent from the paper to prove that my solution writes outside the normal area; but it does! Paul From: Valentin Petzel To: Cc: Paul Hodges Sent: 04/05/2022 20:01 Subject: Re: Writing markup into the margins Hello Paul, would something like this fit your case? { \override Staff.Clef.break-visibility = #all-invisible \clef treble c'1 c' c' c' \break \override Score.MetronomeMark.break-align-symbols = #'(staff-bar key- signature clef) \override Score.MetronomeMark.self-alignment-X = #CENTER \override Score.MetronomeMark.break-visibility = #all-visible \tempo \markup { \note-by-number #2 #0 #UP = \note-by-number #1 #0 #UP } c' c' c' c' } This assumes that no explicit clefs are printed, but I cannot see how "I've been asked to do that even at the start of a line" would make any sense otherwise. Cheers, Valentin Am Mittwoch, 4. Mai 2022, 12:00:11 CEST schrieb Paul Hodges: > I have been asked to place tempo equations (Gould pp185-6) so that the = > sign is over a bar line. If the tempo change is at a line break, this > requires half of the equation to jut out into the margin (I've been asked > to do that even at the start of a line - pace Gould). This may be bad > practice, but I'm not the editor... > > > However, I can't make this happen, at least with markup; any attempt to > force it just results in the anchor for the markup being moved to bring the > markup back out of the margin. > > > Can anyone suggest how I can get around this? > > > Thanks, > Paul
Fwd: Writing markup into the margins
From: Paul Hodges To: Valentin Petzel Sent: 04/05/2022 22:53 Subject: Re: Writing markup into the margins Thanks for the try. I have in fact just found a much simpler solution for what the editor wants (yet another parameter I had no idea existed, of course): %% \version "2.23.3" \layout{ \override Score.PaperColumn.keep-inside-line = ##f } { c'1^\markup \halign #1.65 \concat { "← " \smaller \note-by-number #2 #0 #0.8 " = " \smaller \note-by-number #2 #1 #0.8 " →" } } Without the override, the halign in the markup simply forces the note it's attached to to move to the right (which was the problem I was faced with). Gould clearly assumes that no one would do this - and her example for the end of a line only works because there's a change of time signature as well which gives space for the equation to overlap the barline. Paul From: Valentin Petzel To: Cc: Paul Hodges Sent: 04/05/2022 20:01 Subject: Re: Writing markup into the margins Hello Paul, would something like this fit your case? { \override Staff.Clef.break-visibility = #all-invisible \clef treble c'1 c' c' c' \break \override Score.MetronomeMark.break-align-symbols = #'(staff-bar key- signature clef) \override Score.MetronomeMark.self-alignment-X = #CENTER \override Score.MetronomeMark.break-visibility = #all-visible \tempo \markup { \note-by-number #2 #0 #UP = \note-by-number #1 #0 #UP } c' c' c' c' } This assumes that no explicit clefs are printed, but I cannot see how "I've been asked to do that even at the start of a line" would make any sense otherwise. Cheers, Valentin Am Mittwoch, 4. Mai 2022, 12:00:11 CEST schrieb Paul Hodges: > I have been asked to place tempo equations (Gould pp185-6) so that the = > sign is over a bar line. If the tempo change is at a line break, this > requires half of the equation to jut out into the margin (I've been asked > to do that even at the start of a line - pace Gould). This may be bad > practice, but I'm not the editor... > > > However, I can't make this happen, at least with markup; any attempt to > force it just results in the anchor for the markup being moved to bring the > markup back out of the margin. > > > Can anyone suggest how I can get around this? > > > Thanks, > Paul
Re: Writing markup into the margins
Hello Paul, would something like this fit your case? { \override Staff.Clef.break-visibility = #all-invisible \clef treble c'1 c' c' c' \break \override Score.MetronomeMark.break-align-symbols = #'(staff-bar key- signature clef) \override Score.MetronomeMark.self-alignment-X = #CENTER \override Score.MetronomeMark.break-visibility = #all-visible \tempo \markup { \note-by-number #2 #0 #UP = \note-by-number #1 #0 #UP } c' c' c' c' } This assumes that no explicit clefs are printed, but I cannot see how "I've been asked to do that even at the start of a line" would make any sense otherwise. Cheers, Valentin Am Mittwoch, 4. Mai 2022, 12:00:11 CEST schrieb Paul Hodges: > I have been asked to place tempo equations (Gould pp185-6) so that the = > sign is over a bar line. If the tempo change is at a line break, this > requires half of the equation to jut out into the margin (I've been asked > to do that even at the start of a line - pace Gould). This may be bad > practice, but I'm not the editor... > > > However, I can't make this happen, at least with markup; any attempt to > force it just results in the anchor for the markup being moved to bring the > markup back out of the margin. > > > Can anyone suggest how I can get around this? > > > Thanks, > Paul signature.asc Description: This is a digitally signed message part.
Writing markup into the margins
I have been asked to place tempo equations (Gould pp185-6) so that the = sign is over a bar line. If the tempo change is at a line break, this requires half of the equation to jut out into the margin (I've been asked to do that even at the start of a line - pace Gould). This may be bad practice, but I'm not the editor... However, I can't make this happen, at least with markup; any attempt to force it just results in the anchor for the markup being moved to bring the markup back out of the margin. Can anyone suggest how I can get around this? Thanks, Paul
Re: top/bottom margins?
yep that helped a lot. Thanks. j On 2021-12-29 15:34, Carl Sorensen wrote: On 12/29/21, 3:25 PM, "jh" wrote: very curious. So your example printed better than mine the footnote is very close to the edge and the top is very far down. So I opened librewriter cut the margins to .5 and filled the top and two lines of text at the bottom and there is no loss at the bottom and no extra space at the top. So this is a problem that is connected to the program more than the printer. The github links didn't inform me much as I am not that kind of tech person (as if you couldn't tell) and I have never used github and don't have an account. I think I'm asking "is there a way to manually set the margins in lilypond?" I think the issue is a Frescobaldi issue, not a LilyPond issue, as the links Federico shared point out. Instead of printing from Frescobaldi, try opening up the saved pdf file that is created by LilyPond and stored by Frescobaldi in the working directory. Open the pdf in some pdf viewer (evince is a Free pdf viewer) and try printing from the viewer. See if you still have the problem. HTH, Carl
Re: top/bottom margins?
On 12/29/21, 3:25 PM, "jh" wrote: very curious. So your example printed better than mine the footnote is very close to the edge and the top is very far down. So I opened librewriter cut the margins to .5 and filled the top and two lines of text at the bottom and there is no loss at the bottom and no extra space at the top. So this is a problem that is connected to the program more than the printer. The github links didn't inform me much as I am not that kind of tech person (as if you couldn't tell) and I have never used github and don't have an account. I think I'm asking "is there a way to manually set the margins in lilypond?" I think the issue is a Frescobaldi issue, not a LilyPond issue, as the links Federico shared point out. Instead of printing from Frescobaldi, try opening up the saved pdf file that is created by LilyPond and stored by Frescobaldi in the working directory. Open the pdf in some pdf viewer (evince is a Free pdf viewer) and try printing from the viewer. See if you still have the problem. HTH, Carl
Re: top/bottom margins?
very curious. So your example printed better than mine the footnote is very close to the edge and the top is very far down. So I opened librewriter cut the margins to .5 and filled the top and two lines of text at the bottom and there is no loss at the bottom and no extra space at the top. So this is a problem that is connected to the program more than the printer. The github links didn't inform me much as I am not that kind of tech person (as if you couldn't tell) and I have never used github and don't have an account. I think I'm asking "is there a way to manually set the margins in lilypond?" J btw I do appreciate the help, and attention to my issue. j On 2021-12-29 12:12, Carl Sorensen wrote: On 12/29/21, 12:09 PM, "jh" wrote: thanks- not sure what to do next the printer settings are as expected. will have to think some more about it I guess. J Here's the pdf I created. See if it prints for you. Carl
Re: top/bottom margins?
On Wed, Dec 29 2021 at 12:09:12 -0700, jh wrote: thanks- not sure what to do next the printer settings are as expected. will have to think some more about it I guess. I remember that Frescobaldi had an issue with printing; can't remember if it was fixed. I see some reports in the tracker: https://github.com/frescobaldi/frescobaldi/issues/1365 https://github.com/frescobaldi/frescobaldi/issues/293 Read this: https://github.com/frescobaldi/frescobaldi/issues/1198
Re: top/bottom margins?
On 12/29/21, 12:09 PM, "jh" wrote: thanks- not sure what to do next the printer settings are as expected. will have to think some more about it I guess. J Here's the pdf I created. See if it prints for you. Carl Jay-Hamilton-24-5-Dec.pdf Description: Jay-Hamilton-24-5-Dec.pdf
Re: top/bottom margins?
thanks- not sure what to do next the printer settings are as expected. will have to think some more about it I guess. j On 2021-12-29 12:02, Carl Sorensen wrote: I added a score to your file to make it pring something. It generates a perfect PDF on my system. No extra space at the top or bottom. \version "2.22.0" \header { title = "24-5 Dec" subtitle = "chaconne" composer = "Jay Hamilton" copyright = \markup { \tiny \override #'(baseline-skip . 0.5) \center-column { "CC lic 2.5 some rights reserved Jay Hamilton 2021" "see http://creativecommons.org/licenses/by-nd/2.5/; } } } #(ly:set-option 'delete-intermediate-files #t) #(set-default-paper-size "letter" ) #(set-global-staff-size 20) \score{ {c'4} } Carl
Re: top/bottom margins?
I added a score to your file to make it pring something. It generates a perfect PDF on my system. No extra space at the top or bottom. \version "2.22.0" \header { title = "24-5 Dec" subtitle = "chaconne" composer = "Jay Hamilton" copyright = \markup { \tiny \override #'(baseline-skip . 0.5) \center-column { "CC lic 2.5 some rights reserved Jay Hamilton 2021" "see http://creativecommons.org/licenses/by-nd/2.5/; } } } #(ly:set-option 'delete-intermediate-files #t) #(set-default-paper-size "letter" ) #(set-global-staff-size 20) \score{ {c'4} } Carl
Re: top/bottom margins?
attached is the header I use as you can see it is Letter. Brian suggests that it's the printer and his test does suggest that it is the printer; But no other pdf produced by other software has this problem all the others (3) print with an expected top margin and bottom margin. So I'm stuck, I'd like to think there's a printer setting but since it prints normally for everything except lily/fresco-pdfs that doesn't make sense to me. If you can explain it then I'll look further. thanks J On 2021-12-29 11:34, Carl Sorensen wrote: On 12/29/21, 9:22 AM, "lilypond-user on behalf of jh" wrote: hello using 2.22 and current version of Frescobaldi. using 'letter' and a new printer Canon lately the top margin above the header has gotten wider and the footnote (2 lines smaller font) on the first page of scores is getting cut off or the bottom line is cut in half. Is the easy solution to go smaller overall my default is 20 or is there a paper solution that would do this? I expect that you are using A4, rather than letter, as your paper definition. Can you share a simple file that has the problem? The Frescobaldi score wizard allows you to select letter as the paper size. If you do nothing to specify a paper size, you will get A4. HTH, Carl \version "2.22.0" \header { title = "24-5 Dec" subtitle = "chaconne" composer = "Jay Hamilton" copyright = \markup { \tiny \override #'(baseline-skip . 0.5) \center-column { "CC lic 2.5 some rights reserved Jay Hamilton 2021" "see http://creativecommons.org/licenses/by-nd/2.5/; } } } #(ly:set-option 'delete-intermediate-files #t) #(set-default-paper-size "letter" ) #(set-global-staff-size 20)
Re: top/bottom margins?
On 12/29/21, 9:22 AM, "lilypond-user on behalf of jh" wrote: hello using 2.22 and current version of Frescobaldi. using 'letter' and a new printer Canon lately the top margin above the header has gotten wider and the footnote (2 lines smaller font) on the first page of scores is getting cut off or the bottom line is cut in half. Is the easy solution to go smaller overall my default is 20 or is there a paper solution that would do this? I expect that you are using A4, rather than letter, as your paper definition. Can you share a simple file that has the problem? The Frescobaldi score wizard allows you to select letter as the paper size. If you do nothing to specify a paper size, you will get A4. HTH, Carl
top/bottom margins?
hello using 2.22 and current version of Frescobaldi. using 'letter' and a new printer Canon lately the top margin above the header has gotten wider and the footnote (2 lines smaller font) on the first page of scores is getting cut off or the bottom line is cut in half. Is the easy solution to go smaller overall my default is 20 or is there a paper solution that would do this? thanks J -- Thank you Sound & Silence Beginning May 1, 2021 a new address; 1814 Lake Washington Blvd. So., Seattle, Wa. 98144 _206-328-7694 or messages at 206-308-8189_ www.soundand.com and an online short (45 minute) concert of new material on Wayward in Limbo https://www.waywardmusic.org/?p=6082
Re: Markup in left and right margins
Hello Aaron, Wowsers -- I am dense. That completely makes sense. And it is simple! Many thanks, mattfong On Thu, Oct 15, 2020 at 6:46 PM Aaron Hill wrote: > On 2020-10-15 6:03 pm, Matthew Fong wrote: > > Many thanks for the solution of translation. I'm toying around with it > > right now, and had a question: > > I am possible misunderstanding the solution, and using the abs-override > > incorrectly. I cannot seem to place a comment string next to the stave. > > The code I showed was purely to demonstrate that you *could* move things > outside the margins. But it was not prescriptive. In practice, take a > simpler route: > > > \version "2.20.0" > > \paper { >#(set-paper-size "a6landscape") >top-margin = 1.5\cm bottom-margin = 3\cm >left-margin = 2\cm right-margin = 2.5\cm >indent = 0 ragged-right = ##f > } > > loremIpsum = > \markup >\override #'(baseline-skip . 2.5) >\smaller \left-column { > \line { Lorem ipsum dolor sit amet, } > \line { consectetur adipscing elit. } >} > > \markup >% Collapse dimensions so the \markup takes no space. >\with-dimensions-from \null > >% Move the \markup further into the left margin. >\translate #'(-1 . 0) > >% Adjust alignment of \markup to top-right corner. >\general-align #X #RIGHT >\general-align #Y #UP > >% The \markup itself. >\rotate #90 \with-color #red \loremIpsum > > % NOTE: > % The \fill-line { \null ... } pattern is useful for > % aligning content to the right margin automatically. > > \markup \fill-line { \null >% Collapse dimensions so the \markup takes no space. >\with-dimensions-from \null > >% Move the \markup further into the right margin. >\translate #'(1 . 0) > >% Adjust alignment of \markup to top-left corner. >\general-align #X #LEFT >\general-align #Y #UP > >% The \markup itself. >\rotate #-90 \with-color #blue \loremIpsum > } > > \new Staff \fixed c'' { >c1^\markup \with-color #green \loremIpsum > } > > > Given the above approach, there is no need to mess about with "absolute" > measurements. Staff space units are generally pretty nice to work with > anyway. > > > -- Aaron Hill
Re: Markup in left and right margins
On 2020-10-15 6:03 pm, Matthew Fong wrote: Many thanks for the solution of translation. I'm toying around with it right now, and had a question: I am possible misunderstanding the solution, and using the abs-override incorrectly. I cannot seem to place a comment string next to the stave. The code I showed was purely to demonstrate that you *could* move things outside the margins. But it was not prescriptive. In practice, take a simpler route: \version "2.20.0" \paper { #(set-paper-size "a6landscape") top-margin = 1.5\cm bottom-margin = 3\cm left-margin = 2\cm right-margin = 2.5\cm indent = 0 ragged-right = ##f } loremIpsum = \markup \override #'(baseline-skip . 2.5) \smaller \left-column { \line { Lorem ipsum dolor sit amet, } \line { consectetur adipscing elit. } } \markup % Collapse dimensions so the \markup takes no space. \with-dimensions-from \null % Move the \markup further into the left margin. \translate #'(-1 . 0) % Adjust alignment of \markup to top-right corner. \general-align #X #RIGHT \general-align #Y #UP % The \markup itself. \rotate #90 \with-color #red \loremIpsum % NOTE: % The \fill-line { \null ... } pattern is useful for % aligning content to the right margin automatically. \markup \fill-line { \null % Collapse dimensions so the \markup takes no space. \with-dimensions-from \null % Move the \markup further into the right margin. \translate #'(1 . 0) % Adjust alignment of \markup to top-left corner. \general-align #X #LEFT \general-align #Y #UP % The \markup itself. \rotate #-90 \with-color #blue \loremIpsum } \new Staff \fixed c'' { c1^\markup \with-color #green \loremIpsum } Given the above approach, there is no need to mess about with "absolute" measurements. Staff space units are generally pretty nice to work with anyway. -- Aaron Hill
Re: Markup in left and right margins
Hello Andrew, Yes, in fact, I was considering rotating the content. There isn't much room, but just enough to get a few words sideways. Hello Aaron, Many thanks for the solution of translation. I'm toying around with it right now, and had a question: I am possible misunderstanding the solution, and using the abs-override incorrectly. I cannot seem to place a comment string next to the stave. Here is my sample code. \paper { paper-width = 8\cm paper-height = 6\cm top-margin = 1\cm bottom-margin = 1\cm left-margin = 1.5\cm right-margin = 2.5\cm tagline = ##f } \layout { indent = 0 ragged-right = ##t } \new Staff \relative c' { c'1^"Comment" } \markup \overlay { \abs-translate #(cons (ly:cm -1.5) 0) \abs-override #(cons 'line-width (ly:cm 4)) \with-color #'(0.8 0.3 0.2) \rotate #90 "This is a test" } Many thanks, mattfong On Thu, Oct 15, 2020 at 3:23 AM Aaron Hill wrote: > On 2020-10-15 2:53 am, Andrew Bernard wrote: > > Hi Matthew, > > > > A good question. But I would have thought that margins are exactly > > that - margins. I don't think LilyPond was ever conceived to support > > marginal annotations and complex print formatting. Wouldn't you have > > to narrow your content in whatever way so as to create left or right > > vertical space and simply add it there, so, inside the margins? But I > > am sure all the TeX experts on the list will chime in. > > Nothing prevents you from \translating \markup outside the normal > bounds. > > NOTE: The following code requires some helper functions in order to > specify absolute dimensions in \markup. A real-world usage probably > should be querying the values directly from \paper to eliminate > redundancy. > > > \version "2.20.0" > > #(define-markup-command >(abs-override layout props arg rest) >(pair? markup?) >(let* ((sym (car arg)) > (val (cdr arg)) > (scl (ly:output-def-lookup layout 'output-scale))) > (interpret-markup layout props >(markup #:override (cons sym (/ val scl)) rest > > #(define-markup-command >(abs-translate layout props arg rest) >(pair? markup?) >(let* ((x (car arg)) > (y (cdr arg)) > (scl (ly:output-def-lookup layout 'output-scale))) > (interpret-markup layout props >(markup #:translate (cons (/ x scl) (/ y scl)) rest > > \paper { >paper-width = 8\cm >paper-height = 5\cm >top-margin = 1\cm >bottom-margin = 1\cm >left-margin = 1.5\cm >right-margin = 2.5\cm >tagline = ##f > } > > visualizeBounds = > #(define-scheme-function >(text) >(markup?) >#{ > \markup >\override #'(thickness . 1.5) >\fill-line { > \overlay { >\lower #0.5 \draw-line #'(0 . 1) >\arrow-head #X #LEFT ##f >\draw-line #'(2 . 0) > } > #text > \overlay { >\lower #0.5 \draw-line #'(0 . 1) >\arrow-head #X #RIGHT ##f >\draw-line #'(-2 . 0) > } >} >#}) > > \markup \smaller \column { >\fill-line { paper: \concat { 5cm \char ##xd7 8cm } } >\fill-line { left-margin: 1.5cm } >\fill-line { right-margin: 2.5cm } >\vspace #0.5 > } > > \markup \overlay { >\abs-translate #(cons (ly:cm -1.5) 0) >\abs-override #(cons 'line-width (ly:cm 1.5)) >\with-color #'(0.8 0.3 0.2) >\visualizeBounds left > >\with-color #'(0.2 0.8 0.4) >\visualizeBounds normal > >\abs-translate #(cons (ly:cm 4) 0) >\abs-override #(cons 'line-width (ly:cm 2.5)) >\with-color #'(0.2 0.5 0.8) >\visualizeBounds right > } > > > > -- Aaron Hill
Re: Markup in left and right margins
On 2020-10-15 2:53 am, Andrew Bernard wrote: Hi Matthew, A good question. But I would have thought that margins are exactly that - margins. I don't think LilyPond was ever conceived to support marginal annotations and complex print formatting. Wouldn't you have to narrow your content in whatever way so as to create left or right vertical space and simply add it there, so, inside the margins? But I am sure all the TeX experts on the list will chime in. Nothing prevents you from \translating \markup outside the normal bounds. NOTE: The following code requires some helper functions in order to specify absolute dimensions in \markup. A real-world usage probably should be querying the values directly from \paper to eliminate redundancy. \version "2.20.0" #(define-markup-command (abs-override layout props arg rest) (pair? markup?) (let* ((sym (car arg)) (val (cdr arg)) (scl (ly:output-def-lookup layout 'output-scale))) (interpret-markup layout props (markup #:override (cons sym (/ val scl)) rest #(define-markup-command (abs-translate layout props arg rest) (pair? markup?) (let* ((x (car arg)) (y (cdr arg)) (scl (ly:output-def-lookup layout 'output-scale))) (interpret-markup layout props (markup #:translate (cons (/ x scl) (/ y scl)) rest \paper { paper-width = 8\cm paper-height = 5\cm top-margin = 1\cm bottom-margin = 1\cm left-margin = 1.5\cm right-margin = 2.5\cm tagline = ##f } visualizeBounds = #(define-scheme-function (text) (markup?) #{ \markup \override #'(thickness . 1.5) \fill-line { \overlay { \lower #0.5 \draw-line #'(0 . 1) \arrow-head #X #LEFT ##f \draw-line #'(2 . 0) } #text \overlay { \lower #0.5 \draw-line #'(0 . 1) \arrow-head #X #RIGHT ##f \draw-line #'(-2 . 0) } } #}) \markup \smaller \column { \fill-line { paper: \concat { 5cm \char ##xd7 8cm } } \fill-line { left-margin: 1.5cm } \fill-line { right-margin: 2.5cm } \vspace #0.5 } \markup \overlay { \abs-translate #(cons (ly:cm -1.5) 0) \abs-override #(cons 'line-width (ly:cm 1.5)) \with-color #'(0.8 0.3 0.2) \visualizeBounds left \with-color #'(0.2 0.8 0.4) \visualizeBounds normal \abs-translate #(cons (ly:cm 4) 0) \abs-override #(cons 'line-width (ly:cm 2.5)) \with-color #'(0.2 0.5 0.8) \visualizeBounds right } -- Aaron Hill
Re: Markup in left and right margins
Hi Matthew, A good question. But I would have thought that margins are exactly that - margins. I don't think LilyPond was ever conceived to support marginal annotations and complex print formatting. Wouldn't you have to narrow your content in whatever way so as to create left or right vertical space and simply add it there, so, inside the margins? But I am sure all the TeX experts on the list will chime in. Andrew On 15/10/2020 3:22 am, Matthew Fong wrote: For example, I might want to add notes in the margins, rather than in the music.
Markup in left and right margins
Hello everyone, Would anyone know if there is a way to add mark-up in the left and right margins of the page. There are footnotes and headers for the bottom and top of the page, respectively. For example, I might want to add notes in the margins, rather than in the music. Many thanks, mattfong
Lilypond and LaTeX margins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Taking into account the hints I already gotten, I try to typeset songs using multiple files and use \lilypondfile to include them into LaTeX using scrartcl class (Koma). Now I found out that the margins for the songs are different when compiling with lilypond direct instead of included in the document by lilypond-book. I tried to get the same margins, as with the bigger margins in LaTeX, the music gets split into two staff lines instead of one. It seems that lilypond is adding its own margins to the LaTeX one. Unfortunately, the documentation is not correct. Using line-width option with no argument results in an compile error. And using \lilypondfile[line-width=\linewidth]{...} does not work either. (I use \begin{addmargin}{-0.7cm} to extend the margins.) So, what is the correct way to include the lilypond file with proper margins or with margins equal as lilypond uses itself? Is it possible to use \lilypondfile with no added margins? By the way, one of my sheets needs "indent = 14\mm" to fit the first line in one line instead of two. I set this in the \layout section. I don't know if that will be used for LaTeX include too. Regards Klaus - -- Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16Klaus Ethgen Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C -BEGIN PGP SIGNATURE- Comment: Charset: ISO-8859-1 iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxGJtgACgkQpnwKsYAZ 9qzClgwAlkDdA2MEpucNA0LsV6HxW8PabBeOpwri3doduu/4mLgyypWNgS1ss3XV 86T5DuPrOIe850fCZcEuNChn844p9e0n3coopBUESXMMKrh6eSWtjGLNfRh4rOIN 4tpdHgbGID7u11FbwXBsuREGzwzgn9Wo8/0+u8YyJUXjfXJn3WT7upm9Iq7+NMEA FbPfTOlYvsHQxKs+5LMKkBBnV86y59/v78h+s3BWtlh3dQKHDuD/Js69VowvwR8O fnYKwByhJQNyX8eGzi/W9UAchzkQsgoVK9hhaj2UK2XkuOzLms3EaLrY7NHzYWN5 NNWgVR+oC5W0RtGV0W/QPe/W0id3zZVcBol+a9turCzi1lCOyrbqNtQSJyYj3YHi aoqm93zGFIcBXj+jJ2KL4S9/wTNh1EKeRXd1Qms9gcAj3YUyWGpuQ/YNNpjjvm4X HmZ27121wcODDx9KNpxUGbzWRUbVO99PjT/2QOsbvVrK6mbthv70NudJh0SDMgsi KUbi5FLR =A3uh -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for even/odd pages
It seems that my mistake was not including the '\' before 'mm'. Once I added that it worked as expected. Thanks, Mason On Sun, Nov 5, 2017 at 5:52 PM, Kieren MacMillanwrote: Hi Mason, Actually could you clarify how the outer margin works in two-sided mode? I would expect two-sided = ##t inner-margin = 0mm outer-margin = 0mm binding-offset = 0mm Did you actually try that code, exactly as written, and get no error? With what version, exactly? Regardless, this works as expected for me: SNIPPET BEGINS \version "2.19.80" \paper { two-sided = ##t inner-margin = 0\mm outer-margin = 0\mm binding-offset = 0\mm } \repeat unfold 120 c''4 SNIPPET ENDS Hope that helps, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for even/odd pages
Hi Mason, > Actually could you clarify how the outer margin works in two-sided mode? I > would expect > two-sided = ##t > inner-margin = 0mm > outer-margin = 0mm > binding-offset = 0mm Did you actually try that code, exactly as written, and get no error? With what version, exactly? Regardless, this works as expected for me: SNIPPET BEGINS \version "2.19.80" \paper { two-sided = ##t inner-margin = 0\mm outer-margin = 0\mm binding-offset = 0\mm } \repeat unfold 120 c''4 SNIPPET ENDS Hope that helps, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for even/odd pages
Actually could you clarify how the outer margin works in two-sided mode? I would expect two-sided = ##t inner-margin = 0mm outer-margin = 0mm binding-offset = 0mm to result in a margin of 0mm on both sides of both even and odd pages. The inner margin behaves predictably, but the outer margin is about an inch (I'd have to print and measure it to determine the exact value). Is there a way to explicitly control the size of the outer margin? Thanks, Mason On Sun, Nov 5, 2017 at 4:26 PM, Mason Hock <masonh...@gmail.com> wrote: Awesome. Thank you Kieren. Mason On Sun, Nov 5, 2017 at 4:25 PM, Kieren MacMillan <kieren_macmil...@sympatico.ca> wrote: Hi Mason, I need inner margins to be wider than outer margins to leave room for binding, so odd pages should have a wider margin on one side and even pages on the other. My workaround has been to render the document twice with the two different margin settings and mix/match pages. However, I would prefer to ability to define margins per page. Is this possible? <http://lilypond.org/doc/v2.18/Documentation/notation/horizontal-spacing-paper-variables#paper-variables-for-two_002dsided-mode> Cheers, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for even/odd pages
Awesome. Thank you Kieren. Mason On Sun, Nov 5, 2017 at 4:25 PM, Kieren MacMillan <kieren_macmil...@sympatico.ca> wrote: Hi Mason, I need inner margins to be wider than outer margins to leave room for binding, so odd pages should have a wider margin on one side and even pages on the other. My workaround has been to render the document twice with the two different margin settings and mix/match pages. However, I would prefer to ability to define margins per page. Is this possible? <http://lilypond.org/doc/v2.18/Documentation/notation/horizontal-spacing-paper-variables#paper-variables-for-two_002dsided-mode> Cheers, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for even/odd pages
Hi Mason, > I need inner margins to be wider than outer margins to leave room for > binding, so odd pages should have a wider margin on one side and even pages > on the other. My workaround has been to render the document twice with the > two different margin settings and mix/match pages. However, I would prefer to > ability to define margins per page. Is this possible? <http://lilypond.org/doc/v2.18/Documentation/notation/horizontal-spacing-paper-variables#paper-variables-for-two_002dsided-mode> Cheers, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
different margins for even/odd pages
I need inner margins to be wider than outer margins to leave room for binding, so odd pages should have a wider margin on one side and even pages on the other. My workaround has been to render the document twice with the two different margin settings and mix/match pages. However, I would prefer to ability to define margins per page. Is this possible? Thanks, Mason ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
different margins for headers/footers than systems/score
Hello all, In the snippet below, I’m trying to have a “fancy header”, where the inside edge (barline) of the score is aligned with the inside edge of the header, but the outside edge (barline) of the score is aligned to a line in the header *outside of which the page number appears*. I’ve tried horizontal-shift, but that’s trial-and-error-y, and anyway appears not to observe two-sided mode. Any thoughts on how I can accomplish what I want here? Thanks, Kieren. %%% SNIPPET BEGINS \version "2.19.61" \layout { \context { \Score \omit BarNumber } } \paper { paper-width = 8.5\in paper-height = 11\in two-sided = ##t inner-margin = 0.75\in outer-margin = 0.75\in indent = 0.5\in short-indent = 0\in oddHeaderMarkup = \markup \bold \fill-line { Inside Centre \line { Fancy Outside \hspace #1 \raise #2 \draw-line #'(0 . -3) \hcenter-in #3 1 } } evenHeaderMarkup = \markup \bold \fill-line { \line { \hcenter-in #3 1 \raise #2 \draw-line #'(0 . -3) \hspace #1 Fancy Outside } Centre Inside } tagline = ##f } \repeat unfold 20 { c''1 \break } %%% SNIPPET ENDS Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
About manually setting the margins for each page (Was: Re: Dorico release and tutorials)
On Wed, 19 Oct 2016 11:01:21 -0400, Kieren MacMillan wrote: Hi Gilles, ? The initial post was about manually setting the margins for each page. The discussion quickly replaced that original query with a two-option approach. For whatever reason, it's clear that you don’t see how/when that happened. I simply tried to point out that it has. Since my attempt apparently isn't working, I’ll stop trying. Thanks for the attempt; it would have been successful, had you quoted, or referred to, the said query change, rather than commenting on text that was not present on the post to which I replied. It would be less easy to get lost if posters would change the subject line when they indeed change subject... Regards, Gilles Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Evince/Adobe printing adds margins and scales down the score
On 17/08/16 10:43, Urs Liska wrote: > > > Am 17.08.2016 um 11:33 schrieb Federico Bruni: >> Hi folks >> >> I've tried printing a score with Evince and I see that it adds margins >> on left, right, top and bottom and scales down the score size to fit >> it on the page (line-width=17,40 cm). Is it a known issue? > > Does it really to this even when you disable rescaling in the print options? > My experience with Adobe, was that if you did that, then Adobe would shift your page down and right, so that the top left corner of your page was the top left corner of its printable area. I gave up - I just couldn't get it to reliably print an A4 image on an A4 sheet of paper ... :-( Cheers, Wol ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Evince/Adobe printing adds margins and scales down the score
Il giorno gio 18 ago 2016 alle 16:59, Johan Vromansha scritto: On Thu, 18 Aug 2016 16:36:26 +0200 Federico Bruni wrote: > Does it really to this even when you disable rescaling in the print > options? I'm now using a different printer from yesterday and no, it doesn't help if I disable rescaling. Most likely evince prints through CUPS. Have you checked the printer settings that CUPS uses? Yes.. maybe I missed a configuration option (borderless). If I launch: LANG=C gnome-control-center printers I see two relevant options: 1. Shrink page if necessary to fit borders: I chose "Crop (preserve dimensions)". 2. Borderless: I chose "Yes". But I don't have time now to test the printing. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Evince/Adobe printing adds margins and scales down the score
On Thu, 18 Aug 2016 16:36:26 +0200 Federico Bruniwrote: > > Does it really to this even when you disable rescaling in the print > > options? > > I'm now using a different printer from yesterday and no, it doesn't > help if I disable rescaling. Most likely evince prints through CUPS. Have you checked the printer settings that CUPS uses? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Evince/Adobe printing adds margins and scales down the score
Il giorno mer 17 ago 2016 alle 11:43, Urs Liska <u...@openlilylib.org> ha scritto: I've tried printing a score with Evince and I see that it adds margins on left, right, top and bottom and scales down the score size to fit it on the page (line-width=17,40 cm). Is it a known issue? Does it really to this even when you disable rescaling in the print options? I'm now using a different printer from yesterday and no, it doesn't help if I disable rescaling. lpr prints exactly what I see on the screen (line-width=19 cm). Adobe also adds some margins and scales down the score, slightly less than Evince (line-width=17,90 cm) If I give a score book to a printer, what should I expect? :-) If you give it to a professional printer you should expect "correct" results. Maybe tell them explicitly about your concerns? Yes, I should work it out. Thanks Federico ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Evince/Adobe printing adds margins and scales down the score
On 8/17/16 3:33 AM, "Federico Bruni" <f...@inventati.org> wrote: >Hi folks > >I've tried printing a score with Evince and I see that it adds margins >on left, right, top and bottom and scales down the score size to fit it >on the page (line-width=17,40 cm). Is it a known issue? > >lpr prints exactly what I see on the screen (line-width=19 cm). > >Adobe also adds some margins and scales down the score, slightly less >than Evince (line-width=17,90 cm) I had this problem and was tearing my hair out. I solved it by defining a custom paper size with no margins. My printer had a margin built into the existing paper size, and Adobe respected that. When I defined a custom paper with a margin of zero, everything came out just like I wanted it to. I hope this will help you. Thanks, Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Evince/Adobe printing adds margins and scales down the score
On Wed 17 Aug 2016 at 11:33:58 (+0200), Federico Bruni wrote: > Hi folks > > I've tried printing a score with Evince and I see that it adds > margins on left, right, top and bottom and scales down the score > size to fit it on the page (line-width=17,40 cm). Is it a known > issue? > > lpr prints exactly what I see on the screen (line-width=19 cm). > > Adobe also adds some margins and scales down the score, slightly > less than Evince (line-width=17,90 cm) In my book, that's a good argument not to print directly from applications but to a PDF queue instead, then print the PDF file directly with something you can trust, ie lpr or lp. I use a patched¹ copy of testpage.tex to calibrate the margins imposed by the printer hardware (and its CUPS driver), and a bash function that displays a nonce copy of any PDF file with a corresponding frame superimposed on it, so I know in advance of printing what I'm going to lose around the edges. My Margins-*.ily files take account of this. This test function is essential if you're stuck with US paper sizes. > If I give a score book to a printer, what should I expect? :-) You should discuss how the printer wants your output (presumably as PDF files) delivered to them. Their requirements and flexibilty vary. When I have A6 booklets printed with fairly small margins, I send A4 pages which have pairs of A6 pages in collated order (1,20 19,2 etc) duplicated at the top and bottom of each A4 sheet so that the gutter will be exactly the right size. The printers in Cirencester like that to be done for them. I also send a crib with A6 pages in the correct order, because my booklet's pages are unnumbered. OTOH sending A5 booklet files to my Swindon printer in that form would be a waste of time as the first thing they do is separate each page and then size and place them themselves. The margins in my file are irrelevant to them. One thing you do need to remember to discuss is where any blank pages appear (assuming you don't want to insert "this page intentionally left blank"). There's a tendency for printers to prefer leaving page 2 blank rather than the last page. But there's always lots to discuss in terms of paper quality, weight, brightness, colour etc anyway. Margin size is but a small part. ¹the patch is from http://tex.stackexchange.com/questions/139951/pdflatex-testpage-produces-wrong-margins-for-a4paper and I'm not sure about being able to distribute a modified file. However, I document the patch within the printed output, as attached. Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Evince/Adobe printing adds margins and scales down the score
Am 17.08.2016 um 11:33 schrieb Federico Bruni: > Hi folks > > I've tried printing a score with Evince and I see that it adds margins > on left, right, top and bottom and scales down the score size to fit > it on the page (line-width=17,40 cm). Is it a known issue? Does it really to this even when you disable rescaling in the print options? > > lpr prints exactly what I see on the screen (line-width=19 cm). > > Adobe also adds some margins and scales down the score, slightly less > than Evince (line-width=17,90 cm) > > If I give a score book to a printer, what should I expect? :-) If you give it to a professional printer you should expect "correct" results. Maybe tell them explicitly about your concerns? Best Urs > > Thanks > Federico > > > > > ___ > 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
Evince/Adobe printing adds margins and scales down the score
Hi folks I've tried printing a score with Evince and I see that it adds margins on left, right, top and bottom and scales down the score size to fit it on the page (line-width=17,40 cm). Is it a known issue? lpr prints exactly what I see on the screen (line-width=19 cm). Adobe also adds some margins and scales down the score, slightly less than Evince (line-width=17,90 cm) If I give a score book to a printer, what should I expect? :-) Thanks Federico ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: print page numbers on margins
2016-02-09 19:00 GMT+01:00 Jonathan Scholbach <j.scholb...@posteo.de>: > Dear all, > > I have margins on both sides of the page and would like to print the page > numbers on the margin. How do I do that? > > My settings are > > \version "2.19.22" > > \paper { > > left-margin = 2\cm > > right-margin = 2\cm > > oddHeaderMarkup= \markup { \column { { \fromproperty > #'page:page-number-string }}} %left aligned page numbers on odd pages > > evenHeaderMarkup = \markup { { \column { \fill-line {"" \fromproperty > #'page:page-number-string %right aligned page numbers on even pages > > } > > \book { > > \score { > > \new Staff { R1*500 } > > } > > } > > I tried to play around with something like > > indent = 2\cm > > short-indent = 2\cm > > horizontal-shift = -1\cm > > > but that's ugly, because it changes only the positioning of the systems, but > not of, for example, the system-separators. And there might be many other > elements I would have to re-position if I did it that way. Is there a > possibility the other way around - just changing the position of the > HeaderMarkup? > > Thanks! > > Jonathan Is one of the suggestions in the following thread of any help? http://lilypond.1069038.n5.nabble.com/different-margins-for-footer-and-music-td185896.html Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
print page numbers on margins
Dear all, I have margins on both sides of the page and would like to print the page numbers on the margin. How do I do that? My settings are \version "2.19.22" \paper { left-margin = 2\cm right-margin = 2\cm oddHeaderMarkup= \markup { \column { { \fromproperty #'page:page-number-string }}} %left aligned page numbers on odd pages evenHeaderMarkup = \markup { { \column { \fill-line {"" \fromproperty #'page:page-number-string %right aligned page numbers on even pages } \book { \score { \new Staff { R1*500 } } } I tried to play around with something like indent = 2\cm short-indent = 2\cm horizontal-shift = -1\cm but that's ugly, because it changes only the positioning of the systems, but not of, for example, the system-separators. And there might be many other elements I would have to re-position if I did it that way. Is there a possibility the other way around - just changing the position of the HeaderMarkup? Thanks! Jonathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for footer and music
2016-01-14 21:00 GMT+01:00 Mike Solomon <m...@mikesolomon.org>: > Hey all, > > Is it possible to have different margins for the footer and for the music in > LilyPond? I’d like to place page numbers to the left and right of the > music’s margin but they seem to be flush with the music’s margin no matter > what markup hacking I try. > > Cheers, > MS > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user After an idea by Torsten Hämmerle http://www.lilypondforum.de/index.php?topic=1393.msg7673#msg7673 \version "2.19.35" #(set-default-paper-size "a6") #(define page-number-offsets '( (even . (2 . 0)) (odd . (-2 . 0)) )) #(define-markup-command (place-folio layout props folio) (markup?) (let* ((pageno (chain-assoc-get 'page:page-number props)) (even-odd-page (if (even? pageno) 'even 'odd)) (m (interpret-markup layout props folio)) (x-ext (ly:stencil-extent m X)) (y-ext (ly:stencil-extent m Y))) (interpret-markup layout props (markup #:with-dimensions x-ext y-ext #:line (#:translate (assoc-get even-odd-page page-number-offsets) folio) \paper { indent = 0 first-page-number = 1 ragged-right = ##f oddHeaderMarkup = \markup %\on-the-fly #not-first-page \fill-line { \place-folio \fromproperty #'page:page-number-string \null } evenHeaderMarkup = \markup \fill-line { \null \place-folio \fromproperty #'page:page-number-string } } { \repeat unfold 10 { s1 \pageBreak } } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for footer and music
> On Jan 14, 2016, at 10:27 PM, Robin Bannisterwrote: > > Mike Solomon wrote: > >> I’d like to place page numbers to the left and right of the music’s margin > > How about duping \fill-line? > > evenHeaderMarkup = \markup \fill-line { > \with-dimensions #'(6 . 8) #'(0 . 0) > \fromproperty #'page:page-number-string > \fromproperty #'header:title > \with-dimensions #'(-8 . -6) #'(0 . 0) > \fromproperty #'page:page-number-string > } > > > Cheers, > Robin > Works like a charm! Thanks! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
different margins for footer and music
Hey all, Is it possible to have different margins for the footer and for the music in LilyPond? I’d like to place page numbers to the left and right of the music’s margin but they seem to be flush with the music’s margin no matter what markup hacking I try. Cheers, MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different margins for footer and music
Mike Solomon wrote: I’d like to place page numbers to the left and right of the music’s margin How about duping \fill-line? evenHeaderMarkup = \markup \fill-line { \with-dimensions #'(6 . 8) #'(0 . 0) \fromproperty #'page:page-number-string \fromproperty #'header:title \with-dimensions #'(-8 . -6) #'(0 . 0) \fromproperty #'page:page-number-string } Cheers, Robin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OT: Getting lyluatex to work [was: Re: Lilypond and LaTeX - margins]
Pressed send by accident before I was finished. On Jul 27, 2015, at 11:06 AM, Ralf Mattes r.mat...@mh-freiburg.de wrote: Am Sonntag, 26. Juli 2015 12:33 CEST, Marc Hohl m...@hohlart.de schrieb: Not a TeXpert (any more), but from my quick tests - nothing. I got the same error as you. I fixed this bug by adding \usepackage{fontspec} before using the lyluatex package. Not being in front of my computer at the moment I can't check this dependency, but the example document for lyluatex loads that package, so it might be required. Obviously if it is, it should be loaded by the package itself. Unfortunately, while the luatex compile now works, the output isn't what I'd expect. My final pdf shows a box with the name of the tmp-file that lilypond created ... Sounds like a draft option floating around somewhere. This is standard LaTeX behavior for graphics in draft mode. Not enough itch to scratch for me but maybe someone will be able to ebug this. For now, I'd say this isn't a production-ready alternative to lilypond book. Cheers, Ralf Mattes I've used the package myself and know it works, though it isn't as feature rich as lilypond-book at the moment. I won't be able to look at this in more detail until Wednesday, but have you tried compiling the sample document on the GitHub site (test.tex or test.en.tex)? Br. Samuel, OSB (R. Padraic Springuel) PAX ☧ ΧΡΙΣΤΟΣ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OT: Getting lyluatex to work [was: Re: Lilypond and LaTeX - margins]
Am Sonntag, 26. Juli 2015 12:33 CEST, Marc Hohl m...@hohlart.de schrieb: Am 25.07.2015 um 18:12 schrieb Víctor: On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. I wanted to give this package a try and copied the two files lyluatex.sty and lyluatex.lua in my project folder (as described in https://github.com/jperon/lyluatex/blob/master/README.en.md) Now I get ! LuaTeX error ./lyluatex.lua:1: attempt to index global 'luatexbase' (a nil value) stack traceback: ./lyluatex.lua:1: in main chunk [C]: in function 'dofile' [\directlua]:1: in main chunk. l.13 ...tlua{dofile(kpse.find_file(lyluatex.lua))} ? As an alternative, I made a directory in the texlive tree $ sudo mkdir /usr/local/texlive/2014/texmf-dist/tex/lualatex/lyluatex/ and copied the files in there, followed by a $ sudo mktexlsr but the error message persists. Can someone of the TeXperts explain to me what I am (obviously) doing wrong here? Not a TeXpert (any more), but from my quick tests - nothing. I got the same error as you. I fixed this bug by adding \usepackage{fontspec} before using the lyluatex package. Unfortunately, while the luatex compile now works, the output isn't what I'd expect. My final pdf shows a box with the name of the tmp-file that lilypond created ... Not enough itch to scratch for me but maybe someone will be able to ebug this. For now, I'd say this isn't a production-ready alternative to lilypond book. Cheers, Ralf Mattes Thanks, Marc Víctor. ___ 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: OT: Getting lyluatex to work [was: Re: Lilypond and LaTeX - margins]
Am 27.07.2015 um 12:06 schrieb Ralf Mattes: Am Sonntag, 26. Juli 2015 12:33 CEST, Marc Hohl m...@hohlart.de schrieb: Am 25.07.2015 um 18:12 schrieb Víctor: On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. I wanted to give this package a try and copied the two files lyluatex.sty and lyluatex.lua in my project folder (as described in https://github.com/jperon/lyluatex/blob/master/README.en.md) Now I get ! LuaTeX error ./lyluatex.lua:1: attempt to index global 'luatexbase' (a nil value) stack traceback: ./lyluatex.lua:1: in main chunk [C]: in function 'dofile' [\directlua]:1: in main chunk. l.13 ...tlua{dofile(kpse.find_file(lyluatex.lua))} ? As an alternative, I made a directory in the texlive tree $ sudo mkdir /usr/local/texlive/2014/texmf-dist/tex/lualatex/lyluatex/ and copied the files in there, followed by a $ sudo mktexlsr but the error message persists. Can someone of the TeXperts explain to me what I am (obviously) doing wrong here? Not a TeXpert (any more), but from my quick tests - nothing. I got the same error as you. I fixed this bug by adding \usepackage{fontspec} before using the lyluatex package. Thanks, that works for me too! Unfortunately, while the luatex compile now works, the output isn't what I'd expect. My final pdf shows a box with the name of the tmp-file that lilypond created ... Not enough itch to scratch for me but maybe someone will be able to ebug this. For now, I'd say this isn't a production-ready alternative to lilypond book. I compiled my 40+ project with the lyluatex package and I can see the scores, so for me, it works now as expected. Cheers, Marc Cheers, Ralf Mattes Thanks, Marc Víctor. ___ 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: OT: Getting lyluatex to work [was: Re: Lilypond and LaTeX - margins]
Am 27.07.2015 um 06:42 schrieb Víctor: Maybe you should write your question in the GitHub page, or in the gregorio project mail list, where its developer will surely read it. Thanks for your answer! I don't have a GitHub account and do not want to get one just for this question. The same holds for the gregorio mailing list. May you send me his mail address privately? He is quite a supportive person, and clearly the most qualified to help you. That sounds promising! Marc Víctor. El 26/07/15 a las 05:33, Marc Hohl escribió: Am 25.07.2015 um 18:12 schrieb Víctor: On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. I wanted to give this package a try and copied the two files lyluatex.sty and lyluatex.lua in my project folder (as described in https://github.com/jperon/lyluatex/blob/master/README.en.md) Now I get ! LuaTeX error ./lyluatex.lua:1: attempt to index global 'luatexbase' (a nil value) stack traceback: ./lyluatex.lua:1: in main chunk [C]: in function 'dofile' [\directlua]:1: in main chunk. l.13 ...tlua{dofile(kpse.find_file(lyluatex.lua))} ? As an alternative, I made a directory in the texlive tree $ sudo mkdir /usr/local/texlive/2014/texmf-dist/tex/lualatex/lyluatex/ and copied the files in there, followed by a $ sudo mktexlsr but the error message persists. Can someone of the TeXperts explain to me what I am (obviously) doing wrong here? Thanks, Marc Víctor. ___ 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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
OT: Getting lyluatex to work [was: Re: Lilypond and LaTeX - margins]
Am 25.07.2015 um 18:12 schrieb Víctor: On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. I wanted to give this package a try and copied the two files lyluatex.sty and lyluatex.lua in my project folder (as described in https://github.com/jperon/lyluatex/blob/master/README.en.md) Now I get ! LuaTeX error ./lyluatex.lua:1: attempt to index global 'luatexbase' (a nil value) stack traceback: ./lyluatex.lua:1: in main chunk [C]: in function 'dofile' [\directlua]:1: in main chunk. l.13 ...tlua{dofile(kpse.find_file(lyluatex.lua))} ? As an alternative, I made a directory in the texlive tree $ sudo mkdir /usr/local/texlive/2014/texmf-dist/tex/lualatex/lyluatex/ and copied the files in there, followed by a $ sudo mktexlsr but the error message persists. Can someone of the TeXperts explain to me what I am (obviously) doing wrong here? Thanks, Marc Víctor. ___ 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: OT: Getting lyluatex to work [was: Re: Lilypond and LaTeX - margins]
Maybe you should write your question in the GitHub page, or in the gregorio project mail list, where its developer will surely read it. He is quite a supportive person, and clearly the most qualified to help you. Víctor. El 26/07/15 a las 05:33, Marc Hohl escribió: Am 25.07.2015 um 18:12 schrieb Víctor: On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. I wanted to give this package a try and copied the two files lyluatex.sty and lyluatex.lua in my project folder (as described in https://github.com/jperon/lyluatex/blob/master/README.en.md) Now I get ! LuaTeX error ./lyluatex.lua:1: attempt to index global 'luatexbase' (a nil value) stack traceback: ./lyluatex.lua:1: in main chunk [C]: in function 'dofile' [\directlua]:1: in main chunk. l.13 ...tlua{dofile(kpse.find_file(lyluatex.lua))} ? As an alternative, I made a directory in the texlive tree $ sudo mkdir /usr/local/texlive/2014/texmf-dist/tex/lualatex/lyluatex/ and copied the files in there, followed by a $ sudo mktexlsr but the error message persists. Can someone of the TeXperts explain to me what I am (obviously) doing wrong here? Thanks, Marc Víctor. ___ 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: Lilypond and LaTeX - margins
Beda Szukics b...@kollegium-sarnen.ch writes: Am 25.07.2015 um 08:55 schrieb Marc Hohl: Am 25.07.2015 um 08:06 schrieb Beda Szukics: Hello all I try to print a songbook with gregorian and modern songs. For the gregorian part I use gregorio, for the modern songs I use lilypond. The main document is a (Lua)LaTeX-file that has text and scores in it. [...] lilypond-book --pdf Versuch.lytex tells me: You have to specify the latex engine if you want to use lualatex, the --pdf is not necessary (and causes errors in this case IIRC): lilypond-book --latex-program=lualatex Versuch.lytex I get: Programmierfehler: file name not normalized: C:\Users\Beda\Documents\Temporaeres\LilypondTest\snippet-names--1058529076.ly When I compile Versuch.tex I get: ! LaTeX Error: File `10/lily-071f91b4-1' not found. ! LaTeX Error: File `10/lily-071f91b4-2' not found. ! LaTeX Error: File `10/lily-071f91b4-3' not found. but they are there: dir 10: 25.07.2015 09:34 201 162 lily-071f91b4-1.eps 25.07.2015 09:34 205 191 lily-071f91b4-2.eps 25.07.2015 09:34 205 314 lily-071f91b4-3.eps 25.07.2015 09:34 1 lily-071f91b4-systems.count 25.07.2015 09:34 338 lily-071f91b4-systems.tex 25.07.2015 09:3492 lily-071f91b4-systems.texi 25.07.2015 09:34 209 883 lily-071f91b4.eps 25.07.2015 09:34 1 182 lily-071f91b4.ly 25.07.2015 09:3414 lily-071f91b4.txt What's wrong now? You'll probably still need the --pdf option. Correct me if I'm wrong, but lualatex does not go through DVI does it? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 09:55 schrieb David Kastrup: Beda Szukics b...@kollegium-sarnen.ch writes: Am 25.07.2015 um 08:55 schrieb Marc Hohl: Am 25.07.2015 um 08:06 schrieb Beda Szukics: Hello all I try to print a songbook with gregorian and modern songs. For the gregorian part I use gregorio, for the modern songs I use lilypond. The main document is a (Lua)LaTeX-file that has text and scores in it. [...] lilypond-book --pdf Versuch.lytex tells me: You have to specify the latex engine if you want to use lualatex, the --pdf is not necessary (and causes errors in this case IIRC): lilypond-book --latex-program=lualatex Versuch.lytex I get: Programmierfehler: file name not normalized: C:\Users\Beda\Documents\Temporaeres\LilypondTest\snippet-names--1058529076.ly When I compile Versuch.tex I get: ! LaTeX Error: File `10/lily-071f91b4-1' not found. ! LaTeX Error: File `10/lily-071f91b4-2' not found. ! LaTeX Error: File `10/lily-071f91b4-3' not found. but they are there: dir 10: 25.07.2015 09:34 201 162 lily-071f91b4-1.eps 25.07.2015 09:34 205 191 lily-071f91b4-2.eps 25.07.2015 09:34 205 314 lily-071f91b4-3.eps 25.07.2015 09:34 1 lily-071f91b4-systems.count 25.07.2015 09:34 338 lily-071f91b4-systems.tex 25.07.2015 09:3492 lily-071f91b4-systems.texi 25.07.2015 09:34 209 883 lily-071f91b4.eps 25.07.2015 09:34 1 182 lily-071f91b4.ly 25.07.2015 09:3414 lily-071f91b4.txt What's wrong now? You'll probably still need the --pdf option. Correct me if I'm wrong, but lualatex does not go through DVI does it? No. Thank you. That helped. If I use lilypond-book --pdf --latex-program=lualatex Versuch.lytex the margins are respected. I still have about 3 mm at the left margin. (textwidth is 114 mm, the lines of the Tescht part are 110 mm) Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Beda Szukics b...@kollegium-sarnen.ch writes: Thank you. That helped. If I use lilypond-book --pdf --latex-program=lualatex Versuch.lytex the margins are respected. I still have about 3 mm at the left margin. (textwidth is 114 mm, the lines of the Tescht part are 110 mm) Maybe related to the indent and/or short-indent layout settings in the LilyPond file? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25. Juli 2015 10:36:41 MESZ, schrieb David Kastrup d...@gnu.org: Beda Szukics b...@kollegium-sarnen.ch writes: Thank you. That helped. If I use lilypond-book --pdf --latex-program=lualatex Versuch.lytex the margins are respected. I still have about 3 mm at the left margin. (textwidth is 114 mm, the lines of the Tescht part are 110 mm) Maybe related to the indent and/or short-indent layout settings in the LilyPond file? Or the width of the system bracket? This is something that really annoys me: when inserting music systems in (LaTeX) text I would like the left barline to align with the text and have the bracket protrude into the margin. But so far I haven't found a solution short of manually measuring the actual width of the (potentially scaled) sample. Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 10:50 schrieb Urs Liska: Am 25. Juli 2015 10:36:41 MESZ, schrieb David Kastrup d...@gnu.org: Beda Szukics b...@kollegium-sarnen.ch writes: Thank you. That helped. If I use lilypond-book --pdf --latex-program=lualatex Versuch.lytex the margins are respected. I still have about 3 mm at the left margin. (textwidth is 114 mm, the lines of the Tescht part are 110 mm) Maybe related to the indent and/or short-indent layout settings in the LilyPond file? Or the width of the system bracket? This is something that really annoys me: when inserting music systems in (LaTeX) text I would like the left barline to align with the text and have the bracket protrude into the margin. But so far I haven't found a solution short of manually measuring the actual width of the (potentially scaled) sample. The 4 mm would suggest that it's something like that (the bar number on line 2 is printed in this space. But how reduce that? I would like to have all my new songs the same way as the gregorian ones. Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 08:55 schrieb Marc Hohl: Am 25.07.2015 um 08:06 schrieb Beda Szukics: Hello all I try to print a songbook with gregorian and modern songs. For the gregorian part I use gregorio, for the modern songs I use lilypond. The main document is a (Lua)LaTeX-file that has text and scores in it. [...] lilypond-book --pdf Versuch.lytex tells me: You have to specify the latex engine if you want to use lualatex, the --pdf is not necessary (and causes errors in this case IIRC): lilypond-book --latex-program=lualatex Versuch.lytex I get: Programmierfehler: file name not normalized: C:\Users\Beda\Documents\Temporaeres\LilypondTest\snippet-names--1058529076.ly When I compile Versuch.tex I get: ! LaTeX Error: File `10/lily-071f91b4-1' not found. ! LaTeX Error: File `10/lily-071f91b4-2' not found. ! LaTeX Error: File `10/lily-071f91b4-3' not found. but they are there: dir 10: 25.07.2015 09:34 201 162 lily-071f91b4-1.eps 25.07.2015 09:34 205 191 lily-071f91b4-2.eps 25.07.2015 09:34 205 314 lily-071f91b4-3.eps 25.07.2015 09:34 1 lily-071f91b4-systems.count 25.07.2015 09:34 338 lily-071f91b4-systems.tex 25.07.2015 09:3492 lily-071f91b4-systems.texi 25.07.2015 09:34 209 883 lily-071f91b4.eps 25.07.2015 09:34 1 182 lily-071f91b4.ly 25.07.2015 09:3414 lily-071f91b4.txt What's wrong now? Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 10:36 schrieb David Kastrup: Beda Szukics b...@kollegium-sarnen.ch writes: Thank you. That helped. If I use lilypond-book --pdf --latex-program=lualatex Versuch.lytex the margins are respected. I still have about 3 mm at the left margin. (textwidth is 114 mm, the lines of the Tescht part are 110 mm) Maybe related to the indent and/or short-indent layout settings in the LilyPond file? Maybe I'm not very far in learning lilypond. Where would I change these settings in my minimal example: === \version 2.18.0 \header { title=Tescht } \relative c''{ \key g\major \time 4/4 g4 g g g | a a a a | g g g g | a a a a| g g g g | a a a a \bar |. } \addlyrics { La la la la lu lu lu lu le le le le li li li li lo lo lo lo lä lä lä lä } === Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Hi Victor Am 25.07.2015 um 18:12 schrieb Víctor: On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. Thank you. This is very useful. Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lilypond and LaTeX - margins
Hello all I try to print a songbook with gregorian and modern songs. For the gregorian part I use gregorio, for the modern songs I use lilypond. The main document is a (Lua)LaTeX-file that has text and scores in it. My example (Versuch.lytex): \documentclass[a5paper,pagesize,DIV=13,12pt]{scrbook} \usepackage{fontspec} \setmainfont{Cambria} \usepackage[german]{babel} \usepackage{gregoriotex} % for gregorio score inclusion \begin{document} \includescore{Gregorianum} \lilypondfile{Tescht.ly} \end{document} === with Gregorianum.gabc: === name:; %% (c3) La(h) la(i) la(h) %x10 la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) === and Tescht.ly: === \version 2.18.0 \header { title=Tescht } \relative c''{ \key g\major \time 4/4 g4 g g g | a a a a | g g g g | a a a a| g g g g | a a a a \bar |. } \addlyrics { La la la la lu lu lu lu le le le le li li li li lo lo lo lo lä lä lä lä } === lilypond-book --pdf Versuch.lytex tells me: lilypond-book.py: warning: Unable to auto-detect default settings: lilypond-book.py: warning: cannot detect textwidth from LaTeX and the song Tescht shows no respect for the margins :-( So I used the package layouts.sty to determine the length of my gregorian score lines and adapted Tescht.ly with \paper{ line-width = 323.92374\pt left-margin = 0\pt } That gave me lines of Tescht that were equal to the lines of Gregorianum but the Tescht score is still printed about 3 mm to the left. Why? What can I do to suppress the right margin, that lilypond is creating? More general: Is there a way to tell the lilypond-part to adapt to the measures of the LaTeX-file? GreetingsBeda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 08:06 schrieb Beda Szukics: Hello all I try to print a songbook with gregorian and modern songs. For the gregorian part I use gregorio, for the modern songs I use lilypond. The main document is a (Lua)LaTeX-file that has text and scores in it. [...] lilypond-book --pdf Versuch.lytex tells me: You have to specify the latex engine if you want to use lualatex, the --pdf is not necessary (and causes errors in this case IIRC): lilypond-book --latex-program=lualatex Versuch.lytex HTH, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. Víctor. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 18:12 schrieb Víctor: On a separate subject, I'd like to recommend you to use lyluatex https://github.com/jperon/lyluatex instead of Lilypond-book. I've found it to be a cleaner way to work as it is a LuaLaTeX package (developed by the Gregorio team!) and not an engine. That's interesting indeed - thanks for sharing! Marc Víctor. ___ 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: Lilypond and LaTeX - margins
Am 25.07.2015 um 09:55 schrieb David Kastrup: Beda Szukics b...@kollegium-sarnen.ch writes: Am 25.07.2015 um 08:55 schrieb Marc Hohl: Am 25.07.2015 um 08:06 schrieb Beda Szukics: Hello all I try to print a songbook with gregorian and modern songs. For the gregorian part I use gregorio, for the modern songs I use lilypond. The main document is a (Lua)LaTeX-file that has text and scores in it. [...] lilypond-book --pdf Versuch.lytex tells me: You have to specify the latex engine if you want to use lualatex, the --pdf is not necessary (and causes errors in this case IIRC): lilypond-book --latex-program=lualatex Versuch.lytex I get: Programmierfehler: file name not normalized: C:\Users\Beda\Documents\Temporaeres\LilypondTest\snippet-names--1058529076.ly When I compile Versuch.tex I get: ! LaTeX Error: File `10/lily-071f91b4-1' not found. ! LaTeX Error: File `10/lily-071f91b4-2' not found. ! LaTeX Error: File `10/lily-071f91b4-3' not found. but they are there: dir 10: 25.07.2015 09:34 201 162 lily-071f91b4-1.eps 25.07.2015 09:34 205 191 lily-071f91b4-2.eps 25.07.2015 09:34 205 314 lily-071f91b4-3.eps 25.07.2015 09:34 1 lily-071f91b4-systems.count 25.07.2015 09:34 338 lily-071f91b4-systems.tex 25.07.2015 09:3492 lily-071f91b4-systems.texi 25.07.2015 09:34 209 883 lily-071f91b4.eps 25.07.2015 09:34 1 182 lily-071f91b4.ly 25.07.2015 09:3414 lily-071f91b4.txt What's wrong now? You'll probably still need the --pdf option. Correct me if I'm wrong, but lualatex does not go through DVI does it? Hmm, I call lilypond-book without --pdf and it works (with lualatex). Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 14:25 schrieb Marc Hohl: Am 25.07.2015 um 09:55 schrieb David Kastrup: Beda Szukics b...@kollegium-sarnen.ch writes: When I compile Versuch.tex I get: ! LaTeX Error: File `10/lily-071f91b4-1' not found. ! LaTeX Error: File `10/lily-071f91b4-2' not found. ! LaTeX Error: File `10/lily-071f91b4-3' not found. but they are there: dir 10: 25.07.2015 09:34 201 162 lily-071f91b4-1.eps 25.07.2015 09:34 205 191 lily-071f91b4-2.eps 25.07.2015 09:34 205 314 lily-071f91b4-3.eps 25.07.2015 09:34 1 lily-071f91b4-systems.count 25.07.2015 09:34 338 lily-071f91b4-systems.tex 25.07.2015 09:3492 lily-071f91b4-systems.texi 25.07.2015 09:34 209 883 lily-071f91b4.eps 25.07.2015 09:34 1 182 lily-071f91b4.ly 25.07.2015 09:3414 lily-071f91b4.txt What's wrong now? You'll probably still need the --pdf option. Correct me if I'm wrong, but lualatex does not go through DVI does it? Hmm, I call lilypond-book without --pdf and it works (with lualatex). Can you do lualatex Versuch without errors? Because if I start lilypond-book without --pdf I get the error messages telling me it doesn't find some of the files created by lilypond-book. Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 14:36 schrieb Beda Szukics: Am 25.07.2015 um 14:25 schrieb Marc Hohl: Am 25.07.2015 um 09:55 schrieb David Kastrup: Beda Szukics b...@kollegium-sarnen.ch writes: When I compile Versuch.tex I get: ! LaTeX Error: File `10/lily-071f91b4-1' not found. ! LaTeX Error: File `10/lily-071f91b4-2' not found. ! LaTeX Error: File `10/lily-071f91b4-3' not found. but they are there: dir 10: 25.07.2015 09:34 201 162 lily-071f91b4-1.eps 25.07.2015 09:34 205 191 lily-071f91b4-2.eps 25.07.2015 09:34 205 314 lily-071f91b4-3.eps 25.07.2015 09:34 1 lily-071f91b4-systems.count 25.07.2015 09:34 338 lily-071f91b4-systems.tex 25.07.2015 09:3492 lily-071f91b4-systems.texi 25.07.2015 09:34 209 883 lily-071f91b4.eps 25.07.2015 09:34 1 182 lily-071f91b4.ly 25.07.2015 09:3414 lily-071f91b4.txt What's wrong now? You'll probably still need the --pdf option. Correct me if I'm wrong, but lualatex does not go through DVI does it? Hmm, I call lilypond-book without --pdf and it works (with lualatex). Can you do lualatex Versuch without errors? Yep. I had to remove the call for the Cambria font (which I don't have) and the includes for gregoriotex and Gregorianum, though. Afterwards, all worked fine for me. $ lilypond-book --latex-program=lualatex Versuch.lytex $ lualatex Versuch.tex What you can do is call lualatex directly on the file Versuch.lytex. If this breaks up on the line ! Undefined control sequence. l.10 \lilypondfile {Tescht.ly} ? then everything before is ok, but if some latex errors occur (including non-existent fonts etc.), lilypond-book complains about not being able to auto-detect the line-width which does not tell you exactly what went wrong ... HTH, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond and LaTeX - margins
Am 25.07.2015 um 14:57 schrieb Marc Hohl: Am 25.07.2015 um 14:36 schrieb Beda Szukics: Am 25.07.2015 um 14:25 schrieb Marc Hohl: Am 25.07.2015 um 09:55 schrieb David Kastrup: Beda Szukics b...@kollegium-sarnen.ch writes: Hmm, I call lilypond-book without --pdf and it works (with lualatex). Can you do lualatex Versuch without errors? Yep. I had to remove the call for the Cambria font (which I don't have) and the includes for gregoriotex and Gregorianum, though. Afterwards, all worked fine for me. $ lilypond-book --latex-program=lualatex Versuch.lytex $ lualatex Versuch.tex What you can do is call lualatex directly on the file Versuch.lytex. If this breaks up on the line ! Undefined control sequence. l.10 \lilypondfile {Tescht.ly} ? then everything before is ok, but if some latex errors occur (including non-existent fonts etc.), lilypond-book complains about not being able to auto-detect the line-width which does not tell you exactly what went wrong ... My Versuch.lytex is o.k. from the point of view reguarding TeX-Syntax. The problem consists in the length of the score lines. They are a little bit shorter than \textwidth of the surrounding Text and I don't find a way to make them thoses 3/4 mm longer so they don't stand out so much. Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
staff margins?
Stupid question: I'm looking to specify the margins for the music staff, as separate from the margins for the printable area. This is trivial for most cases (the staff margin is set to zero, or depends on instrument names, for two sides), but for the bottom and top margin I'd like to specify an explicit distance between the printable area and the start of the staff itself (such that space is left for text or annotations, etc.). I can't seem to find a variable that controls that. Anybody mind briefly pointing it out to me? Cheers, A ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff margins?
Hi Andrew, I can't seem to find a variable that controls that. Anybody mind briefly pointing it out to me? http://www.lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables Hope this helps! Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
- Original Message - From: MarcM m...@mouries.net To: lilypond-user@gnu.org Sent: Sunday, July 20, 2014 5:38 AM Subject: Default margins in Letter truncated I am wondering if this is an expected behavior or something is wrong my computer and/or printer (HP Officejet Pro). My music is set with \paper { #(set-paper-size letter)} I print on a printer on which the default paper is letter When i print with the default settings the margins are truncated and the only half of the title of the piece is printed. To print correctly i have to select the option to print the entire image which scale the page down to 91%. Is that normal? I would guess your printer has a top margin that is larger than LilyPond sets by default, and larger than most printers. Have you tried setting a larger top-margin? -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
MarcM m...@mouries.net writes: I am wondering if this is an expected behavior or something is wrong my computer and/or printer (HP Officejet Pro). My music is set with \paper { #(set-paper-size letter)} I print on a printer on which the default paper is letter When i print with the default settings the margins are truncated and the only half of the title of the piece is printed. To print correctly i have to select the option to print the entire image which scale the page down to 91%. Is that normal? Well, check your PDF file in a PDF viewer. Most importantly, check the paper format. If it is indeed letter and properly positioned, the problem is when going from PDF to your printer. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
MarcM wrote: I am wondering if this is an expected behavior or something is wrong my computer and/or printer (HP Officejet Pro). . . . When i print with the default settings the margins are truncated and the only half of the title of the piece is printed. Does your printer maybe have an option called Borderless Printing? Cheers, Robin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
I just set annotate-spacing = ##t and it's showing a 2.85 millimeters. That's pretty small. I don't remember being that small. http://lilypond.1069038.n5.nabble.com/file/n164707/top-margin_Lilypond_2014-07-20_at_8.png I added: top-margin= 2\cm and it's showing a margin of 11.38. Shouldn't it be 20 ? http://lilypond.1069038.n5.nabble.com/file/n164707/top_margin_2cm.png -- View this message in context: http://lilypond.1069038.n5.nabble.com/Default-margins-in-Letter-truncated-tp164683p164707.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
MarcM m...@mouries.net writes: I just set annotate-spacing = ##t and it's showing a 2.85 millimeters. That's pretty small. I don't remember being that small. http://lilypond.1069038.n5.nabble.com/file/n164707/top-margin_Lilypond_2014-07-20_at_8.png I added: top-margin= 2\cm and it's showing a margin of 11.38. Shouldn't it be 20 ? http://lilypond.1069038.n5.nabble.com/file/n164707/top_margin_2cm.png Sure that the units are mm rather than staff spaces? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
The doc says here: http://www.lilypond.org/doc/v2.18/Documentation/notation/the-paper-block says: Except when specified otherwise, all \paper variables that correspond to distances on the page are measured in millimeters, unless a different unit is specified by the user. For example, the following declaration sets top-margin to ten millimeters: \paper { top-margin = 10 } On Sun, Jul 20, 2014 at 8:58 AM, David Kastrup d...@gnu.org wrote: MarcM m...@mouries.net writes: I just set annotate-spacing = ##t and it's showing a 2.85 millimeters. That's pretty small. I don't remember being that small. http://lilypond.1069038.n5.nabble.com/file/n164707/top-margin_Lilypond_2014-07-20_at_8.png I added: top-margin= 2\cm and it's showing a margin of 11.38. Shouldn't it be 20 ? http://lilypond.1069038.n5.nabble.com/file/n164707/top_margin_2cm.png Sure that the units are mm rather than staff spaces? -- David Kastrup -- Marc Mouries 571-428-6771 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
The doc says here: http://www.lilypond.org/doc/v2.18/Documentation/notation/the-paper-block says: Except when specified otherwise, all \paper variables that correspond to distances on the page are measured in millimeters, unless a different unit is specified by the user. For example, the following declaration sets top-margin to ten millimeters: \paper { top-margin = 10 } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Default-margins-in-Letter-truncated-tp164683p164711.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Default margins in Letter truncated
Marc Mouries m...@mouries.net writes: The doc says here: http://www.lilypond.org/doc/v2.18/Documentation/notation/the-paper-block says: Except when specified otherwise, all \paper variables that correspond to distances on the page are measured in millimeters, unless a different unit is specified by the user. For example, the following declaration sets top-margin to ten millimeters: \paper { top-margin = 10 } On Sun, Jul 20, 2014 at 8:58 AM, David Kastrup d...@gnu.org wrote: MarcM m...@mouries.net writes: I just set annotate-spacing = ##t and it's showing a 2.85 millimeters. That's pretty small. I don't remember being that small. http://lilypond.1069038.n5.nabble.com/file/n164707/top-margin_Lilypond_2014-07-20_at_8.png I added: top-margin= 2\cm and it's showing a margin of 11.38. Shouldn't it be 20 ? http://lilypond.1069038.n5.nabble.com/file/n164707/top_margin_2cm.png Sure that the units are mm rather than staff spaces? Sure that the _displayed_ units are mm rather than staff spaces? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Default margins in Letter truncated
I am wondering if this is an expected behavior or something is wrong my computer and/or printer (HP Officejet Pro). My music is set with \paper { #(set-paper-size letter)} I print on a printer on which the default paper is letter When i print with the default settings the margins are truncated and the only half of the title of the piece is printed. To print correctly i have to select the option to print the entire image which scale the page down to 91%. Is that normal? -- View this message in context: http://lilypond.1069038.n5.nabble.com/Default-margins-in-Letter-truncated-tp164683.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
alternating left/right margins
No doubt I've missed it, but I cannot find a place in the manuals helping me to alternate left and right margin widths to accomodate inserting a printed copy into a 3-hole punched notebook. Thanks! Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: alternating left/right margins
Hi Mathias, maybe you're looking for this: http://lilypond.org/doc/v2.16/Documentation/notation/horizontal-spacing-_005cpaper-variables#_005cpaper-variables-for-two_002dsided-mode ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: updated margins-a4-letter.ly
Graham Percival-2 wrote Here's a slightly updated version of my produce the same score on A4 and letter paper. Should be easier to understand. Valentin, could you add a wishlist for LSR: snippets that don't produce any output. I'd like to check a box and have LSR not even attempt to compile this snippet; I think it'll complain since it doesn't produce any pdf or png. All stylesheets will need this extra option. No, I don't like the solution of adding a { c'4 } to the bottom of the page. I recently was needing to solve this same A4 vs Letter paper problem. Searching the list archives I found this excellent solution already written by Graham (thanks!). I think it merits being added to the LSR or somewhere where it can be more easily found and used. Maybe at this point including it in the LSR with a { c'4 } hack is better than not including it at all? I'd be glad to submit it. (Or should we hold out for an LSR option for snippets that have no visual output?) Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/updated-margins-a4-letter-ly-tp38004p160532.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
Janek Warchoł wrote Monday, January 13, 2014 7:13 AM 2014/1/13 Noeck noeck.marb...@gmx.de: what is the reason that the default margins are so small? Could this be added to the issue tracker? Let's first have an agreed-upon proposal. No, that's not the way it works. The issue tracker should be used to record problems and discussions about them, not final proposals. So first create a tracker, or two if you wish, and use that to record opinions as we work towards a proposal. Over to you, bug squad. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
2014/1/13 Trevor Daniels t.dani...@treda.co.uk: Janek Warchoł wrote Monday, January 13, 2014 7:13 AM 2014/1/13 Noeck noeck.marb...@gmx.de: what is the reason that the default margins are so small? Could this be added to the issue tracker? Let's first have an agreed-upon proposal. No, that's not the way it works. The issue tracker should be used to record problems and discussions about them, not final proposals. So first create a tracker, or two if you wish, and use that to record opinions as we work towards a proposal. Hmm. Ok, you're right indeed. Sorry for confusion. j ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
Hi Kieren, thanks for your reply. It’s nice to see that my aesthetic feeling is not completely wrong. I’m hoping to submit a more attractive set of defaults for consideration, the moment I get my current engraving project done. That would be very much appreciated. (That being said, I’ve got a bunch of projects “in air traffic control”, so I may not ever get around to it…) Not sure if I understand that. You have a lot to do? I’ve already got lots of measurements, etc. The problem is getting them into a submittable form… As a first step you could just post one or several \paper blocks that you use. Then others could also bring it into a suitable form. Trevor already mentioned the bug squad, I have no account to create an issue in the tracker, but that would help to collect these comments and propsals such that this doesn’t get lost until someone finds the time. Best, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
Hi Janek (et al.), I agree with left/right margins, but not top/bottom. Top/bottom are more tricky because you *want* to allow the page to compress when there's really a lot of content; so the adjustment should be done using compressible top-markup-spacing and the like. Agreed. I suggest the following way forward: let's discuss horizontal margins separately from vertical ones. It should be a no-brainer to increase horizontal margins at least to 12 mm (although 15 seems indeed quite ok for me). Depending on how long it would take Kieren to get to this (2 weeks or 2 months?) Could be the latter… =\ Let’s put it this way: a quick survey of various scores from the good houses” (Barenreiter, Henle, Peters, etc.) reveal a minimum [!!] side-margin-to-width ratio of 16mm:225mm = ~0.071, or 15.3mm proportionally on a U.S. letter page. So I think 15mm would be a fine place to start. Cheers, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
Hi Joram, Not sure if I understand that. You have a lot to do? This month, I have to engrave a complete stage musical, arrange two one-hour stage shows, and compose an eight-minute piece for violin and harp. And that’s not even my day job! =) As a first step you could just post one or several \paper blocks that you use. I’ll see what I can do. Aside from my busy-ness, the main problem is that my \paper definitions are split up across many include files into a larger hierarchy. Cheers, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
2014/1/13 Kieren MacMillan kieren_macmil...@sympatico.ca: This month, I have to engrave a complete stage musical, arrange two one-hour stage shows, and compose an eight-minute piece for violin and harp. And that’s not even my day job! =) Ah, so you must be nocturnal! I.e. you have night jobs, and sleep during the day - no day job at all? ;-) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
Hi Janek, Ah, so you must be nocturnal! I.e. you have night jobs, and sleep during the day - no day job at all? ;-) Actually, I have a full day job, and then tackle all my music projects at night. Sleep is, currently, optional at best. =\ Cheers, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
2014/1/13 Kieren MacMillan kieren_macmil...@sympatico.ca: Hi Janek, Ah, so you must be nocturnal! I.e. you have night jobs, and sleep during the day - no day job at all? ;-) Actually, I have a full day job, and then tackle all my music projects at night. Sleep is, currently, optional at best. =\ OMG! And i've been complaining about lack of time.. j ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
2014/1/13 Trevor Daniels t.dani...@treda.co.uk Let's first have an agreed-upon proposal. No, that's not the way it works. The issue tracker should be used to record problems and discussions about them, not final proposals. So first create a tracker, or two if you wish, and use that to record opinions as we work towards a proposal. I've added it to the tracker: https://code.google.com/p/lilypond/issues/detail?id=3808 I've tried to report the most important comments. Please follow up on issue 3808 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
page margins
Hi, what is the reason that the default margins are so small? They are (top/botton, left/right | inner/outer in mm): 5/6, 10/10 | 10/20 If I compare to printed scores, they are usually larger: Edition Peters: 10/12, 17/17 Boosey Hawkes: 11/24, 14/14 I understand the goal to save space for the music content. But there are some drawbacks: - most printers cannot print so close to the paper edge (especially top/bottom) - this either cuts into the printed page content - or requires to scale the content while printing - it looks too squeezed (cf. the simple example below) - it is non-standard compared to most publishers In addition the top-markup-spacing is 0 which makes the title look very squashed to the top. I would prefer something around 4 or 5 mm (or one text line height). I see that this has been discussed before in 2009: http://lilypond.1069038.n5.nabble.com/default-margins-tp44740p44741.html with margin measurments for many publishers but without a visible conclusion for Lilypond. There is now (or some time ago) a Mutopia discussion whether larger margins should be enforced or not: https://github.com/chrissawer/The-Mutopia-Project/issues/141 but I think if LilyPond delivered printable default settings, this would be the best solution. I have no reference book on this at hand, but my proposal is: 10/15 15/15 | 10/20 and a top-markup-spacing basic-distance of about 4\mm. Could this be added to the issue tracker? Cheers, Joram % show the header placement \version 2.18.0 \header { title = A Default Title composer = The Composer opus = Op. 1 piece = Part 1 } \paper { % top-markup-spacing.basic-distance = 3 } { a1 \break a } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
Hi Joram, what is the reason that the default margins are so small? I would rather say, what is the reason that almost all the defaults (margins, staff size, headers/titles, etc.) are so unattractive? ;) I’m hoping to submit a more attractive set of defaults for consideration, the moment I get my current engraving project done. (That being said, I’ve got a bunch of projects “in air traffic control”, so I may not ever get around to it…) Cheers, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page margins
I agree with Kieren. Page margins are oddly narrow and that maybe due to modern habits or the paper shortages during the wars. But it should definitely be something that is examined more closely. If people are interested I could take some measurements of scores to find out if there is useful pattern more than a rule of thumb as it were. Shane On Sun, Jan 12, 2014 at 7:29 PM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Hi Joram, what is the reason that the default margins are so small? I would rather say, what is the reason that almost all the defaults (margins, staff size, headers/titles, etc.) are so unattractive? ;) I’m hoping to submit a more attractive set of defaults for consideration, the moment I get my current engraving project done. (That being said, I’ve got a bunch of projects “in air traffic control”, so I may not ever get around to it…) Cheers, Kieren. ___ 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: page margins
Hi Shane, I could take some measurements of scores to find out if there is useful pattern more than a rule of thumb as it were. I’ve already got lots of measurements, etc. The problem is getting them into a submittable form… Cheers, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user