I've been banging my head against this one off and on for quite a while,
and either I'm totally misunderstanding what's supposed to happen, or
there's a problem in LO. I'd appreciate advice please.
The goal is to print music lyrics with chord (text) appropriately
aligned above the lyrics. The ultimate goal is to create the .odt
document programmatically: I'm most of the way there, but the way
positioning works in conjunction with 'anchor to character' has me baffled.
I'm using a frame to hold the chord text, and trying to attach the frame
to a given character below in the lyric line, using 'anchor to
character'. Horizontal position is no bother at all - with the text
centred in the frame, and the frame centred on the lyrics character,
things look good.
However, vertical positioning is another matter. It's not at all clear
what 'bottom', 'top', 'from bottom' (etc) are supposed to do (the help
file is lamentably lacking here). I had supposed that "from bottom"
might allow the distance from the bottom of the frame to some reference
point on the character to be specified, but as I've experimented I've
found little logical relationship. Indeed the character-to-frame
distance can vary with paragraph line spacing even when apparently
nominally "locked" to the character -- not at all what I expected, nor
what I need! What actually happens appears so ill-determined, it's not
even easy to describe.
So, to cut to the real question: how do I "lock" a frame to float just
above a given character in some text, and keep the same relative
position as that character moves and text line spacing changes?
Or have I missed a better (easier!) way of achieving my goal?
I hope that makes some sort of sense!
(Addendum - the GUI only allows up to 200% proportional line spacing in
a paragraph style which isn't enough for my purpose. A quick tweak to
the styles.xml file shows this is purely a gui limitation, and that the
basic LO rendering seems to deal with arbitrarily large ratios - I tried
up to 500%. Any particular reason for the GUI's low limit??)
Mike Scott (unet2 <at> [deletethis] scottsonline.org.uk)
Harlow Essex England
To unsubscribe e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
- [libreoffice-users] anchoring frame to character - problems positioning · Mike Scott
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy