[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tex-function
From: |
Rune Zedeler |
Subject: |
Re: tex-function |
Date: |
Tue, 20 Mar 2001 17:02:29 +0100 |
Han-Wen Nienhuys wrote:
> > 2nd question: Why is it that you have such a hard time determining the
> > correct length of a piece of TeX? Isn't it possible to ask tex the
> > length of some text?
> yes, but the length also depends on (La)TeX settings, which you would
> also have to specify. Plus that it is wildly inefficient.
Okay, good point.
So what you do is actually to "emulate" tex to determine the correct
length?
It is really a problem for me that math-mode do not get the correct
length.
The bad solution is to left-justify the text (so that the length do not
affect the position) - and then use tex to centre:
\property Lyrics.LyricText \override #'X-extent-callback = #(lambda (gr
ax) '(-2.5 . 2.5))
\makebox[.5\width][r]{foobar}
This fixes the width of the words to 5 stafflines, but it works.
-Rune