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
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
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
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
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
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
>
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
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
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}.
> > >
> > >
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
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
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
12 matches
Mail list logo