Re: Build-in function drowing

2004-04-15 Thread Martin Vermeer
On Fri, Apr 16, 2004 at 02:29:14AM +0300, [EMAIL PROTECTED] spake thusly: > > To whom it may consern, > > I thought i would be nice if Lyx would have a link to a program witch abell to > drow function, so you wouldnt need to creat the function and export it to eps > or othere format and import it

Build-in function drowing

2004-04-15 Thread shannans
To whom it may consern, I thought i would be nice if Lyx would have a link to a program witch abell to drow function, so you wouldnt need to creat the function and export it to eps or othere format and import it. Hannan

Re: Newbie python questions

2004-04-15 Thread Angus Leeming
Jose' Matos wrote: >> Yes, but it would be more elegant still if I could save the stream >> rather than convert it to a list. Is that possible? > > Use *read* instead of *readlines*: Bingo! Thank you. -- Angus

Re: Newbie python questions

2004-04-15 Thread Jose' Matos
On Thursday 15 April 2004 18:36, Angus Leeming wrote: > > Yes, but it would be more elegant still if I could save the stream > rather than convert it to a list. Is that possible? Notice that you can get information easily from inside a python interpreter: * import sys * we know

Re: Newbie python questions

2004-04-15 Thread Jose' Matos
On Thursday 15 April 2004 18:36, Angus Leeming wrote: > > Elegant, isn't it? ;-) > > Yes, but it would be more elegant still if I could save the stream > rather than convert it to a list. Is that possible? Use *read* instead of *readlines*: read(...) read([size]) -> read at most size byte

Re: Newbie python questions

2004-04-15 Thread Angus Leeming
Jose' Matos wrote: >> def run_command(cmd): >> handle = os.popen(cmd, 'r') >> cmd_stdout = "" > This is unnecessary, as you overwrite it bellow. Good point. >> cmd_stdout = string.join(handle.readlines()) >> cmd_status = handle.close() >> >> return cmd_status, cmd_stdout >

Re: Newbie python questions

2004-04-15 Thread Jose' Matos
On Thursday 15 April 2004 13:31, Angus Leeming wrote: > Angus Leeming wrote: > > Any clues? > > Answering myself again (bad habit, I know)... > > def run_command(cmd): > handle = os.popen(cmd, 'r') > cmd_stdout = "" This is unnecessary, as you overwrite it bellow. > cmd_stdout = st

Moving previews to use of dvipng

2004-04-15 Thread Angus Leeming
The patch, attached, changes the method used to generate previews from latex->dvi->ps->ppm using latex, dvips, gs and pnmcrop to latex->dvi->png using latex, dvipng The effects of this are three-fold: 1. Much faster rendering of previews. 2. Qt users get a reduced disk usage. 3. Le

Re: [preview-latex-devel] bop-hook warning

2004-04-15 Thread Angus Leeming
On Thursday 15 April 2004 6:21 pm, Jan-Åke Larsson wrote: > David Kastrup wrote: > > Angus Leeming <[EMAIL PROTECTED]> writes: > > > /usr/local/bin/dvipng warning: at (0,-1) unimplemented > > > \special{!userdict begin/bop-hook{/isls false def/vsize 792 > > > def/hsize 612 def}def end}. > > > > > >

Re: Newbie python questions

2004-04-15 Thread Angus Leeming
Angus Leeming wrote: > Any clues? Answering myself again (bad habit, I know)... def run_command(cmd): handle = os.popen(cmd, 'r') cmd_stdout = "" cmd_stdout = string.join(handle.readlines()) cmd_status = handle.close() return cmd_status, cmd_stdout -- Angus

Re: Newbie python questions

2004-04-15 Thread Angus Leeming
Jose, what's the recommended way to grab the stdout from an external program (here dvipng)? dvipng outputs this to stdout: This is dvipng 1.0 Copyright 2002-2004 Jan-?e Larsson [1 depth=1 height=8] [2 depth=5 height=14] [3 depth=5 height=14] [4 depth=5 height=14] [5 depth=4 height=13] [6 depth=4

Re: lyx2lyx status.

2004-04-15 Thread Jose' Matos
On Wednesday 14 April 2004 21:03, Georg Baum wrote: > Am Mittwoch, 14. April 2004 12:01 schrieb Jose' Matos: > > The big changes were comited. Now is the right time make a short > > summary of what has been done and what remains. Your feedback is > > welcome. :-) > > So far I have not been able to