Jean-Marc Lasgouttes wrote:
> ...I do not think that we should entice people to always use explicit lengths 
> (centimeters, inches...). Most of the cases, a percentage of column width or 
> text width is more appropriate IMO. Are people going to get a ruler and 
> measure the size they want?
>   
This raises a question that occurred to me a couple days ago. In LaTeX,
one can have this:
    \includegraphics[width=0.5\textwidth]{/home/rgheck/files/graphics/test}
Or better yet, and with obvious reason:
    \includegraphics[height=\baselineskip]{/home/rgheck/files/graphics/test}
You can't do this in LyX right now because the Width and Height fields
are tied to a validator that expects to see something that looks like an
explicit length. Moreover, the lengths are stored in LyXLength which
won't accept anything like that.

Of course, one can get those specific settings using the "Text Width %",
etc, dimensions. But advanced users might appreciate the flexibility
LaTeX offers here. One option would be to add to LengthCombo another
choice, like "[literal]", and allow the (advanced) user to enter
anything he or she desires.

I do NOT propose to try to address this immediately. We need some kind
of functional graphics dialog sooner rather than later (the one in
1.5beta1 is broken). Making the mentioned changes will involve changes
not only to the validators but to the LyXLength class as well, and it's
likely similar functionality will be wanted in some but not all other
cases. But if it seems to people that this is worth doing, I'd be happy
to focus some effort on it in the hope of getting it done before too
long. I've thought about it enough---I woke up at 3am last night and
couldn't get back to sleep---that I know pretty well what needs doing.

Richard

-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to