LyX and xypic

2005-10-28 Thread H. Peter Gumm
I am using xypic with LyX 1.3.6-1 for Windows.
Angus Leeming kindly showed me how to do this:

  Place usepackage{xy} into the preamble and enter the
  xycode, e.g.
  \xymatrix{A \ar[r] B}
  into the lyx editor, then mark it and hit C-S-m.

This works with most of what I need from xypic, but not with
arrows that are bent upwards or downwards, e.g. when I replace
\ar[r] with
\ar@/^/[r]
or
\ar@/_/[r]
or
\ar@/^1pc/[r]

Somehow, mathed does not interpret these key-sequence
correctly.

Any ideas, what to do ?

H.Peter






LyX and xypic

2005-10-28 Thread H. Peter Gumm
I am using xypic with LyX 1.3.6-1 for Windows.
Angus Leeming kindly showed me how to do this:

  Place usepackage{xy} into the preamble and enter the
  xycode, e.g.
  \xymatrix{A \ar[r] B}
  into the lyx editor, then mark it and hit C-S-m.

This works with most of what I need from xypic, but not with
arrows that are bent upwards or downwards, e.g. when I replace
\ar[r] with
\ar@/^/[r]
or
\ar@/_/[r]
or
\ar@/^1pc/[r]

Somehow, mathed does not interpret these key-sequence
correctly.

Any ideas, what to do ?

H.Peter






LyX and xypic

2005-10-28 Thread H. Peter Gumm
I am using xypic with LyX 1.3.6-1 for Windows.
Angus Leeming kindly showed me how to do this:

  Place usepackage{xy} into the preamble and enter the
  xycode, e.g.
  \xymatrix{A \ar[r] B}
  into the lyx editor, then mark it and hit C-S-m.

This works with most of what I need from xypic, but not with
arrows that are bent upwards or downwards, e.g. when I replace
\ar[r] with
\ar@/^/[r]
or
\ar@/_/[r]
or
\ar@/^1pc/[r]

Somehow, mathed does not interpret these key-sequence
correctly.

Any ideas, what to do ?

H.Peter






Re: LyX and xypic

2005-10-26 Thread Herbert Voss
David L. Johnson wrote:

 On Tue, 25 Oct 2005 13:44:54 +0200 (CEST)
 H. Peter Gumm
 [EMAIL PROTECTED] wrote:
 
 Hi,
 
 is there anyone working with LyX and xypic.
 
 Is there any support, or are there any workarounds
 to see commutative diagrams in their full glory within LyX.
 
 I usually kludge it by using a matrix.  The only problem with that is that
 labels on the arrows need to be finagled to keep the arrow aligned (for a
 horizontal arrow, put a 3x1 submatrix in with the arrow in the center, the
 label on top, and a blank below).  This will be somewhat short of full
 glory; for that you would, I presume, have to do it all in ERT.

use psmatrix of the PSTricks package - http://PSTricks.tug.org

Herbert



Re: LyX and xypic

2005-10-26 Thread Herbert Voss
David L. Johnson wrote:

 On Tue, 25 Oct 2005 13:44:54 +0200 (CEST)
 H. Peter Gumm
 [EMAIL PROTECTED] wrote:
 
 Hi,
 
 is there anyone working with LyX and xypic.
 
 Is there any support, or are there any workarounds
 to see commutative diagrams in their full glory within LyX.
 
 I usually kludge it by using a matrix.  The only problem with that is that
 labels on the arrows need to be finagled to keep the arrow aligned (for a
 horizontal arrow, put a 3x1 submatrix in with the arrow in the center, the
 label on top, and a blank below).  This will be somewhat short of full
 glory; for that you would, I presume, have to do it all in ERT.

use psmatrix of the PSTricks package - http://PSTricks.tug.org

Herbert



Re: LyX and xypic

2005-10-26 Thread Herbert Voss
David L. Johnson wrote:

> On Tue, 25 Oct 2005 13:44:54 +0200 (CEST)
> "H. Peter Gumm"
> <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>> 
>> is there anyone working with LyX and xypic.
>> 
>> Is there any support, or are there any workarounds
>> to see commutative diagrams in their full glory within LyX.
> 
> I usually kludge it by using a matrix.  The only problem with that is that
> labels on the arrows need to be finagled to keep the arrow aligned (for a
> horizontal arrow, put a 3x1 submatrix in with the arrow in the center, the
> label on top, and a blank below).  This will be somewhat short of "full
> glory"; for that you would, I presume, have to do it all in ERT.

use psmatrix of the PSTricks package -> http://PSTricks.tug.org

Herbert



LyX and xypic

2005-10-25 Thread H. Peter Gumm
Hi,

is there anyone working with LyX and xypic.

Is there any support, or are there any workarounds
to see commutative diagrams in their full glory within LyX.

BTW: I need to work in the native Windows-version of LyX

Thanks,
Peter




Re: LyX and xypic

2005-10-25 Thread David L. Johnson
On Tue, 25 Oct 2005 13:44:54 +0200 (CEST)
H. Peter Gumm [EMAIL PROTECTED] wrote:

 Hi,
 
 is there anyone working with LyX and xypic.
 
 Is there any support, or are there any workarounds
 to see commutative diagrams in their full glory within LyX.

I usually kludge it by using a matrix.  The only problem with that is that
labels on the arrows need to be finagled to keep the arrow aligned (for a
horizontal arrow, put a 3x1 submatrix in with the arrow in the center, the
label on top, and a blank below).  This will be somewhat short of full
glory; for that you would, I presume, have to do it all in ERT.

 -- 

