[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Absolute size for \epsfile, i.e. independent of global-staff-size
From: |
madMuze |
Subject: |
Re: Absolute size for \epsfile, i.e. independent of global-staff-size |
Date: |
Sun, 27 Apr 2014 18:32:53 -0700 (PDT) |
Greetings, Rutger:
Rather than query the font size, I use a simple calculation on the global
staff size:
In the individual files,
globalSize = 18 % or 20 or 15, or what-you-will
In the file of included definitions (thus always accessible):
mgnStf = #(/ 20 globalSize)
Then the eps file is dealt with as needed:
\epsfile #Y #(* 1 mgnStf) % replacing "1" with the number of staff-spaces
you'd like at size 20
#"your eps file.eps"
===BONUS===
The mgnStf concept is also handy for text positioning within a markup:
\translate #(cons 0 (* mgnStf -3)) % for instance
Not as elegant as an equivalent to "\abs-fontsize", but maybe it'll get you
by...
David
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Absolute-size-for-epsfile-i-e-independent-of-global-staff-size-tp161872p161878.html
Sent from the User mailing list archive at Nabble.com.