Graphics: file loading problems

2002-04-11 Thread R. Lahaye
Hi, I have attached a tar file that contains an example lyx-file and a graphics file, that hopefully demonstrate the problem. Please start LyX-CVS from beginning (don't use an already running LyX) and open the attached GraphicsTest.lyx, which has "figures/MyGraph.jpg" as a graphics-float inset.

Re: lyx-devel src/frontends/controllers/: ChangeLog ControlGraphic ...

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: > On Thursday 11 April 2002 8:33 pm, Herbert Voss wrote: > >>[EMAIL PROTECTED] wrote: >> >>>Patches: >>> >>>http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/frontends/controller >>>s/ControlGraphics.C?r1=1.31&r2=1.32 >>> >>Angus, without the attached patch files which ar

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread John Levon
On Thu, Apr 11, 2002 at 07:07:48PM +0100, Angus Leeming wrote: > > Received unhandled X11 event > > Type: 0xd Target: 0x35f > > I know little or nothing about such X11 messages. John Levon is the guru! *cough* Anyway, it's just the remnants of the BadWindow xforms bug, it looks like. It c

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 8:08 pm, Herbert Voss wrote: > Angus Leeming wrote: > > I'm looking at it at this instant. I'll address my issues and commit it > > in the next 20 mins or so. > > ok > > Angus, I forgot to ask for the sense of this message: > > Received unhandled X11 event > Type: 0xd Tar

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: > > I'm looking at it at this instant. I'll address my issues and commit it in > the next 20 mins or so. ok Angus, I forgot to ask for the sense of this message: Received unhandled X11 event Type: 0xd Target: 0x35f happens, when applying a graphic from the gui. He

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 7:54 pm, Herbert Voss wrote: > Angus Leeming wrote: > > I've done so. Needless to say I tweaked it a little. I decided that the > > graphics dialog could access the graphics cache direct and not go through > > the inset. > > ok, good idea. > > > Angus, what is with the fo

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: > I've done so. Needless to say I tweaked it a little. I decided that the > graphics dialog could access the graphics cache direct and not go through the > inset. ok, good idea. Angus, what is with the former graphics patch? Herbert -- http://www.lyx.org/help/

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 4:19 pm, Herbert Voss wrote: > Angus Leeming wrote: > > Or call them raw_dimensions and return a pair. Your call. > > please apply. > > Herbert I've done so. Needless to say I tweaked it a little. I decided that the graphics dialog could access the graphics cache direct

Give insets a full Row

2002-04-11 Thread Juergen Vigna
The attached small patch changes LyX's behaviour for NeedFullRow insets in that it does give them ALWAYS the full row for drawing and does not care if there is some indent or depth. IMO this is correct and should be done, also this fixes a few problems we have and makes things easier to handle. C

Re: small mathed annoyance

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 02:55:50PM +0200, Jean-Marc Lasgouttes wrote: > Andre> Maybe our usage patterns differ. > > Don't you use subscripts? Sometimes ;-) Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)

[PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: > > Or call them raw_dimensions and return a pair. Your call. please apply. Herbert -- http://www.lyx.org/help/ Index: src/frontends/controllers/ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-devel/

Re: pre3: cursor misplacement and a cosmetic issue

2002-04-11 Thread Juergen Vigna
On 11-Apr-2002 Juergen Spitzmueller wrote: > if (!isOpen()) { > draw_collapsed(pain, baseline, x); > // x += TEXT_TO_INSET_OFFSET; <-- this one! > return; > } > > But don't ask me why I did this ;-) Well I would say "good spoted" x is already se

Re: [PATCH] Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread Jean-Marc Lasgouttes
> "R" == R Lahaye <[EMAIL PROTECTED]> writes: R> BINGO - thanks Dekel! R> Please apply attached patch. Will do. JMarc

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> R. Lahaye wrote: >> Talking about conversions again: do you know why we have two Grace >> formats listed in Preferences->Conversion->Formats? There is an >> entry for "GRACE" and for "agr". What is the difference between the >>

[PATCH] Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread R. Lahaye
Dekel Tsur wrote: > > On Thu, Apr 11, 2002 at 09:24:12PM +0900, R. Lahaye wrote: > > > I beleive that the solution is to add > > > PassThru 1 > > > > > > to the layouts Author_URL and Author_Email in revtex4.layout > > > > I have modified the line as follows: > > > > [...] > > Style A

Re: small mathed annoyance

2002-04-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Well... it's a fairly fundamental blow to the current Andre> architecture. Indeed. Andre> Getting it compiled should be easy, however. The real problem Andre> will be to get editing and navigation working again, and quite Andre>

Re: pre3: cursor misplacement and a cosmetic issue

2002-04-11 Thread Juergen Spitzmueller
Juergen Vigna wrote: > This is probably because the inset is returning a wrong width. But this > could only be caused by the Painter returning a wrong width for the drawed > button. This is obviously a bug, we have to investigate. Jug, I can fix the cursor placement by commenting out line 570 in

Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread Dekel Tsur
On Thu, Apr 11, 2002 at 09:24:12PM +0900, R. Lahaye wrote: > > I beleive that the solution is to add > > PassThru 1 > > > > to the layouts Author_URL and Author_Email in revtex4.layout > > Dekel, > > I have modified the line as follows: > > [...] > Style Author_Email > PassThru

Re: small mathed annoyance

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 01:46:12PM +0200, Jean-Marc Lasgouttes wrote: > Andre> This would look feasible. And it would actually memory usage a > Andre> bit since a MathAtom is smaller than a MathArray with one > Andre> entry... > > The problem first is to know whether it is desirable :) I cannot g

Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread R. Lahaye
Dekel Tsur wrote: > > On Thu, Apr 11, 2002 at 12:42:59PM +0900, R. Lahaye wrote: > > > > Hi, > > > > I'm using article (REVTeX 4) class layout with up-to-date LyX-CVS. > > > > RevTeX4 allows "Author Email" and "Author URL" insets. > > > > When a tilde (~) appears in one of these insets, it is typ

Re: small mathed annoyance

2002-04-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> So we could reformulate this as: Andre> Currently: Andre> MathFracInset == MathNestInset with two MathArrays Andre> MathArray == vector MathAtom == Andre> smartpointer Andre> Is this what you want: Andre> MathFracInse

Re: Patch to fix #44

2002-04-11 Thread John Levon
On Thu, Apr 11, 2002 at 09:48:32AM +0200, Juergen Vigna wrote: > you're busy (as I am) so I explain it to you another time. Normally LyX put's > the cursor "before" the specified position (there is one exeption). In the > case of a NeedFullRow or displayed inset we want to set the cursor NOT in >

Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread Dekel Tsur
On Thu, Apr 11, 2002 at 12:42:59PM +0900, R. Lahaye wrote: > > Hi, > > I'm using article (REVTeX 4) class layout with up-to-date LyX-CVS. > > RevTeX4 allows "Author Email" and "Author URL" insets. > > When a tilde (~) appears in one of these insets, it is typeset > in the DVI and PostScript ou

Re: small mathed annoyance

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 12:20:08PM +0200, Jean-Marc Lasgouttes wrote: > Yes, probably. This amounts to saying that a matharray is actually a > kind of mathatom. Guess what. We already have MathBraceInset, which are MathNestInsets with a single cell (MathArray) that get written to LaTeX as '{', co

Re: small mathed annoyance

2002-04-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Ok. Currently we have a 'MathArray' which basically is your Andre> 'box inset' and can hold any number of 'MathAtoms' (which are a Andre> sort of smart pointers to other insets) Andre> You suggest using instead some polymorphic s

Re: small mathed annoyance

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 12:06:37PM +0200, Jean-Marc Lasgouttes wrote: > No. Let me rephrase it: a macro argument is a math inset. A math inset > can be any normal inset (for example a single character or a\frac, as > in %a_\frac{a}{b}$, which latex understands perfectly), but it can be > a 'box in

Re: small mathed annoyance

2002-04-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> I certainly would have a look at it if you came up with a Andre> reference implementation. I knew this was eventually coming... Andre> What about \frac? Do I need to have four insets for this then? Andre> \frac12 \frac{11}2 \f

Re: pre3: cursor misplacement and a cosmetic issue

2002-04-11 Thread Juergen Spitzmueller
Juergen Vigna wrote: > On 10-Apr-2002 Juergen Spitzmueller wrote: > > In pre3 (and recent CVS), I get a slightly misplaced cursor after several > > ERT's with space commands ('\,' and '\ '). Testcase and screenshot > > attached. Have a look at the cursor on the word "das". (is this related > > to

Re: small mathed annoyance

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 11:30:51AM +0200, Jean-Marc Lasgouttes wrote: > Andre> How should editing work when you want to change a_i to a_{ij}? > > Using your award-winning (and patent pending) method of selecting the > 'i' and using math-box-insert, which would create a box with i in it. > > Note

center woes

2002-04-11 Thread Andre Poenitz
reLyX translates \begin{figure}[h] \begin{center} \includegraphics[height=0.8172in, width=2.9084in]{Weg3.eps}% \caption{Nonisomorphic trees with four vertices}% \end{center} \end{figure} to something like \begin_float fig \layout Standard \align center \latex latex

Re: small mathed annoyance

2002-04-11 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes: Juergen> On 11-Apr-2002 Jules Bean wrote: >> On Thu, Apr 11, 2002 at 10:46:38AM +0200, Andre Poenitz wrote: >>> Yes, but I don't think I want implement this. We would need a >>> 'stateful cursor' again to distiguish between '{' pressed

Re: small mathed annoyance

2002-04-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Yes, but I don't think I want implement this. We would need a Andre> 'stateful cursor' again to distiguish between '{' pressed or Andre> not, and editing probably would get a mess again. No, an argument would be a single inset ,

Re: small mathed annoyance

2002-04-11 Thread Juergen Vigna
On 11-Apr-2002 Jules Bean wrote: > On Thu, Apr 11, 2002 at 10:46:38AM +0200, Andre Poenitz wrote: >> Yes, but I don't think I want implement this. We would need a 'stateful >> cursor' again to distiguish between '{' pressed or not, and editing >> probably would get a mess again. How should editin

Re: small mathed annoyance

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 09:51:03AM +0100, Jules Bean wrote: > > Yes, but I don't think I want implement this. We would need a 'stateful > > cursor' again to distiguish between '{' pressed or not, and editing > > probably would get a mess again. How should editing work when you want to > > change

Re: small mathed annoyance

2002-04-11 Thread Jules Bean
On Thu, Apr 11, 2002 at 10:46:38AM +0200, Andre Poenitz wrote: > Yes, but I don't think I want implement this. We would need a 'stateful > cursor' again to distiguish between '{' pressed or not, and editing > probably would get a mess again. How should editing work when you want to > change a_i

Re: Mathed: "dot" as empty base is back. Why?

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 05:31:58PM +0900, R. Lahaye wrote: > Do you need another plea? No... hm... th 'if' was still there, but commented out. Don't ask why. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jeffers

Re: small mathed annoyance

2002-04-11 Thread Jules Bean
On Thu, Apr 11, 2002 at 10:29:52AM +0200, Jean-Marc Lasgouttes wrote: > Anyway, I thought about a different thing this morning (for later :). > In mathed you have some macros which only have a scope of one > character (like font changes), while most of them create a box, from > which you have to e

Re: small mathed annoyance

2002-04-11 Thread Andre Poenitz
On Thu, Apr 11, 2002 at 10:29:52AM +0200, Jean-Marc Lasgouttes wrote: > This is not the problem I had in mind. Assume there is a macros \foo > which takes an argument and which for some reason is not known to > mathed. When I type \foo{, I'd like to have the red braces. But > obviously, if I type,

Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread R. Lahaye
Jean-Marc Lasgouttes wrote: > > > "R" == R Lahaye <[EMAIL PROTECTED]> writes: > > R> Any more ideas how to solve this tilde/circum problem ? > > R> It seems to occur only with the "Author Email" and "Auther URL" > R> insets of REVTeX-4 class! > > In what fonts are these email and urls type

Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread Jean-Marc Lasgouttes
> "R" == R Lahaye <[EMAIL PROTECTED]> writes: R> Any more ideas how to solve this tilde/circum problem ? R> It seems to occur only with the "Author Email" and "Auther URL" R> insets of REVTeX-4 class! In what fonts are these email and urls typeset? typewriter? JMarc

Re: Mathed: "dot" as empty base is back. Why?

2002-04-11 Thread R. Lahaye
Andre Poenitz wrote: > > On Tue, Apr 09, 2002 at 11:45:10AM +0900, R. Lahaye wrote: > > In Mathed I found the "dot", indicating empty base, has returned. > > The earlier solution was actually quite cute: the dot was only visible > > when inside the math-environment; once outside, the dot disappear

Re: small mathed annoyance

2002-04-11 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Wed, Apr 10, 2002 at 05:53:25PM +0200, Jean-Marc Lasgouttes Andre> wrote: >> This is not exactly what I had in mind, since for an unknown macro >> (say \foo), I'd still want automatic instertion of braces. >> >> Fell free to te

Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread Herbert Voss
On Thu, 11 Apr 2002, R. Lahaye wrote: > BTW, the patch says: > > case '~': > - os << "\\textasciitilde{}"; > + os << "\\~{}"; // same as \textasciitilde; > column += 16; > Shouldn't both va

Re: Patch to fix #44

2002-04-11 Thread Juergen Vigna
On 10-Apr-2002 Lars Gullik Bjønnes wrote: > I do not like it a lot sinced it introcues a iy() in lyxcursor. what > is this iy really and why is it needed. > Well you did read my comment on bug #44 in lyxbugs, didn't you? But I know you're busy (as I am) so I explain it to you another time. Nor

Re: Tilde-char typeset as "\textasciitilde{}" (with REVTeX 4 class)

2002-04-11 Thread R. Lahaye
Herbert Voss wrote: > > R. Lahaye wrote: > > > I'm using article (REVTeX 4) class layout with up-to-date LyX-CVS. > > > > RevTeX4 allows "Author Email" and "Author URL" insets. > > > > When a tilde (~) appears in one of these insets, it is typeset > > in the DVI and PostScript output as "\textas