[PATCH] Re: Scientific lyxlength?

2004-12-29 Thread Jean-Marc Lasgouttes
1.26.2.3 +++ src/lyxlength.C 29 Dec 2004 15:18:29 - @@ -21,9 +21,6 @@ #include cstdlib #include iomanip -using std::abs; -using std::setprecision; - LyXLength::LyXLength() : val_(0), unit_(LyXLength::UNIT_NONE) {} @@ -60,25 +57,25 @@ string const LyXLength::asLatexString() ostringstream

[PATCH] Re: Scientific lyxlength?

2004-12-29 Thread Jean-Marc Lasgouttes
-r1.26.2.3 lyxlength.C --- src/lyxlength.C 7 Dec 2004 10:48:37 - 1.26.2.3 +++ src/lyxlength.C 29 Dec 2004 15:18:29 - @@ -21,9 +21,6 @@ #include #include -using std::abs; -using std::setprecision; - LyXLength::LyXLength() : val_(0), unit_(LyXLength::UNIT_NONE) {} @@ -60,25 +57,25 @@

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
Stephan == Stephan Witt [EMAIL PROTECTED] writes: Stephan Dear LyX developers, today I managed to configure and compile Stephan latest 1.3.x lyx from CVS. While testing the resulting binary Stephan I detected a minor but serious problem: the lyxlength numbers Stephan will be emitted to tex

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Jean-Marc Lasgouttes wrote: Stephan == Stephan Witt [EMAIL PROTECTED] writes: Stephan Dear LyX developers, today I managed to configure and compile Stephan latest 1.3.x lyx from CVS. While testing the resulting binary Stephan I detected a minor but serious problem: the lyxlength numbers Stephan

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Stephan Witt wrote: Jean-Marc Lasgouttes wrote: Stephan == Stephan Witt [EMAIL PROTECTED] writes: [ snip ] ... and last but not least, the attached example file. Thank you for taking this issue. And now the included graphics... (I forgot it). Regards, Stephan inline: bfs_logo_new.gif

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
Stephan == Stephan Witt [EMAIL PROTECTED] writes: Stephan ... and last but not least, the attached example file. Thanks for the file. I really do not know what happens. Actually I did my testing with 'Spacing above' in paragraph layout, and there a custom value of 140pt does not lead to any

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
>>>>> "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: Stephan> Dear LyX developers, today I managed to configure and compile Stephan> latest 1.3.x lyx from CVS. While testing the resulting binary Stephan> I detected a minor but serious problem: the ly

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Jean-Marc Lasgouttes wrote: "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: Stephan> Dear LyX developers, today I managed to configure and compile Stephan> latest 1.3.x lyx from CVS. While testing the resulting binary Stephan> I detected a minor but serious probl

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Stephan Witt wrote: Jean-Marc Lasgouttes wrote: "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: [ snip ] ... and last but not least, the attached example file. Thank you for taking this issue. And now the included graphics... (I forgot it). Regards, Stephan <>

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
> "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: Stephan> ... and last but not least, the attached example file. Thanks for the file. I really do not know what happens. Actually I did my testing with 'Spacing above' in paragraph layout, and there a custom value of 140pt does not lead

Scientific lyxlength?

2004-12-20 Thread Stephan Witt
Dear LyX developers, today I managed to configure and compile latest 1.3.x lyx from CVS. While testing the resulting binary I detected a minor but serious problem: the lyxlength numbers will be emitted to tex in scientific format when for example pt is the unit. So 140pt will be send to LaTeX

Scientific lyxlength?

2004-12-20 Thread Stephan Witt
Dear LyX developers, today I managed to configure and compile latest 1.3.x lyx from CVS. While testing the resulting binary I detected a minor but serious problem: the lyxlength numbers will be emitted to tex in scientific format when for example pt is the unit. So 140pt will be send to LaTeX

Re: Patch: Fix LyXLength::inPixels

2002-10-24 Thread Dekel Tsur
On Thu, Oct 24, 2002 at 03:07:05PM +0200, Jean-Marc Lasgouttes wrote: Dekel == Dekel Tsur [EMAIL PROTECTED] writes: Dekel Look at the attached file example.lyx The 3 vertical spaces Dekel should have the same length, but they don't. A fix for this bug Dekel is attached. What does this

Re: Patch: Fix LyXLength::inPixels

2002-10-24 Thread Jean-Marc Lasgouttes
Dekel == Dekel Tsur [EMAIL PROTECTED] writes: Dekel On Thu, Oct 24, 2002 at 03:07:05PM +0200, Jean-Marc Lasgouttes Dekel wrote: Dekel == Dekel Tsur [EMAIL PROTECTED] writes: Dekel Look at the attached file example.lyx The 3 vertical spaces Dekel should have the same length, but they don't. A

Re: Patch: Fix LyXLength::inPixels

2002-10-24 Thread Dekel Tsur
On Thu, Oct 24, 2002 at 04:24:40PM +0200, Jean-Marc Lasgouttes wrote: Dekel In the current code, it is not clear what does default_height Dekel mean (default height of what??), and therefore the code return Dekel some arbitrary values which were wrong. I changed the meaning Dekel of this

Re: Patch: Fix LyXLength::inPixels

