I read this as saying that a Formula inset in a lyx file in lyxformat 216
should not contain any line breaks. Correct?
def merge_formula_inset(lines):
i=0
while 1:
i = find_token(lines, \\begin_inset Formula, i)
if i == -1: break
if lines[i+1] in math_env:
On Wednesday 05 February 2003 13:53, Angus Leeming wrote:
I read this as saying that a Formula inset in a lyx file in lyxformat 216
should not contain any line breaks. Correct?
Yes.
Although this looks sloppy code, the idea is to be able to user older python
versions. If I could use python
José Matos wrote:
On Wednesday 05 February 2003 13:53, Angus Leeming wrote:
I read this as saying that a Formula inset in a lyx file in lyxformat 216
should not contain any line breaks. Correct?
Yes.
Although this looks sloppy code, the idea is to be able to user older
python
On Wed, Feb 05, 2003 at 01:53:05PM +, Angus Leeming wrote:
I read this as saying that a Formula inset in a lyx file in lyxformat 216
should not contain any line breaks. Correct?
def merge_formula_inset(lines):
i=0
while 1:
i = find_token(lines, \\begin_inset Formula,
On Wednesday 05 February 2003 15:15, Angus Leeming wrote:
def merge_formula_inset(lines):
i=0
while 1:
i = find_token(lines, \\begin_inset Formula, i)
if i == -1: break
if lines[i+1] in math_env:
lines[i] = lines[i] + lines[i+1]
On Wednesday 05 February 2003 15:24, Andre Poenitz wrote:
I read it like that as well, but this is no math parser restriction
as far as I know.
The file is well read with present lyx, but I tried as much as I could to
make a null diff between two consecutives writes of the documents. That
On Wed, Feb 05, 2003 at 03:47:41PM +, José Matos wrote:
On Wednesday 05 February 2003 15:24, Andre Poenitz wrote:
I read it like that as well, but this is no math parser restriction
as far as I know.
The file is well read with present lyx, but I tried as much as I could to
make a
José Matos wrote:
On Wednesday 05 February 2003 15:15, Angus Leeming wrote:
def merge_formula_inset(lines):
i=0
while 1:
i = find_token(lines, \\begin_inset Formula, i)
if i == -1: break
if lines[i+1] in math_env:
lines[i] = lines[i] +
On Wednesday 05 February 2003 16:07, Angus Leeming wrote:
$ cat test_215.lyx | sed 's/\(.\)$/\1X/'
On linux I use cat -E for it, although I could use cat -e and be portable
(since you care ;-).
So, I guess you don't need to do anything and nor do I in this case either.
That is what I
José Matos wrote:
On Wednesday 05 February 2003 16:07, Angus Leeming wrote:
$ cat test_215.lyx | sed 's/\(.\)$/\1X/'
On linux I use cat -E for it, although I could use cat -e and be
portable
(since you care ;-).
chuckle. more a case of don't know better.
--
Angus
I read this as saying that a Formula inset in a lyx file in lyxformat 216
should not contain any line breaks. Correct?
def merge_formula_inset(lines):
i=0
while 1:
i = find_token(lines, "\\begin_inset Formula", i)
if i == -1: break
if lines[i+1] in math_env:
On Wednesday 05 February 2003 13:53, Angus Leeming wrote:
> I read this as saying that a Formula inset in a lyx file in lyxformat 216
> should not contain any line breaks. Correct?
Yes.
Although this looks sloppy code, the idea is to be able to user older python
versions. If I could use
José Matos wrote:
> On Wednesday 05 February 2003 13:53, Angus Leeming wrote:
>> I read this as saying that a Formula inset in a lyx file in lyxformat 216
>> should not contain any line breaks. Correct?
>
> Yes.
> Although this looks sloppy code, the idea is to be able to user older
>
On Wed, Feb 05, 2003 at 01:53:05PM +, Angus Leeming wrote:
> I read this as saying that a Formula inset in a lyx file in lyxformat 216
> should not contain any line breaks. Correct?
>
> def merge_formula_inset(lines):
> i=0
> while 1:
> i = find_token(lines, "\\begin_inset
On Wednesday 05 February 2003 15:15, Angus Leeming wrote:
> >> def merge_formula_inset(lines):
> >> i=0
> >> while 1:
> >> i = find_token(lines, "\\begin_inset Formula", i)
> >> if i == -1: break
> >> if lines[i+1] in math_env:
> >> lines[i] = lines[i] +
On Wednesday 05 February 2003 15:24, Andre Poenitz wrote:
> I read it like that as well, but this is no math parser restriction
> as far as I know.
The file is well read with present lyx, but I tried as much as I could to
make a null diff between two consecutives writes of the documents. That
On Wed, Feb 05, 2003 at 03:47:41PM +, José Matos wrote:
> On Wednesday 05 February 2003 15:24, Andre Poenitz wrote:
> > I read it like that as well, but this is no math parser restriction
> > as far as I know.
>
> The file is well read with present lyx, but I tried as much as I could to
>
José Matos wrote:
> On Wednesday 05 February 2003 15:15, Angus Leeming wrote:
>> >> def merge_formula_inset(lines):
>> >> i=0
>> >> while 1:
>> >> i = find_token(lines, "\\begin_inset Formula", i)
>> >> if i == -1: break
>> >> if lines[i+1] in math_env:
>> >>
On Wednesday 05 February 2003 16:07, Angus Leeming wrote:
> $ cat test_215.lyx | sed 's/\(.\)$/\1X/'
On linux I use cat -E for it, although I could use cat -e and be portable
(since you care ;-).
> So, I guess you don't need to do anything and nor do I in this case either.
That is what I
José Matos wrote:
> On Wednesday 05 February 2003 16:07, Angus Leeming wrote:
>> $ cat test_215.lyx | sed 's/\(.\)$/\1X/'
>
> On linux I use cat -E for it, although I could use cat -e and be
> portable
> (since you care ;-).
chuckle. more a case of don't know better.
--
Angus
20 matches
Mail list logo