Angus Leeming wrote:
> On Sunday 18 August 2002 3:50 am, Rob Lahaye wrote:
> 
>>Angus Leeming wrote:
>>
>>>On Saturday 17 August 2002 7:05 am, Rob Lahaye wrote:
>>>
>>>>1) Image percentage unit needed for Width/Height output size.
>>>
>>>See xhorms_helpers.h. Do you want "choice_Length_All" rather than
>>>"choice_Length_WithUnit"?
>>
>>In xforms_helpers.h I find:
>>
>>// what we always need for lengths
>>string const choice_Length_All =
>>     "cm|mm|in|text%%|col%%|page%%|line%%|ex|em|pt|sp|bp|dd|pc|cc|mu";
>>string const choice_Length_WithUnit =
>>     "cm|mm|in|ex|em|pt|sp|bp|dd|pc|cc|mu";   // all with a Unit
>>
>>
>>but I need here also something like "image%%". May I add that?
> 
> 
> Not to xforms_helpers. It's used only by FormGraphics, so should go there.

I don't agree (I believe).
I'll have an image% (well actually I renamed it to "scale%"), which
is indeed a unit in FormGraphics, but has an effect on the writing/reading
to/from lyx file, e.g. "width 60scale%", and the translation in the
export-to-latex-options as "scale=0.6,".
Reading "width 60scale%" from a lyx file, translates this into
"Width [ 60 ] [scale%]" in the dialog.

So I believe that the unit "scale%" is also needed outside FormGraphics.
See, if you like, my patch in
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg43038.html .


>>We need then also a modification of the "enum UNIT" list of "class
>>LyXLength" in lyxlength.[Ch], e.g. one more unit as:
>>
>>              PI, ///< Percent of image
>>
>>If I may add this, the final Output size setting problems are solved.
> 
> 
> Hmmmmm. What do the LaTeX experts say?

I have it in my patch, and it's rather useful; well, at least in way
I deal with it :).

Regards,
Rob.

Reply via email to