Re: lyxpreview2ppm.py file

2004-09-26 Thread Rob S
Leo;
You should find all the info, links and downloads that you require here:
http://wiki.lyx.org/pmwiki.php/LyX/WindowsSetup
Rob S
L. wrote:
Hello,
I'm trying to set up LyX 1.3.3-Win32 on my computer. I understand that I
need lyxpreview2ppm.py
file in lyx/bin directory to fix instant preview problem with figures.
Can anybody point me to location of the file for download?
Thank you
Leo
 




Re: lyxpreview2ppm.py file

2004-09-26 Thread Angus Leeming
L. wrote:

 Hello,
 
 I'm trying to set up LyX 1.3.3-Win32 on my computer. I understand that I
 need lyxpreview2ppm.py
 file in lyx/bin directory to fix instant preview problem with figures.
 
 Can anybody point me to location of the file for download?

Find info on setting up instant preview here:
http://wiki.lyx.org/pmwiki.php/LyX/InstantPreview

The link to the script itself is:
http://wiki.lyx.org/uploads/LyX/InstantPreview/lyxpreview2ppm.py

I'm not sure exactly how up to date this is. You might prefere to grab the
version that will be released with LyX 1.3.5:
http://www.lyx.org/cgi-bin/viewcvs.cgi/*checkout*/lyx-devel/lib/scripts/Attic/lyxpreview2ppm.py?rev=1.1.2.4only_with_tag=BRANCH_1_3_X
(Equivalent url: http://tinyurl.com/3m8pz)

-- 
Angus



Re: Environment menu stops working

2004-09-26 Thread José Abílio Oliveira Matos
On Sun, Sep 26, 2004 at 12:12:45AM +0200, [EMAIL PROTECTED] wrote:
 
 If I click on various parts of the document after the error occurs, the
 current enviroment is shown there (e.g. Standard or Section) as it
 should and everything else works. The down arrow icon gets marked with
 a rectangle when I click on it but the menu just refuses to show up. The
 only solution I have found at this stage is to restart LyX. To avoid the
 problem from the beginning it seems I must select an item from the menu
 every time, i.e. I don't have the luxary of changing my mind. This is
 annoying.

  It almost looks like you have a window hidden behind your lyx main window.
If you move the lyx window, are you able to see the resulting list of
paragraphs?

  Notice that I never saw this bug with lyx, but your descriptions resembles
a lot other bugs I saw elsewhere. BTW, you are using the qt or the xforms
frontend?

 R List

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


Re: Silly Question :-)

2004-09-26 Thread Jianwei Huang
Thanks for clearing that up.


--- Alfredo Braunstein [EMAIL PROTECTED] wrote:

 Jianwei Huang wrote:
 
  I am a little bit confused. Can I do it with the
  File-Export-Customize instead of configuring
  Edit-preference?
 
 There is no such thing. There is a
 File-Export-Custom, that is intended
 as a quick  dirty way of just pipeing the latex
 file to some custom
 command.
 
 The edit-preferences way may be advisable if you
 want to do it frequently.
 
 Regards, Alfredo
 
 
 


=



Jianwei HUANG

Ph.D. Student

Electrical  Computer Engineering

Northwestern University

Evanston, IL

U.S.A

www.ece.northwestern.edu/~jianweih

 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: jabref push into lyx

2004-09-26 Thread Angus Leeming
On Sunday 26 September 2004 9:40 pm, Heinz-Uwe Hobohm wrote:
 Dear Angus,

 I found a user reporting on a problem using JabRef and Lyx which
 was not discussed to final solution and I have the same (JabRef
 1.5, Lyx 1.3.4, MacOSX10.3.5):

 I inserted a line into my lyxrc.defaults like

 insert a line into the file /Users/uwehobohm/.lyx/lyxrc.defaults
 like this: \lyxserver /Users/uwehobohm/.lyx/pipe
 start Lyx, load a file
 start JabRef
 push button push selection to lyx

 two new files of length zero are generated:
 prw---1 uwehoboh  staff  0 26 Sep 22:29 .lyxpipe.in
 prw---1 uwehoboh  staff  0 26 Sep 22:29 .lyxpipe.out

 and JabRef complains:
 Error: verify that Lyx is running and that the lyxpipe is valid.
 [/Users/uwehobohm/.lyx/lyxpipe]

 Since JabRef seems to be very nice - in particular one can fetch
 Medline entries by simply giving a PubMed-ID and pressing the fetch
 button - I would really like this to be running. Any clue ?

