Re: mathed question

2004-04-07 Thread Andre Poenitz
On Wed, Apr 07, 2004 at 01:38:45PM +0100, Angus Leeming wrote: > > No, notifyCursorLeaves should be the place. However, I am pretty > > sure this is almost never called when necessary. So every place > > modifying the 'real' cursor (there aren't too many of them, the > > MOUSE lfuns and Cursor/Buff

Re: mathed question

2004-04-07 Thread Angus Leeming
Andre Poenitz wrote: > On Tue, Apr 06, 2004 at 10:49:43PM +0100, Angus Leeming wrote: >> Andre, >> >> the trigger used to generate a preview of a math inset is the >> cursor leaving the inset. In the old world I used this: >> >> void InsetFormulaBase::insetUnlock(BufferView * bv) >> { >>

Re: mathed question

2004-04-07 Thread Andre Poenitz
On Tue, Apr 06, 2004 at 10:49:43PM +0100, Angus Leeming wrote: > Andre, > > the trigger used to generate a preview of a math inset is the cursor > leaving the inset. In the old world I used this: > > void InsetFormulaBase::insetUnlock(BufferView * bv) > { > if (mathcursor) { >

mathed question

2004-04-06 Thread Angus Leeming
Andre, the trigger used to generate a preview of a math inset is the cursor leaving the inset. In the old world I used this: void InsetFormulaBase::insetUnlock(BufferView * bv) { if (mathcursor) { if (mathcursor->inMacroMode()) mathcursor->macroMod

Re: Mathed question

2003-10-10 Thread Andre Poenitz
On Fri, Oct 10, 2003 at 12:10:29AM +, Angus Leeming wrote: > Angus Leeming wrote: > > > André, how does InsetFormula know when it is being edited? > > Is the test below correct? > > > > void InsetFormula::draw(PainterInfo & pi, int x, int y) const > > { > > // The previews are updated/drawn o

Re: Mathed question

2003-10-10 Thread Andre Poenitz
On Thu, Oct 09, 2003 at 10:53:51PM +, Angus Leeming wrote: > André, how does InsetFormula know when it is being edited? The current idiom is to test for mathcursor && mathcursor->formula() == SomeInsetFormulaBasePointer Far from nice, though. > Is the test below correct? > > void InsetF

Re: Mathed question

2003-10-09 Thread Angus Leeming
Angus Leeming wrote: > André, how does InsetFormula know when it is being edited? > Is the test below correct? > > void InsetFormula::draw(PainterInfo & pi, int x, int y) const > { > // The previews are updated/drawn only when we're not editing the > inset. bool const editing_inset = mathcursor &

Mathed question

2003-10-09 Thread Angus Leeming
André, how does InsetFormula know when it is being edited? Is the test below correct? void InsetFormula::draw(PainterInfo & pi, int x, int y) const { // The previews are updated/drawn only when we're not editing the inset. bool const editing_inset = mathcursor && mathcursor->formu

Mathed question

2002-12-20 Thread Dekel Tsur
What is "eufrak" in math_font_available ? (there is no \eufrak command) If it is needed, why is it different than mathfrak (which is handled in math_support.C ?

Re: mathed question

2002-03-21 Thread Angus Leeming
On Thursday 21 March 2002 4:47 pm, Andre Poenitz wrote: > On Thu, Mar 21, 2002 at 04:42:37PM +, Angus Leeming wrote: > > ps. I do this because I redefine \bmath in the latex preamble as a bit of > > \mbox{\boldmath $#1$ \unboldmath} magic to get bold lowercase greek > > letters. > > I thought

Re: mathed question

2002-03-21 Thread Andre Poenitz
On Thu, Mar 21, 2002 at 04:42:37PM +, Angus Leeming wrote: > Ok. I see this too. (And thanks for this instant replies. I have just > upgraded to use the fix to math_cursor.C). However, if I have a new command > > \begin_inset FormulaMacro > \newcommand{\Vector}[1]{\bmath{#1}} > > \end_inset

Re: mathed question

2002-03-21 Thread Angus Leeming
On Thursday 21 March 2002 4:08 pm, Andre Poenitz wrote: > On Thu, Mar 21, 2002 at 03:55:31PM +, Angus Leeming wrote: > > > \newcommand{\bmath}[1]{\mathbf{#1}} > > > > > > select it, and press > > > > Ok. So there's no way of doing this within mathed. Fair enough. > > That is - none that I a

Re: mathed question

2002-03-21 Thread Andre Poenitz
On Thu, Mar 21, 2002 at 03:55:31PM +, Angus Leeming wrote: > Ok. So there's no way of doing this within mathed. Fair enough. Do a cvs update & type '\mathbf #1' Andre' -- André Pönitz .. [EMAIL PROTECTED]

Re: mathed question

2002-03-21 Thread Andre Poenitz
On Thu, Mar 21, 2002 at 03:55:31PM +, Angus Leeming wrote: > > > > \newcommand{\bmath}[1]{\mathbf{#1}} > > > > select it, and press > > Ok. So there's no way of doing this within mathed. Fair enough. That is - none that I am aware of... > Ie, wrapping the font change inside the macro mea

Re: mathed question

2002-03-21 Thread Angus Leeming
On Thursday 21 March 2002 3:43 pm, Andre Poenitz wrote: > On Thu, Mar 21, 2002 at 03:18:17PM +, Angus Leeming wrote: > > André, how do I create a macro, so, within mathed? > > > > \begin_inset FormulaMacro > > \newcommand{\bmath}[1]{\mathbf{#1}} > > Type > > \newcommand{\bmath}[1]{\mathbf{#1

Re: mathed question

2002-03-21 Thread Andre Poenitz
On Thu, Mar 21, 2002 at 03:18:17PM +, Angus Leeming wrote: > André, how do I create a macro, so, within mathed? > > \begin_inset FormulaMacro > \newcommand{\bmath}[1]{\mathbf{#1}} Type \newcommand{\bmath}[1]{\mathbf{#1}} select it, and press > I can also edit the lyx file to create th

Re: mathed question

2002-03-21 Thread Angus Leeming
On Thursday 21 March 2002 3:18 pm, Angus Leeming wrote: > André, how do I create a macro, so, within mathed? > > \begin_inset FormulaMacro > \newcommand{\bmath}[1]{\mathbf{#1}} > > \end_inset > > I can create a macro mathbf{A} by typing \mathbf_A_, where _ is a space, > but this doesn't work with

mathed question

2002-03-21 Thread Angus Leeming
André, how do I create a macro, so, within mathed? \begin_inset FormulaMacro \newcommand{\bmath}[1]{\mathbf{#1}} \end_inset I can create a macro mathbf{A} by typing \mathbf_A_, where _ is a space, but this doesn't work with #1. I can also edit the lyx file to create the macro I want, and this

Re: mathed question

2002-01-11 Thread Andre Poenitz
On Fri, Jan 11, 2002 at 02:02:49PM +, Angus Leeming wrote: > > > enum Code or equivalent in math_inset.h. Perhaps you have another way? > > Well, I found the appropriate identifier, but unfortuately you haven't > overloaded! > > mathed/math_charinset.h:50: MathTextCodes code() const { r

Re: mathed question

2002-01-11 Thread Angus Leeming
On Friday 11 January 2002 1:33 pm, Andre Poenitz wrote: > On Fri, Jan 11, 2002 at 01:24:11PM +, Angus Leeming wrote: > > My question is this. Is there an easy way to ascertain the type of the inset > > from within write(MathArray const & dat, WriteStream & wi)? I can't see any > > enum Cod

Re: mathed question

2002-01-11 Thread Andre Poenitz
On Fri, Jan 11, 2002 at 01:24:11PM +, Angus Leeming wrote: > My question is this. Is there an easy way to ascertain the type of the inset > from within write(MathArray const & dat, WriteStream & wi)? I can't see any > enum Code or equivalent in math_inset.h. Perhaps you have another way? Yo

mathed question

2002-01-11 Thread Angus Leeming
André, I've tracked my mathed crash down to a request to insert 1610590944 lines in the exported LaTeX file! The number comes from within a loop in write(MathArray const & dat, WriteStream & wi) Basically, it seems likely that one of the math insets has an uninitialised variable. That'

Re: mathed question

2001-09-05 Thread Jules Bean
On Wed, Sep 05, 2001 at 11:57:43AM +0200, Andre Poenitz wrote: > On Wed, Sep 05, 2001 at 10:45:35AM +0100, Angus Leeming wrote: > > André, this may well be a dumn question, but WHY do we "swallow" the "\" when > > displaying math commands, eg \Diamond. Would it not make your life easier as > > w

Re: mathed question

2001-09-05 Thread Andre Poenitz
On Wed, Sep 05, 2001 at 11:17:17AM +0100, Angus Leeming wrote: > _I_ think so yes. It seems arbitrary to remove a character for no good > reason. Well, the backslash is not part of the token. So it is not explicitly removed at any place. > If LyX "recognises" the symbol, as it appears to do for

Re: mathed question

2001-09-05 Thread Angus Leeming
On Wednesday 05 September 2001 10:57, Andre Poenitz wrote: > On Wed, Sep 05, 2001 at 10:45:35AM +0100, Angus Leeming wrote: > > André, this may well be a dumn question, but WHY do we "swallow" the "\" when > > displaying math commands, eg \Diamond. Would it not make your life easier as > > wel

Re: mathed question

2001-09-05 Thread Andre Poenitz
On Wed, Sep 05, 2001 at 10:45:35AM +0100, Angus Leeming wrote: > André, this may well be a dumn question, but WHY do we "swallow" the "\" when > displaying math commands, eg \Diamond. Would it not make your life easier as > well if the "\" was displayed also. They names are stored internally wi

mathed question

2001-09-05 Thread Angus Leeming
André, this may well be a dumn question, but WHY do we "swallow" the "\" when displaying math commands, eg \Diamond. Would it not make your life easier as well if the "\" was displayed also. Angus