David L. Johnson

   __o   | You will say Christ saith this and the apostles say this; but
 _`\(,_  | what canst  thou say?  -- George Fox.  
(_)/ (_) | 
   


Re: LyX and xypic

2005-10-25 Thread Angus Leeming

H. Peter Gumm wrote:

Hi,
is there anyone working with LyX and xypic.


If memory serves me right, André added some preliminary commutative diagram 
support at some sage. Certainly, mathed contains math_xyarrowinset.{C,h} 
and  math_xymatrixinset.{C,h}.



Is there any support, or are there any workarounds
to see commutative diagrams in their full glory within LyX.
BTW: I need to work in the native Windows-version of LyX


Perhaps you might have a look at LyX's InstantPreview feature 
(http://wiki.lyx.org/LyX/InstantPreview) which displays the content of math 
insets as bitmap images generated by running the snippet of LaTeX through 
the latex compiler. It's still a little kludgy in places but basically 
should work well enough if you install preview.sty from your MiKTeX package 
manager. The script is written in Python so you'll also need Python 
installed. But, I guess you do already... The script simply calls latex, 
dvips gs and optionally, one or two of the netpbm utilities; have a look at 
scripts/lyxpreview2bitmap.py in the LyX support directory.


Regards,
Angus





LyX and xypic

2005-10-25 Thread H. Peter Gumm
Hi,

is there anyone working with LyX and xypic.

Is there any support, or are there any workarounds
to see commutative diagrams in their full glory within LyX.

BTW: I need to work in the native Windows-version of LyX

Thanks,
Peter




Re: LyX and xypic

2005-10-25 Thread David L. Johnson
On Tue, 25 Oct 2005 13:44:54 +0200 (CEST)
H. Peter Gumm [EMAIL PROTECTED] wrote:

 Hi,
 
 is there anyone working with LyX and xypic.
 
 Is there any support, or are there any workarounds
 to see commutative diagrams in their full glory within LyX.

I usually kludge it by using a matrix.  The only problem with that is that
labels on the arrows need to be finagled to keep the arrow aligned (for a
horizontal arrow, put a 3x1 submatrix in with the arrow in the center, the
label on top, and a blank below).  This will be somewhat short of full
glory; for that you would, I presume, have to do it all in ERT.

 -- 

David L. Johnson

   __o   | You will say Christ saith this and the apostles say this; but
 _`\(,_  | what canst  thou say?  -- George Fox.  
(_)/ (_) | 
   


Re: LyX and xypic

2005-10-25 Thread Angus Leeming

H. Peter Gumm wrote:

Hi,
is there anyone working with LyX and xypic.


If memory serves me right, André added some preliminary commutative diagram 
support at some sage. Certainly, mathed contains math_xyarrowinset.{C,h} 
and  math_xymatrixinset.{C,h}.



Is there any support, or are there any workarounds
to see commutative diagrams in their full glory within LyX.
BTW: I need to work in the native Windows-version of LyX


Perhaps you might have a look at LyX's InstantPreview feature 
(http://wiki.lyx.org/LyX/InstantPreview) which displays the content of math 
insets as bitmap images generated by running the snippet of LaTeX through 
the latex compiler. It's still a little kludgy in places but basically 
should work well enough if you install preview.sty from your MiKTeX package 
manager. The script is written in Python so you'll also need Python 
installed. But, I guess you do already... The script simply calls latex, 
dvips gs and optionally, one or two of the netpbm utilities; have a look at 
scripts/lyxpreview2bitmap.py in the LyX support directory.


Regards,
Angus





LyX and xypic

2005-10-25 Thread H. Peter Gumm
Hi,

is there anyone working with LyX and xypic.

Is there any support, or are there any workarounds
to see commutative diagrams in their full glory within LyX.

BTW: I need to work in the native Windows-version of LyX

Thanks,
Peter




Re: LyX and xypic

2005-10-25 Thread David L. Johnson
On Tue, 25 Oct 2005 13:44:54 +0200 (CEST)
"H. Peter Gumm" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> is there anyone working with LyX and xypic.
> 
> Is there any support, or are there any workarounds
> to see commutative diagrams in their full glory within LyX.

I usually kludge it by using a matrix.  The only problem with that is that
labels on the arrows need to be finagled to keep the arrow aligned (for a
horizontal arrow, put a 3x1 submatrix in with the arrow in the center, the
label on top, and a blank below).  This will be somewhat short of "full
glory"; for that you would, I presume, have to do it all in ERT.

 -- 

David L. Johnson

   __o   | You will say Christ saith this and the apostles say this; but
 _`\(,_  | what canst  thou say?  -- George Fox.  
(_)/ (_) | 
   


Re: LyX and xypic

2005-10-25 Thread Angus Leeming

H. Peter Gumm wrote:

Hi,
is there anyone working with LyX and xypic.


If memory serves me right, André added some preliminary commutative diagram 
support at some sage. Certainly, mathed contains math_xyarrowinset.{C,h} 
and  math_xymatrixinset.{C,h}.



Is there any support, or are there any workarounds
to see commutative diagrams in their full glory within LyX.
BTW: I need to work in the native Windows-version of LyX


Perhaps you might have a look at LyX's InstantPreview feature 
(http://wiki.lyx.org/LyX/InstantPreview) which displays the content of math 
insets as bitmap images generated by running the snippet of LaTeX through 
the latex compiler. It's still a little kludgy in places but basically 
should work well enough if you install preview.sty from your MiKTeX package 
manager. The script is written in Python so you'll also need Python 
installed. But, I guess you do already... The script simply calls latex, 
dvips gs and optionally, one or two of the netpbm utilities; have a look at 
scripts/lyxpreview2bitmap.py in the LyX support directory.


Regards,
Angus