lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preview (-d flag) padding


From: Curt
Subject: Re: preview (-d flag) padding
Date: Fri, 7 Dec 2012 00:14:56 -0800

Thanks, it looks like the minimum-Y-extent is working nicely!  Is there a similar setting for adding horizontal padding?  minimum-X-extent didn't seem to do anything.

As for markup, at the bottom of this email (below quoted material) is an example.  (I took out the inlay stuff for brevity.)  I'm trying to figure out how to give it more horizontal padding.  Guitar fretboards are supposed to have that thicker line on the left, but it cuts half of it off so it looks like a normal fret line.  I had to do the fretboard as markup since it's not attached to a staff.  I suppose I could always attach it to an invisible staff if need be but that seemed like overkill.  :-)

Curt

On Dec 6, 2012, at 9:06 AM, Eluze <address@hidden> wrote:

Curt Siffert wrote
Is it at all possible to manually add a few pixels of padding to -dpreview
?  

I am regularly running into problems with a few pixels of an image being
cut off.  I've reported a bug
(https://code.google.com/p/lilypond/issues/detail?id=2968) but since it
appears this issue has existed in some form or another for many years now,
I don't have high hopes that it will be resolved soon.  So I'm just
looking for a way to work around it manually in the meantime.  Hopefully
something that will work in a wide variety of snippets - some of my mine
have only \markup code (no staves).

you can try sth like

\override Clef #'[minimum-]Y-extent = #'(-5 . 3.5) for staves.

for markups I did not find any problems - can you give an example!?

Eluze



--
View this message in context: http://lilypond.1069038.n5.nabble.com/preview-d-flag-padding-tp137044p137274.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

\version "2.16.00"
\include "english.ly"

\paper{                                                                                                                                      
  indent=0\cm                                                                                                                                
  line-width=120\mm                                                                                                                          
  oddFooterMarkup=##f                                                                                                                        
  oddHeaderMarkup=##f                                                                                                                        
  bookTitleMarkup = ##f                                                                                                                      
  scoreTitleMarkup = ##f  
  top-margin=12\mm
  left-margin=65\mm                                                                                                                   
}  
#(set-global-staff-size 40)

diagram = \markup {
\override #'(size . 2.0) {
\override #'(fret-diagram-details . (
(dot-color . black)
(finger-code . in-dot)
(dot-label-font-mag . 0.7)
(orientation . landscape)
(fret-count . 12)
(fret-label-vertical-offset . 3)
(xo-font-magnification . 0.3)
))
{
\fret-diagram-verbose #'((place-fret 4 12 "?" inverted ))
}
}
}
\markup \scale #'(1.1 . 1.1){
\diagram
}

        


reply via email to

[Prev in Thread] Current Thread [Next in Thread]