Good evening, Heinz-Uwe.
I'm taking this back to the lyx-users list. Others may find this 
information useful.

As I said in that original thread, the ability of JabRef to 
communicate with LyX depends on whether MacOSX handles FIFOs in a 
manner compatible with the (rather fragile) code in LyX. This is not 
at all certain.

To test, start lyx from the command line with:

$ lyx -dbg lyxserver
Setting debug level to lyxserver
Debugging `lyxserver' (External control interface)
LyXComm: Opening connection
LyXComm: Connection established

As you say, you should find a pair of FIFOs in the appropriate 
location. For me that is:
$ ls -l .lyx-1.3.5cvs/server.{in,out}
prw---  1 angus angus 0 Sep 26 21:51 .lyx-1.3.5cvs/server.in
prw---  1 angus angus 0 Sep 26 21:51 .lyx-1.3.5cvs/server.out

Note the 'p' flag in the first column. These aren't files but rather a 
window into the kernel itself.

LyX expects a certain syntax from external programs trying to 
communicate with it. Initiate a connection by opening another console 
window and type the equivalent of:

$ echo LYXSRV:angus:hello  .lyx-1.3.5cvs/server.in

You should see in the console from which you are running LyX something 
like:
LyXComm: status:19, read_buffer_:, cmd:LYXSRV:angus:hello
LyXServer: Received: 'LYXSRV:angus:hello'
LyXServer: Client: 'angus' Command: 'hello' Argument: ''
LyXServer: Greeting angus
LyXComm: Sending 'LYXSRV:angus:hello'
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

So, we have a connection. Now try and post a command to LyX. Eg
$ echo LYXCMD:angus:file-open UserGuide.lyx  
.lyx-1.3.5cvs/server.in

In the console from which you're running LyX you'll see something 
like:
LyXComm: status:55, read_buffer_:, cmd:LYXCMD:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx
LyXServer: Received: 'LYXCMD:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx'
LyXServer: Client: 'angus' Command: 'file-open 
lyx/devel/lib/doc/UserGuide.lyx' Argument: ''
LyXComm: Sending 'INFO:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx:
'
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

LyX will open the UserGuide.

Finally, close the connection:
$ echo LYXSRV:angus:bye  .lyx-1.3.5cvs/server.in

In the console from which you're running LyX you'll see something 
like:
LyXComm: status:17, read_buffer_:, cmd:LYXSRV:angus:bye
LyXServer: Received: 'LYXSRV:angus:bye'
LyXServer: Client: 'angus' Command: 'bye' Argument: ''
LyXServer: Client angus said goodbye
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

If you get a similar response to your commands from LyX, then MACOSX's 
handling of FIFOs is understandable to LyX. If JabRef can communicate 
with LyX in this manner, then all should 'just work'. Of course, that 
doesn't happen 'by magic'. Someone has to code in the support. I 
don't know whether it exists at the moment. Maybe you should ask the 
JabRef people?

Angus



Re: lyxpreview2ppm.py file

2004-09-26 Thread Rob S
Leo;
You should find all the info, links and downloads that you require here:
http://wiki.lyx.org/pmwiki.php/LyX/WindowsSetup
Rob S
L. wrote:
Hello,
I'm trying to set up LyX 1.3.3-Win32 on my computer. I understand that I
need lyxpreview2ppm.py
file in lyx/bin directory to fix instant preview problem with figures.
Can anybody point me to location of the file for download?
Thank you
Leo
 




Re: lyxpreview2ppm.py file

2004-09-26 Thread Angus Leeming
L. wrote:

 Hello,
 
 I'm trying to set up LyX 1.3.3-Win32 on my computer. I understand that I
 need lyxpreview2ppm.py
 file in lyx/bin directory to fix instant preview problem with figures.
 
 Can anybody point me to location of the file for download?

Find info on setting up instant preview here:
http://wiki.lyx.org/pmwiki.php/LyX/InstantPreview

The link to the script itself is:
http://wiki.lyx.org/uploads/LyX/InstantPreview/lyxpreview2ppm.py

I'm not sure exactly how up to date this is. You might prefere to grab the
version that will be released with LyX 1.3.5:
http://www.lyx.org/cgi-bin/viewcvs.cgi/*checkout*/lyx-devel/lib/scripts/Attic/lyxpreview2ppm.py?rev=1.1.2.4only_with_tag=BRANCH_1_3_X
(Equivalent url: http://tinyurl.com/3m8pz)

-- 
Angus



Re: Environment menu stops working

2004-09-26 Thread José Abílio Oliveira Matos
On Sun, Sep 26, 2004 at 12:12:45AM +0200, [EMAIL PROTECTED] wrote:
 
 If I click on various parts of the document after the error occurs, the
 current enviroment is shown there (e.g. Standard or Section) as it
 should and everything else works. The down arrow icon gets marked with
 a rectangle when I click on it but the menu just refuses to show up. The
 only solution I have found at this stage is to restart LyX. To avoid the
 problem from the beginning it seems I must select an item from the menu
 every time, i.e. I don't have the luxary of changing my mind. This is
 annoying.

  It almost looks like you have a window hidden behind your lyx main window.
If you move the lyx window, are you able to see the resulting list of
paragraphs?

  Notice that I never saw this bug with lyx, but your descriptions resembles
a lot other bugs I saw elsewhere. BTW, you are using the qt or the xforms
frontend?

 R List

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


Re: Silly Question :-)

2004-09-26 Thread Jianwei Huang
Thanks for clearing that up.


--- Alfredo Braunstein [EMAIL PROTECTED] wrote:

 Jianwei Huang wrote:
 
  I am a little bit confused. Can I do it with the
  File-Export-Customize instead of configuring
  Edit-preference?
 
 There is no such thing. There is a
 File-Export-Custom, that is intended
 as a quick  dirty way of just pipeing the latex
 file to some custom
 command.
 
 The edit-preferences way may be advisable if you
 want to do it frequently.
 
 Regards, Alfredo
 
 
 


=



Jianwei HUANG

Ph.D. Student

Electrical  Computer Engineering

Northwestern University

Evanston, IL

U.S.A

www.ece.northwestern.edu/~jianweih

 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: jabref push into lyx

2004-09-26 Thread Angus Leeming
On Sunday 26 September 2004 9:40 pm, Heinz-Uwe Hobohm wrote:
 Dear Angus,

 I found a user reporting on a problem using JabRef and Lyx which
 was not discussed to final solution and I have the same (JabRef
 1.5, Lyx 1.3.4, MacOSX10.3.5):

 I inserted a line into my lyxrc.defaults like

 insert a line into the file /Users/uwehobohm/.lyx/lyxrc.defaults
 like this: \lyxserver /Users/uwehobohm/.lyx/pipe
 start Lyx, load a file
 start JabRef
 push button push selection to lyx

 two new files of length zero are generated:
 prw---1 uwehoboh  staff  0 26 Sep 22:29 .lyxpipe.in
 prw---1 uwehoboh  staff  0 26 Sep 22:29 .lyxpipe.out

 and JabRef complains:
 Error: verify that Lyx is running and that the lyxpipe is valid.
 [/Users/uwehobohm/.lyx/lyxpipe]

 Since JabRef seems to be very nice - in particular one can fetch
 Medline entries by simply giving a PubMed-ID and pressing the fetch
 button - I would really like this to be running. Any clue ?

Good evening, Heinz-Uwe.
I'm taking this back to the lyx-users list. Others may find this 
information useful.

As I said in that original thread, the ability of JabRef to 
communicate with LyX depends on whether MacOSX handles FIFOs in a 
manner compatible with the (rather fragile) code in LyX. This is not 
at all certain.

To test, start lyx from the command line with:

$ lyx -dbg lyxserver
Setting debug level to lyxserver
Debugging `lyxserver' (External control interface)
LyXComm: Opening connection
LyXComm: Connection established