2002-10-24 Thread Dekel Tsur
On Thu, Oct 24, 2002 at 03:07:05PM +0200, Jean-Marc Lasgouttes wrote: > > "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: > > Dekel> Look at the attached file example.lyx The 3 vertical spaces > Dekel> should have the same length, but they don't. A fix for this bug > Dekel> is attached. >

Re: Patch: Fix LyXLength::inPixels

2002-10-24 Thread Jean-Marc Lasgouttes
> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: Dekel> On Thu, Oct 24, 2002 at 03:07:05PM +0200, Jean-Marc Lasgouttes Dekel> wrote: >> > "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: >> Dekel> Look at the attached file example.lyx The 3 vertical spaces Dekel> should have the same

Re: Patch: Fix LyXLength::inPixels

2002-10-24 Thread Dekel Tsur
On Thu, Oct 24, 2002 at 04:24:40PM +0200, Jean-Marc Lasgouttes wrote: > Dekel> In the current code, it is not clear what does default_height > Dekel> mean (default height of what??), and therefore the code return > Dekel> some arbitrary values which were wrong. I changed the meaning > Dekel> of

Patch: Fix LyXLength::inPixels

2002-10-18 Thread Dekel Tsur
Look at the attached file example.lyx The 3 vertical spaces should have the same length, but they don't. A fix for this bug is attached. #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language american \inputencoding default \fontscheme

Patch: Fix LyXLength::inPixels

2002-10-18 Thread Dekel Tsur
Look at the attached file example.lyx The 3 vertical spaces should have the same length, but they don't. A fix for this bug is attached. #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language american \inputencoding default \fontscheme

Re: empty LyXLength

2002-09-05 Thread Jean-Marc Lasgouttes
Lars Gullik Bjønnes wrote: Would it be possible to use a special unit for this? UNIT_EMPTY or something? Yes, if it does not appear in units popups... Alternatively, a bool would work very well. JMarc

Re: empty LyXLength

2002-09-05 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: Yes, if it does not appear in units popups... Alternatively, a bool would work very well. As you may have noticed, I'm off that discussion because I do not understand much of this. In any case I'll need help on this. I do not even know how a bool LyXLength::empty

Re: empty LyXLength

2002-09-05 Thread Jean-Marc Lasgouttes
Lars Gullik Bjønnes wrote: > Would it be possible to use a "special" unit for this? > > UNIT_EMPTY or something? Yes, if it does not appear in units popups... Alternatively, a bool would work very well. JMarc

Re: empty LyXLength

2002-09-05 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Yes, if it does not appear in units popups... > Alternatively, a bool would work very well. As you may have noticed, I'm off that discussion because I do not understand much of this. In any case I'll need help on this. I do not even know how a bool LyX

empty LyXLength

2002-08-30 Thread Lars Gullik Bjønnes
Would it be possible to use a special unit for this? UNIT_EMPTY or something? -- Lgb

empty LyXLength

2002-08-30 Thread Lars Gullik Bjønnes
Would it be possible to use a "special" unit for this? UNIT_EMPTY or something? -- Lgb

LyXLength

2001-08-21 Thread Andre Poenitz
What is the proper way to get a scrren distance from things like '-1.2ex'? Andre' -- André Pönitz . [EMAIL PROTECTED]

Re: LyXLength

2001-08-21 Thread Herbert Voss
Andre Poenitz wrote: What is the proper way to get a scrren distance from things like '-1.2ex'? you have the screen-fontsize (or not??) than you have -1.2fontsize in pt. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/

Re: LyXLength

2001-08-21 Thread Dekel Tsur
On Tue, Aug 21, 2001 at 11:46:38AM +0200, Herbert Voss wrote: Andre Poenitz wrote: What is the proper way to get a scrren distance from things like '-1.2ex'? you have the screen-fontsize (or not??) than you have -1.2fontsize in pt. -1.2*(lyxfont::ascent('x', font) +

Re: LyXLength

2001-08-21 Thread Juergen Vigna
On 21-Aug-2001 Dekel Tsur wrote: you have the screen-fontsize (or not??) than you have -1.2fontsize in pt. -1.2*(lyxfont::ascent('x', font) + lyxfont::descent('x', font)) Well we have: VSpace(s).inPixels(bv) where s is your lenght-string. Jürgen --

LyXLength

2001-08-21 Thread Andre Poenitz
What is the proper way to get a scrren distance from things like '-1.2ex'? Andre' -- André Pönitz . [EMAIL PROTECTED]

Re: LyXLength

2001-08-21 Thread Herbert Voss
Andre Poenitz wrote: > > What is the proper way to get a scrren distance from things like '-1.2ex'? you have the screen-fontsize (or not??) than you have -1.2 in pt. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/

Re: LyXLength

2001-08-21 Thread Dekel Tsur
On Tue, Aug 21, 2001 at 11:46:38AM +0200, Herbert Voss wrote: > Andre Poenitz wrote: > > > > What is the proper way to get a scrren distance from things like '-1.2ex'? > > you have the screen-fontsize (or not??) than you have > -1.2 in pt. -1.2*(lyxfont::ascent('x', font) +

Re: LyXLength

2001-08-21 Thread Juergen Vigna
On 21-Aug-2001 Dekel Tsur wrote: >> >> you have the screen-fontsize (or not??) than you have >> -1.2 in pt. > > > -1.2*(lyxfont::ascent('x', font) + lyxfont::descent('x', font)) Well we have: VSpace(s).inPixels(bv) where s is your lenght-string. Jürgen --