As you say, you should find a pair of FIFOs in the appropriate 
location. For me that is:
$ ls -l .lyx-1.3.5cvs/server.{in,out}
prw---  1 angus angus 0 Sep 26 21:51 .lyx-1.3.5cvs/server.in
prw---  1 angus angus 0 Sep 26 21:51 .lyx-1.3.5cvs/server.out

Note the 'p' flag in the first column. These aren't files but rather a 
window into the kernel itself.

LyX expects a certain syntax from external programs trying to 
communicate with it. Initiate a connection by opening another console 
window and type the equivalent of:

$ echo LYXSRV:angus:hello  .lyx-1.3.5cvs/server.in

You should see in the console from which you are running LyX something 
like:
LyXComm: status:19, read_buffer_:, cmd:LYXSRV:angus:hello
LyXServer: Received: 'LYXSRV:angus:hello'
LyXServer: Client: 'angus' Command: 'hello' Argument: ''
LyXServer: Greeting angus
LyXComm: Sending 'LYXSRV:angus:hello'
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

So, we have a connection. Now try and post a command to LyX. Eg
$ echo LYXCMD:angus:file-open UserGuide.lyx  
.lyx-1.3.5cvs/server.in

In the console from which you're running LyX you'll see something 
like:
LyXComm: status:55, read_buffer_:, cmd:LYXCMD:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx
LyXServer: Received: 'LYXCMD:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx'
LyXServer: Client: 'angus' Command: 'file-open 
lyx/devel/lib/doc/UserGuide.lyx' Argument: ''
LyXComm: Sending 'INFO:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx:
'
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

LyX will open the UserGuide.

Finally, close the connection:
$ echo LYXSRV:angus:bye  .lyx-1.3.5cvs/server.in

In the console from which you're running LyX you'll see something 
like:
LyXComm: status:17, read_buffer_:, cmd:LYXSRV:angus:bye
LyXServer: Received: 'LYXSRV:angus:bye'
LyXServer: Client: 'angus' Command: 'bye' Argument: ''
LyXServer: Client angus said goodbye
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

If you get a similar response to your commands from LyX, then MACOSX's 
handling of FIFOs is understandable to LyX. If JabRef can communicate 
with LyX in this manner, then all should 'just work'. Of course, that 
doesn't happen 'by magic'. Someone has to code in the support. I 
don't know whether it exists at the moment. Maybe you should ask the 
JabRef people?

Angus



Re: lyxpreview2ppm.py file

2004-09-26 Thread Rob S
Leo;
You should find all the info, links and downloads that you require here:
http://wiki.lyx.org/pmwiki.php/LyX/WindowsSetup
Rob S
L. wrote:
Hello,
I'm trying to set up LyX 1.3.3-Win32 on my computer. I understand that I
need lyxpreview2ppm.py
file in lyx/bin directory to fix instant preview problem with figures.
Can anybody point me to location of the file for download?
Thank you
Leo
 




Re: lyxpreview2ppm.py file

2004-09-26 Thread Angus Leeming
L. wrote:

> Hello,
> 
> I'm trying to set up LyX 1.3.3-Win32 on my computer. I understand that I
> need lyxpreview2ppm.py
> file in lyx/bin directory to fix instant preview problem with figures.
> 
> Can anybody point me to location of the file for download?

Find info on setting up instant preview here:
http://wiki.lyx.org/pmwiki.php/LyX/InstantPreview

The link to the script itself is:
http://wiki.lyx.org/uploads/LyX/InstantPreview/lyxpreview2ppm.py

I'm not sure exactly how up to date this is. You might prefere to grab the
version that will be released with LyX 1.3.5:
http://www.lyx.org/cgi-bin/viewcvs.cgi/*checkout*/lyx-devel/lib/scripts/Attic/lyxpreview2ppm.py?rev=1.1.2.4_with_tag=BRANCH_1_3_X
(Equivalent url: http://tinyurl.com/3m8pz)

-- 
Angus



Re: Environment menu stops working

2004-09-26 Thread José Abílio Oliveira Matos
On Sun, Sep 26, 2004 at 12:12:45AM +0200, [EMAIL PROTECTED] wrote:
> 
> If I click on various parts of the document after the error occurs, the
> current enviroment is shown there (e.g. Standard or Section) as it
> should and everything else works. The "down arrow" icon gets marked with
> a rectangle when I click on it but the menu just refuses to show up. The
> only solution I have found at this stage is to restart LyX. To avoid the
> problem from the beginning it seems I must select an item from the menu
> every time, i.e. I don't have the luxary of changing my mind. This is
> annoying.

  It almost looks like you have a window hidden behind your lyx main window.
If you move the lyx window, are you able to see the resulting list of
paragraphs?

  Notice that I never saw this bug with lyx, but your descriptions resembles
a lot other bugs I saw elsewhere. BTW, you are using the qt or the xforms
frontend?

> R List

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


Re: Silly Question :-)

2004-09-26 Thread Jianwei Huang
Thanks for clearing that up.


--- Alfredo Braunstein <[EMAIL PROTECTED]> wrote:

> Jianwei Huang wrote:
> 
> > I am a little bit confused. Can I do it with the
> > File->Export->Customize instead of configuring
> > Edit->preference?
> 
> There is no such thing. There is a
> "File->Export->Custom", that is intended
> as a quick & dirty way of just pipeing the latex
> file to some custom
> command.
> 
> The edit->preferences way may be advisable if you
> want to do it frequently.
> 
> Regards, Alfredo
> 
> 
> 


=



Jianwei HUANG

Ph.D. Student

Electrical & Computer Engineering

Northwestern University

Evanston, IL

U.S.A

www.ece.northwestern.edu/~jianweih

 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: jabref push into lyx

2004-09-26 Thread Angus Leeming
On Sunday 26 September 2004 9:40 pm, Heinz-Uwe Hobohm wrote:
> Dear Angus,
>
> I found a user reporting on a problem using JabRef and Lyx which
> was not discussed to final solution and I have the same (JabRef
> 1.5, Lyx 1.3.4, MacOSX10.3.5):
>
> I inserted a line into my lyxrc.defaults like
>
> insert a line into the file /Users/uwehobohm/.lyx/lyxrc.defaults
> like this: \lyxserver "/Users/uwehobohm/.lyx/pipe"
> start Lyx, load a file
> start JabRef
> push button "push selection to lyx"
>
> two new files of length zero are generated:
> prw---1 uwehoboh  staff  0 26 Sep 22:29 .lyxpipe.in
> prw---1 uwehoboh  staff  0 26 Sep 22:29 .lyxpipe.out
>
> and JabRef complains:
> Error: verify that Lyx is running and that the lyxpipe is valid.
> [/Users/uwehobohm/.lyx/lyxpipe]
>
> Since JabRef seems to be very nice - in particular one can fetch
> Medline entries by simply giving a PubMed-ID and pressing the fetch
> button - I would really like this to be running. Any clue ?

Good evening, Heinz-Uwe.
I'm taking this back to the lyx-users list. Others may find this 
information useful.

As I said in that original thread, the ability of JabRef to 
communicate with LyX depends on whether MacOSX handles FIFOs in a 
manner compatible with the (rather fragile) code in LyX. This is not 
at all certain.

To test, start lyx from the command line with:

$ lyx -dbg lyxserver
Setting debug level to lyxserver
Debugging `lyxserver' (External control interface)
LyXComm: Opening connection
LyXComm: Connection established

As you say, you should find a pair of FIFOs in the appropriate 
location. For me that is:
$ ls -l .lyx-1.3.5cvs/server.{in,out}
prw---  1 angus angus 0 Sep 26 21:51 .lyx-1.3.5cvs/server.in
prw---  1 angus angus 0 Sep 26 21:51 .lyx-1.3.5cvs/server.out

Note the 'p' flag in the first column. These aren't files but rather a 
window into the kernel itself.

LyX expects a certain syntax from external programs trying to 
communicate with it. Initiate a connection by opening another console 
window and type the equivalent of:

$ echo "LYXSRV:angus:hello" > .lyx-1.3.5cvs/server.in

You should see in the console from which you are running LyX something 
like:
LyXComm: status:19, read_buffer_:, cmd:LYXSRV:angus:hello
LyXServer: Received: 'LYXSRV:angus:hello'
LyXServer: Client: 'angus' Command: 'hello' Argument: ''
LyXServer: Greeting angus
LyXComm: Sending 'LYXSRV:angus:hello'
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

So, we have a connection. Now try and post a command to LyX. Eg
$ echo "LYXCMD:angus:file-open UserGuide.lyx" > 
.lyx-1.3.5cvs/server.in

In the console from which you're running LyX you'll see something 
like:
LyXComm: status:55, read_buffer_:, cmd:LYXCMD:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx
LyXServer: Received: 'LYXCMD:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx'
LyXServer: Client: 'angus' Command: 'file-open 
lyx/devel/lib/doc/UserGuide.lyx' Argument: ''
LyXComm: Sending 'INFO:angus:file-open 
lyx/devel/lib/doc/UserGuide.lyx:
'
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

LyX will open the UserGuide.

Finally, close the connection:
$ echo "LYXSRV:angus:bye" > .lyx-1.3.5cvs/server.in

In the console from which you're running LyX you'll see something 
like:
LyXComm: status:17, read_buffer_:, cmd:LYXSRV:angus:bye
LyXServer: Received: 'LYXSRV:angus:bye'
LyXServer: Client: 'angus' Command: 'bye' Argument: ''
LyXServer: Client angus said goodbye
LyXComm: Closing connection
LyXComm: Opening connection
LyXComm: Connection established

If you get a similar response to your commands from LyX, then MACOSX's 
handling of FIFOs is understandable to LyX. If JabRef can communicate 
with LyX in this manner, then all should 'just work'. Of course, that 
doesn't happen 'by magic'. Someone has to code in the support. I 
don't know whether it exists at the moment. Maybe you should ask the 
JabRef people?

Angus