Re: Proper URLs from Insert-url

2002-07-12 Thread Bo Peng

Hi, Everyone,

Before lyx1.2.1 fix the problem of getting proper links out of lyx
generated latex file by latex2html, I am using a perl script to
translate lyx URLs to corresponding ERTs as a temporary solution. 

1.  put the following to your preamble:
\usepackage{html}
 \usepackage{url}
 \latex{\renewcommand{\htmladdnormallink}[2]{#1 (\url{#2})}}

as suggest by lyx.org tricks-URLs.

2. Use usual insert URL. (The lyx file will be like \begin_inset
LatexCommånd \url )

3. Save the lyx file and run the following command

perl -pe 's/\\begin_inset LatexCommand \\url\[(.*)\]\{(.*)\}/\\begin_inset ERT\nstatus 
Collapsed\n\n\\layout Standard\n\n\n\\backslash\nhtmladdnormallink\{$1\}\{$2\}\n/gs' 
old.lyx  new.lyx

This basically translate \begin_inset LatexCommand ... to \begin_inset
ERT \htmladdnormallink ... You can open new.lyx to see what is
happening.

4. compile and latex2html new.lyx.


This procedure can be automated by make:


$(TEXFILE): $(LYXFILE)
rm -f /tmp/a.lyx
perl -pe 's/\\begin_inset LatexCommand \\url\[(.*)\]\{(.*)\}/\\begin_inset 
ERT\nstatus Collapsed\n\n\\layout 
Standard\n\n\n\\backslash\nhtmladdnormallink\{$$1\}\{$$2\}\n/gs' ${LYXFILE}  
/tmp/a.lyx
lyx --export latex /tmp/a.lyx  
mv /tmp/a.tex $(TEXFILE)

Note that $$1 will be translated into $1 by make.

Bo  Peng
Department of Statistics
Rice University


On Tue, Jul 09, 2002 at 02:30:11PM +0200, Jean-Marc Lasgouttes wrote:
  Wayan == Wayan  [EMAIL PROTECTED] writes:

 Wayan On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

  Yes, Herbert has a patch (if this is what I think it is). My plan
  was to add that to 1.2.2, but if I find some time next week, I'll
  put it directly in 1.2.1 (which already has too many things in :)

 Wayan When would the 1.2.1 be released?

 I do not know. I have several things that have to go in first, and my
 time is limited. I hope to be able to make advances next week. You can
 see what has been added to 1.2.1 here:
 http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/Attic/status.12x?rev=1.1.2.18

 Feel welcome to grab the cvs and try it out...

 JMarc




Re: Proper URLs from Insert-url

2002-07-12 Thread Bo Peng

Hi, Everyone,

Before lyx1.2.1 fix the problem of getting proper links out of lyx
generated latex file by latex2html, I am using a perl script to
translate lyx URLs to corresponding ERTs as a temporary solution. 

1.  put the following to your preamble:
\usepackage{html}
 \usepackage{url}
 \latex{\renewcommand{\htmladdnormallink}[2]{#1 (\url{#2})}}

as suggest by lyx.org tricks-URLs.

2. Use usual insert URL. (The lyx file will be like \begin_inset
LatexCommånd \url )

3. Save the lyx file and run the following command

perl -pe 's/\\begin_inset LatexCommand \\url\[(.*)\]\{(.*)\}/\\begin_inset ERT\nstatus 
Collapsed\n\n\\layout Standard\n\n\n\\backslash\nhtmladdnormallink\{$1\}\{$2\}\n/gs' 
old.lyx  new.lyx

This basically translate \begin_inset LatexCommand ... to \begin_inset
ERT \htmladdnormallink ... You can open new.lyx to see what is
happening.

4. compile and latex2html new.lyx.


This procedure can be automated by make:


$(TEXFILE): $(LYXFILE)
rm -f /tmp/a.lyx
perl -pe 's/\\begin_inset LatexCommand \\url\[(.*)\]\{(.*)\}/\\begin_inset 
ERT\nstatus Collapsed\n\n\\layout 
Standard\n\n\n\\backslash\nhtmladdnormallink\{$$1\}\{$$2\}\n/gs' ${LYXFILE}  
/tmp/a.lyx
lyx --export latex /tmp/a.lyx  
mv /tmp/a.tex $(TEXFILE)

Note that $$1 will be translated into $1 by make.

Bo  Peng
Department of Statistics
Rice University


On Tue, Jul 09, 2002 at 02:30:11PM +0200, Jean-Marc Lasgouttes wrote:
  Wayan == Wayan  [EMAIL PROTECTED] writes:

 Wayan On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

  Yes, Herbert has a patch (if this is what I think it is). My plan
  was to add that to 1.2.2, but if I find some time next week, I'll
  put it directly in 1.2.1 (which already has too many things in :)

 Wayan When would the 1.2.1 be released?

 I do not know. I have several things that have to go in first, and my
 time is limited. I hope to be able to make advances next week. You can
 see what has been added to 1.2.1 here:
 http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/Attic/status.12x?rev=1.1.2.18

 Feel welcome to grab the cvs and try it out...

 JMarc




Re: Proper URLs from Insert->url

2002-07-12 Thread Bo Peng

Hi, Everyone,

Before lyx1.2.1 fix the problem of getting proper links out of lyx
generated latex file by latex2html, I am using a perl script to
translate lyx URLs to corresponding ERTs as a temporary solution. 

1.  put the following to your preamble:
\usepackage{html}
 \usepackage{url}
 \latex{\renewcommand{\htmladdnormallink}[2]{#1 (\url{#2})}}

as suggest by lyx.org tricks->URLs.

2. Use usual insert URL. (The lyx file will be like \begin_inset
LatexCommånd \url )

3. Save the lyx file and run the following command

perl -pe 's/\\begin_inset LatexCommand \\url\[(.*)\]\{(.*)\}/\\begin_inset ERT\nstatus 
Collapsed\n\n\\layout Standard\n\n\n\\backslash\nhtmladdnormallink\{$1\}\{$2\}\n/gs' 
old.lyx > new.lyx

This basically translate "\begin_inset LatexCommand ..." to "\begin_inset
ERT \htmladdnormallink ..." You can open new.lyx to see what is
happening.

4. compile and latex2html new.lyx.


This procedure can be automated by make:


$(TEXFILE): $(LYXFILE)
rm -f /tmp/a.lyx
perl -pe 's/\\begin_inset LatexCommand \\url\[(.*)\]\{(.*)\}/\\begin_inset 
ERT\nstatus Collapsed\n\n\\layout 
Standard\n\n\n\\backslash\nhtmladdnormallink\{$$1\}\{$$2\}\n/gs' ${LYXFILE} > 
/tmp/a.lyx
lyx --export latex /tmp/a.lyx  
mv /tmp/a.tex $(TEXFILE)

Note that $$1 will be translated into $1 by make.

Bo  Peng
Department of Statistics
Rice University


On Tue, Jul 09, 2002 at 02:30:11PM +0200, Jean-Marc Lasgouttes wrote:
> > "Wayan" == Wayan  <[EMAIL PROTECTED]> writes:

> Wayan> On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

> >> Yes, Herbert has a patch (if this is what I think it is). My plan
> >> was to add that to 1.2.2, but if I find some time next week, I'll
> >> put it directly in 1.2.1 (which already has too many things in :)

> Wayan> When would the 1.2.1 be released?

> I do not know. I have several things that have to go in first, and my
> time is limited. I hope to be able to make advances next week. You can
> see what has been added to 1.2.1 here:
> http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/Attic/status.12x?rev=1.1.2.18

> Feel welcome to grab the cvs and try it out...

> JMarc




Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Andre == Andre Poenitz [EMAIL PROTECTED] writes:

Andre On Thu, Feb 21, 2002 at 02:27:55AM -0600, Fernando Perez wrote:
 On Thu, 21 Feb 2002, Herbert Voss wrote:   :) My point is
 precisely to avoid using ERT if at all possible, and   achieve
 the same effect via Lyx's insert-url. Is such a thing simply  
 not
 
  sorry, you're right. I have this still working in my new  LyX
 1.2.0. It will takes some time until this version comes out.

 So do you mean that 1.2.0 does the right thing? That would be
 great, even if we have to wait a bit for it to come out.

Andre Does this mean you have a patch, Herbert?

Yes, Herbert has a patch (if this is what I think it is). My plan was
to add that to 1.2.2, but if I find some time next week, I'll put it
directly in 1.2.1 (which already has too many things in :)

JMarc



Re: Proper URLs from Insert-url

2002-07-09 Thread Wayan


On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

 Yes, Herbert has a patch (if this is what I think it is). My plan was
 to add that to 1.2.2, but if I find some time next week, I'll put it
 directly in 1.2.1 (which already has too many things in :)

When would the 1.2.1 be released?

Wayan




Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Wayan == Wayan  [EMAIL PROTECTED] writes:

Wayan On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

 Yes, Herbert has a patch (if this is what I think it is). My plan
 was to add that to 1.2.2, but if I find some time next week, I'll
 put it directly in 1.2.1 (which already has too many things in :)

Wayan When would the 1.2.1 be released?

I do not know. I have several things that have to go in first, and my
time is limited. I hope to be able to make advances next week. You can
see what has been added to 1.2.1 here:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/Attic/status.12x?rev=1.1.2.18

Feel welcome to grab the cvs and try it out...

JMarc




Re: Proper URLs from Insert-url

2002-07-09 Thread Roberto Hernandez

Jean-Marc Lasgouttes wrote:
 Andre Does this mean you have a patch, Herbert?
 
 Yes, Herbert has a patch (if this is what I think it is). My plan was
 to add that to 1.2.2, but if I find some time next week, I'll put it
 directly in 1.2.1 (which already has too many things in :)

OK, this brings up a question. I wrote my final project (I think they 
call it diploma in Europe) using LyX 1.1.6fix4. When LyX 1.2.0 was 
released I upgraded. After trying to compile my project with the new 
version, a few things didn't show up right. To name a couple:

1. Figure sizes
2. Minipages
3. ERT Instets created with 1.1.6fix4 became nested insets in 1.2.0 
(which give error messages)

I still haven't gotten around to fixing everything. My question is: will 
there be any new changes in the file format in version 1.2.1 or 1.2.2? 
If so, then I probably shouldn't even bother to fix up my project yet.

Regards,
Roberto




Re: Proper URLs from Insert-url

2002-07-09 Thread Andre Poenitz

On Tue, Jul 09, 2002 at 09:38:50AM -0300, Roberto Hernandez wrote:
 I still haven't gotten around to fixing everything. My question is: will 
 there be any new changes in the file format in version 1.2.1 or 1.2.2? 
 If so, then I probably shouldn't even bother to fix up my project yet.

There should be no file format changes within the 1.2.x series.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Roberto == Roberto Hernandez [EMAIL PROTECTED] writes:

Roberto OK, this brings up a question. I wrote my final project (I
Roberto think they call it diploma in Europe) using LyX 1.1.6fix4.
Roberto When LyX 1.2.0 was released I upgraded. After trying to
Roberto compile my project with the new version, a few things didn't
Roberto show up right. To name a couple:

Roberto 1. Figure sizes 

There have been fixed in this area. Could you describe the problem?

Roberto 2. Minipages 

We have a script to fix this, but do not know yet what to do with it.

Roberto 3. ERT Instets created with 1.1.6fix4 became nested insets in
Roberto 1.2.0 (which give error messages)

Hmm, didn't you report this one? It is not fixed as far as I know.

JMarc

Roberto I still haven't gotten around to fixing everything. My
Roberto question is: will there be any new changes in the file format
Roberto in version 1.2.1 or 1.2.2? If so, then I probably shouldn't
Roberto even bother to fix up my project yet.

There should not be changes in the file format. However, there will be
a few fixes in the reading of 1.1.x files.

Hope this helps.

JMarc



Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Andre == Andre Poenitz [EMAIL PROTECTED] writes:

Andre On Tue, Jul 09, 2002 at 09:38:50AM -0300, Roberto Hernandez
Andre wrote:
 I still haven't gotten around to fixing everything. My question is:
 will there be any new changes in the file format in version 1.2.1
 or 1.2.2? If so, then I probably shouldn't even bother to fix up my
 project yet.

Andre There should be no file format changes within the 1.2.x series.

Except for the functionality that will be (re)added, like floating
figures and maybe this URL stuff.

JMarc



Re: Proper URLs from Insert-url

2002-07-09 Thread [EMAIL PROTECTED]



Original Message:
-
 Roberto == Roberto Hernandez [EMAIL PROTECTED] writes:
 Roberto When LyX 1.2.0 was released I upgraded. After trying to
 Roberto compile my project with the new version, a few things didn't
 Roberto show up right. To name a couple:
 
 Roberto 1. Figure sizes 
 There have been fixed in this area. Could you describe the problem?

Yep, I had figures sized to a certain percentage of the page in 1.1.6 and
that was interpreted as a % of the distance from left to right margin. In
1.2.0 that's interpreted as a % of the page size, so the images are larger.
For example, I put two images side by side in the same float and sized them
to 48% of the page. In 1.2.0 they do not fit side by side and one is
stacked on top of the other.

 Roberto 2. Minipages 
 
 We have a script to fix this, but do not know yet what to do with it.

What does it do? I could try it on my document if that helps...

 Roberto 3. ERT Instets created with 1.1.6fix4 became nested insets in
 Roberto 1.2.0 (which give error messages)
 
 Hmm, didn't you report this one? It is not fixed as far as I know.

I reported it here. Even sent a screenshot. But I got no replies.



 There should not be changes in the file format. However, there will be
 a few fixes in the reading of 1.1.x files.
 
 Hope this helps.

It does, thanks.

Regards,
Roberto


mail2web - Check your email from the web at
http://mail2web.com/ .





Re: Proper URLs from Insert-url

2002-07-09 Thread [EMAIL PROTECTED]

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19517.html

 Roberto 3. ERT Instets created with 1.1.6fix4 became nested insets in
 Roberto 1.2.0 (which give error messages)
 
 Hmm, didn't you report this one? It is not fixed as far as I know.

I reported it here. Even sent a screenshot. But I got no replies.




mail2web - Check your email from the web at
http://mail2web.com/ .





Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Andre == Andre Poenitz [EMAIL PROTECTED] writes:

Andre On Thu, Feb 21, 2002 at 02:27:55AM -0600, Fernando Perez wrote:
 On Thu, 21 Feb 2002, Herbert Voss wrote:   :) My point is
 precisely to avoid using ERT if at all possible, and   achieve
 the same effect via Lyx's insert-url. Is such a thing simply  
 not
 
  sorry, you're right. I have this still working in my new  LyX
 1.2.0. It will takes some time until this version comes out.

 So do you mean that 1.2.0 does the right thing? That would be
 great, even if we have to wait a bit for it to come out.

Andre Does this mean you have a patch, Herbert?

Yes, Herbert has a patch (if this is what I think it is). My plan was
to add that to 1.2.2, but if I find some time next week, I'll put it
directly in 1.2.1 (which already has too many things in :)

JMarc



Re: Proper URLs from Insert-url

2002-07-09 Thread Wayan


On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

 Yes, Herbert has a patch (if this is what I think it is). My plan was
 to add that to 1.2.2, but if I find some time next week, I'll put it
 directly in 1.2.1 (which already has too many things in :)

When would the 1.2.1 be released?

Wayan




Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Wayan == Wayan  [EMAIL PROTECTED] writes:

Wayan On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

 Yes, Herbert has a patch (if this is what I think it is). My plan
 was to add that to 1.2.2, but if I find some time next week, I'll
 put it directly in 1.2.1 (which already has too many things in :)

Wayan When would the 1.2.1 be released?

I do not know. I have several things that have to go in first, and my
time is limited. I hope to be able to make advances next week. You can
see what has been added to 1.2.1 here:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/Attic/status.12x?rev=1.1.2.18

Feel welcome to grab the cvs and try it out...

JMarc




Re: Proper URLs from Insert-url

2002-07-09 Thread Roberto Hernandez

Jean-Marc Lasgouttes wrote:
 Andre Does this mean you have a patch, Herbert?
 
 Yes, Herbert has a patch (if this is what I think it is). My plan was
 to add that to 1.2.2, but if I find some time next week, I'll put it
 directly in 1.2.1 (which already has too many things in :)

OK, this brings up a question. I wrote my final project (I think they 
call it diploma in Europe) using LyX 1.1.6fix4. When LyX 1.2.0 was 
released I upgraded. After trying to compile my project with the new 
version, a few things didn't show up right. To name a couple:

1. Figure sizes
2. Minipages
3. ERT Instets created with 1.1.6fix4 became nested insets in 1.2.0 
(which give error messages)

I still haven't gotten around to fixing everything. My question is: will 
there be any new changes in the file format in version 1.2.1 or 1.2.2? 
If so, then I probably shouldn't even bother to fix up my project yet.

Regards,
Roberto




Re: Proper URLs from Insert-url

2002-07-09 Thread Andre Poenitz

On Tue, Jul 09, 2002 at 09:38:50AM -0300, Roberto Hernandez wrote:
 I still haven't gotten around to fixing everything. My question is: will 
 there be any new changes in the file format in version 1.2.1 or 1.2.2? 
 If so, then I probably shouldn't even bother to fix up my project yet.

There should be no file format changes within the 1.2.x series.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Roberto == Roberto Hernandez [EMAIL PROTECTED] writes:

Roberto OK, this brings up a question. I wrote my final project (I
Roberto think they call it diploma in Europe) using LyX 1.1.6fix4.
Roberto When LyX 1.2.0 was released I upgraded. After trying to
Roberto compile my project with the new version, a few things didn't
Roberto show up right. To name a couple:

Roberto 1. Figure sizes 

There have been fixed in this area. Could you describe the problem?

Roberto 2. Minipages 

We have a script to fix this, but do not know yet what to do with it.

Roberto 3. ERT Instets created with 1.1.6fix4 became nested insets in
Roberto 1.2.0 (which give error messages)

Hmm, didn't you report this one? It is not fixed as far as I know.

JMarc

Roberto I still haven't gotten around to fixing everything. My
Roberto question is: will there be any new changes in the file format
Roberto in version 1.2.1 or 1.2.2? If so, then I probably shouldn't
Roberto even bother to fix up my project yet.

There should not be changes in the file format. However, there will be
a few fixes in the reading of 1.1.x files.

Hope this helps.

JMarc



Re: Proper URLs from Insert-url

2002-07-09 Thread Jean-Marc Lasgouttes

 Andre == Andre Poenitz [EMAIL PROTECTED] writes:

Andre On Tue, Jul 09, 2002 at 09:38:50AM -0300, Roberto Hernandez
Andre wrote:
 I still haven't gotten around to fixing everything. My question is:
 will there be any new changes in the file format in version 1.2.1
 or 1.2.2? If so, then I probably shouldn't even bother to fix up my
 project yet.

Andre There should be no file format changes within the 1.2.x series.

Except for the functionality that will be (re)added, like floating
figures and maybe this URL stuff.

JMarc



Re: Proper URLs from Insert-url

2002-07-09 Thread [EMAIL PROTECTED]



Original Message:
-
 Roberto == Roberto Hernandez [EMAIL PROTECTED] writes:
 Roberto When LyX 1.2.0 was released I upgraded. After trying to
 Roberto compile my project with the new version, a few things didn't
 Roberto show up right. To name a couple:
 
 Roberto 1. Figure sizes 
 There have been fixed in this area. Could you describe the problem?

Yep, I had figures sized to a certain percentage of the page in 1.1.6 and
that was interpreted as a % of the distance from left to right margin. In
1.2.0 that's interpreted as a % of the page size, so the images are larger.
For example, I put two images side by side in the same float and sized them
to 48% of the page. In 1.2.0 they do not fit side by side and one is
stacked on top of the other.

 Roberto 2. Minipages 
 
 We have a script to fix this, but do not know yet what to do with it.

What does it do? I could try it on my document if that helps...

 Roberto 3. ERT Instets created with 1.1.6fix4 became nested insets in
 Roberto 1.2.0 (which give error messages)
 
 Hmm, didn't you report this one? It is not fixed as far as I know.

I reported it here. Even sent a screenshot. But I got no replies.



 There should not be changes in the file format. However, there will be
 a few fixes in the reading of 1.1.x files.
 
 Hope this helps.

It does, thanks.

Regards,
Roberto


mail2web - Check your email from the web at
http://mail2web.com/ .





Re: Proper URLs from Insert-url

2002-07-09 Thread [EMAIL PROTECTED]

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19517.html

 Roberto 3. ERT Instets created with 1.1.6fix4 became nested insets in
 Roberto 1.2.0 (which give error messages)
 
 Hmm, didn't you report this one? It is not fixed as far as I know.

I reported it here. Even sent a screenshot. But I got no replies.




mail2web - Check your email from the web at
http://mail2web.com/ .





Re: Proper URLs from Insert->url

2002-07-09 Thread Jean-Marc Lasgouttes

> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

Andre> On Thu, Feb 21, 2002 at 02:27:55AM -0600, Fernando Perez wrote:
>> On Thu, 21 Feb 2002, Herbert Voss wrote: > > :) My point is
>> precisely to avoid using ERT if at all possible, and > > achieve
>> the same effect via Lyx's insert->url. Is such a thing simply > >
>> not
>> >
>> > sorry, you're right. I have this still working in my new > LyX
>> 1.2.0. It will takes some time until this version comes out.

>> So do you mean that 1.2.0 does the right thing? That would be
>> great, even if we have to wait a bit for it to come out.

Andre> Does this mean you have a patch, Herbert?

Yes, Herbert has a patch (if this is what I think it is). My plan was
to add that to 1.2.2, but if I find some time next week, I'll put it
directly in 1.2.1 (which already has too many things in :)

JMarc



Re: Proper URLs from Insert->url

2002-07-09 Thread Wayan


On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

> Yes, Herbert has a patch (if this is what I think it is). My plan was
> to add that to 1.2.2, but if I find some time next week, I'll put it
> directly in 1.2.1 (which already has too many things in :)

When would the 1.2.1 be released?

Wayan




Re: Proper URLs from Insert->url

2002-07-09 Thread Jean-Marc Lasgouttes

> "Wayan" == Wayan  <[EMAIL PROTECTED]> writes:

Wayan> On 9 Jul 2002, Jean-Marc Lasgouttes wrote:

>> Yes, Herbert has a patch (if this is what I think it is). My plan
>> was to add that to 1.2.2, but if I find some time next week, I'll
>> put it directly in 1.2.1 (which already has too many things in :)

Wayan> When would the 1.2.1 be released?

I do not know. I have several things that have to go in first, and my
time is limited. I hope to be able to make advances next week. You can
see what has been added to 1.2.1 here:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/Attic/status.12x?rev=1.1.2.18

Feel welcome to grab the cvs and try it out...

JMarc




Re: Proper URLs from Insert->url

2002-07-09 Thread Roberto Hernandez

Jean-Marc Lasgouttes wrote:
> Andre> Does this mean you have a patch, Herbert?
> 
> Yes, Herbert has a patch (if this is what I think it is). My plan was
> to add that to 1.2.2, but if I find some time next week, I'll put it
> directly in 1.2.1 (which already has too many things in :)

OK, this brings up a question. I wrote my final project (I think they 
call it "diploma" in Europe) using LyX 1.1.6fix4. When LyX 1.2.0 was 
released I upgraded. After trying to compile my project with the new 
version, a few things didn't show up right. To name a couple:

1. Figure sizes
2. Minipages
3. ERT Instets created with 1.1.6fix4 became nested insets in 1.2.0 
(which give error messages)

I still haven't gotten around to fixing everything. My question is: will 
there be any new changes in the file format in version 1.2.1 or 1.2.2? 
If so, then I probably shouldn't even bother to fix up my project yet.

Regards,
Roberto




Re: Proper URLs from Insert->url

2002-07-09 Thread Andre Poenitz

On Tue, Jul 09, 2002 at 09:38:50AM -0300, Roberto Hernandez wrote:
> I still haven't gotten around to fixing everything. My question is: will 
> there be any new changes in the file format in version 1.2.1 or 1.2.2? 
> If so, then I probably shouldn't even bother to fix up my project yet.

There should be no file format changes within the 1.2.x series.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: Proper URLs from Insert->url

2002-07-09 Thread Jean-Marc Lasgouttes

> "Roberto" == Roberto Hernandez <[EMAIL PROTECTED]> writes:

Roberto> OK, this brings up a question. I wrote my final project (I
Roberto> think they call it "diploma" in Europe) using LyX 1.1.6fix4.
Roberto> When LyX 1.2.0 was released I upgraded. After trying to
Roberto> compile my project with the new version, a few things didn't
Roberto> show up right. To name a couple:

Roberto> 1. Figure sizes 

There have been fixed in this area. Could you describe the problem?

Roberto> 2. Minipages 

We have a script to fix this, but do not know yet what to do with it.

Roberto> 3. ERT Instets created with 1.1.6fix4 became nested insets in
Roberto> 1.2.0 (which give error messages)

Hmm, didn't you report this one? It is not fixed as far as I know.

JMarc

Roberto> I still haven't gotten around to fixing everything. My
Roberto> question is: will there be any new changes in the file format
Roberto> in version 1.2.1 or 1.2.2? If so, then I probably shouldn't
Roberto> even bother to fix up my project yet.

There should not be changes in the file format. However, there will be
a few fixes in the reading of 1.1.x files.

Hope this helps.

JMarc



Re: Proper URLs from Insert->url

2002-07-09 Thread Jean-Marc Lasgouttes

> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

Andre> On Tue, Jul 09, 2002 at 09:38:50AM -0300, Roberto Hernandez
Andre> wrote:
>> I still haven't gotten around to fixing everything. My question is:
>> will there be any new changes in the file format in version 1.2.1
>> or 1.2.2? If so, then I probably shouldn't even bother to fix up my
>> project yet.

Andre> There should be no file format changes within the 1.2.x series.

Except for the functionality that will be (re)added, like floating
figures and maybe this URL stuff.

JMarc



Re: Proper URLs from Insert->url

2002-07-09 Thread [EMAIL PROTECTED]



Original Message:
-
> "Roberto" == Roberto Hernandez <[EMAIL PROTECTED]> writes:
> Roberto> When LyX 1.2.0 was released I upgraded. After trying to
> Roberto> compile my project with the new version, a few things didn't
> Roberto> show up right. To name a couple:
> 
> Roberto> 1. Figure sizes 
> There have been fixed in this area. Could you describe the problem?

Yep, I had figures sized to a certain percentage of the page in 1.1.6 and
that was interpreted as a % of the distance from left to right margin. In
1.2.0 that's interpreted as a % of the page size, so the images are larger.
For example, I put two images side by side in the same float and sized them
to 48% of the page. In 1.2.0 they do not fit side by side and one is
stacked on top of the other.

> Roberto> 2. Minipages 
> 
> We have a script to fix this, but do not know yet what to do with it.

What does it do? I could try it on my document if that helps...

> Roberto> 3. ERT Instets created with 1.1.6fix4 became nested insets in
> Roberto> 1.2.0 (which give error messages)
> 
> Hmm, didn't you report this one? It is not fixed as far as I know.

I reported it here. Even sent a screenshot. But I got no replies.



> There should not be changes in the file format. However, there will be
> a few fixes in the reading of 1.1.x files.
> 
> Hope this helps.

It does, thanks.

Regards,
Roberto


mail2web - Check your email from the web at
http://mail2web.com/ .





Re: Proper URLs from Insert->url

2002-07-09 Thread [EMAIL PROTECTED]

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19517.html

> Roberto> 3. ERT Instets created with 1.1.6fix4 became nested insets in
> Roberto> 1.2.0 (which give error messages)
> 
> Hmm, didn't you report this one? It is not fixed as far as I know.

I reported it here. Even sent a screenshot. But I got no replies.




mail2web - Check your email from the web at
http://mail2web.com/ .





Re: Proper URLs from Insert-url

2002-07-08 Thread Andre Poenitz

On Thu, Feb 21, 2002 at 02:27:55AM -0600, Fernando Perez wrote:
 On Thu, 21 Feb 2002, Herbert Voss wrote:
   :) My point is precisely to avoid using ERT if at all possible, and
   achieve the same effect via Lyx's insert-url. Is such a thing simply
   not
 
  sorry, you're right. I have this still working in my new
  LyX 1.2.0. It will takes some time until this version comes out.

 So do you mean that 1.2.0 does the right thing? That would be great, even if
 we have to wait a bit for it to come out.

Does this mean you have a patch, Herbert?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: Proper URLs from Insert-url

2002-07-08 Thread Andre Poenitz

On Thu, Feb 21, 2002 at 02:27:55AM -0600, Fernando Perez wrote:
 On Thu, 21 Feb 2002, Herbert Voss wrote:
   :) My point is precisely to avoid using ERT if at all possible, and
   achieve the same effect via Lyx's insert-url. Is such a thing simply
   not
 
  sorry, you're right. I have this still working in my new
  LyX 1.2.0. It will takes some time until this version comes out.

 So do you mean that 1.2.0 does the right thing? That would be great, even if
 we have to wait a bit for it to come out.

Does this mean you have a patch, Herbert?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: Proper URLs from Insert->url

2002-07-08 Thread Andre Poenitz

On Thu, Feb 21, 2002 at 02:27:55AM -0600, Fernando Perez wrote:
> On Thu, 21 Feb 2002, Herbert Voss wrote:
> > > :) My point is precisely to avoid using ERT if at all possible, and
> > > achieve the same effect via Lyx's insert->url. Is such a thing simply
> > > not
> >
> > sorry, you're right. I have this still working in my new
> > LyX 1.2.0. It will takes some time until this version comes out.

> So do you mean that 1.2.0 does the right thing? That would be great, even if
> we have to wait a bit for it to come out.

Does this mean you have a patch, Herbert?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: Proper URLs from Insert-url

2002-02-21 Thread Fernando Pérez

On Thu, 21 Feb 2002, Herbert Voss wrote:
  Thanks a lot Herbert, but I had already read that page (should've said so
  :) My point is precisely to avoid using ERT if at all possible, and achieve
  the same effect via Lyx's insert-url. Is such a thing simply not
 
 
 sorry, you're right. I have this still working in my new
 
 LyX 1.2.0. It will takes some time until this version comes out.

So do you mean that 1.2.0 does the right thing? That would be great, even if
we have to wait a bit for it to come out.

thanks,

f




Re: Proper URLs from Insert-url

2002-02-21 Thread Fernando Pérez

On Thu, 21 Feb 2002, Herbert Voss wrote:
  Thanks a lot Herbert, but I had already read that page (should've said so
  :) My point is precisely to avoid using ERT if at all possible, and achieve
  the same effect via Lyx's insert-url. Is such a thing simply not
 
 
 sorry, you're right. I have this still working in my new
 
 LyX 1.2.0. It will takes some time until this version comes out.

So do you mean that 1.2.0 does the right thing? That would be great, even if
we have to wait a bit for it to come out.

thanks,

f




Re: Proper URLs from Insert->url

2002-02-21 Thread Fernando Pérez

On Thu, 21 Feb 2002, Herbert Voss wrote:
> > Thanks a lot Herbert, but I had already read that page (should've said so
> > :) My point is precisely to avoid using ERT if at all possible, and achieve
> > the same effect via Lyx's insert->url. Is such a thing simply not
> 
> 
> sorry, you're right. I have this still working in my new
> 
> LyX 1.2.0. It will takes some time until this version comes out.

So do you mean that 1.2.0 does the right thing? That would be great, even if
we have to wait a bit for it to come out.

thanks,

f




Re: Proper URLs from Insert-url

2002-02-20 Thread Herbert Voss



Fernando Pérez wrote:

 Hi all,
 
 I'm using lyx 1.1.6f4, trying to create a simple document which will be
 exported to html, and I'm havig a problem with urls. If I choose Insert-URL
 and say type:
 
 URL- http://mysite.com/
 Name - Click here
 
 the generated Lyx code looks like
 
 \begin_inset LatexCommand
 my\htmlurl[Click here]{http://mysite.com}
 
 So far so good. The problem is that once lyx exports to latex (so I can run
 latex2html on it) this becomes
 
 Click here \url{http://mysite.com/}
 
 As you can see, the information about 'Click here' being the name of the url
 is gone in the latex, and there's then no way that latex2html will construct a
 properly formed url like:
 
 a href=http://mysite.com/;click here/a
 
 which is what we want (or I guess what the Insert-URL led me to expect, and
 which would make Lyx a great HTML editor for simple documents where you don't
 need fancy layout).
 
 Any solutions to this using Lyx only? I know I can just pop in all the urls
 with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
 url insert seems to do 99% of the job.


try

http://www.lyx.org/help/html/url.php3

Herbert

 


-- 
http://www.lyx.org/help/




Re: Proper URLs from Insert-url

2002-02-20 Thread Fernando Pérez

On Wed, 20 Feb 2002, Herbert Voss wrote:

  Any solutions to this using Lyx only? I know I can just pop in all the urls
  with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
  url insert seems to do 99% of the job.

 try
 
 http://www.lyx.org/help/html/url.php3

Thanks a lot Herbert, but I had already read that page (should've said so
:) My point is precisely to avoid using ERT if at all possible, and achieve
the same effect via Lyx's insert-url. Is such a thing simply not
possible? The inserturl as it stands is sort of a 'misfeature', as it's
*almost* useful but has a crippling limitation, IMHO. It's ok for urls in
text-only, but it seems like a reasonably small change would make it much more
useful. Does this make sense?

Or maybe I'm missing something painfully obvious here, don't know.

Regards,

f.




Re: Proper URLs from Insert-url

2002-02-20 Thread John Levon

On Wed, Feb 20, 2002 at 06:23:38PM -0700, Fernando Pérez wrote:

 the same effect via Lyx's insert-url. Is such a thing simply not
 possible? The inserturl as it stands is sort of a 'misfeature', as it's
 *almost* useful but has a crippling limitation, IMHO. It's ok for urls in

I assume it's possible, if you like you can open an enhancement bug
for this at http://bugzilla.lyx.org/

regards
john

-- 
They eat cold meat for breakfast and make jokes about gzip.
- Rik Hemsley on KDE developers



Re: Proper URLs from Insert-url

2002-02-20 Thread Herbert Voss

Fernando Pérez wrote:

 On Wed, 20 Feb 2002, Herbert Voss wrote:
 
 
Any solutions to this using Lyx only? I know I can just pop in all the urls
with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
url insert seems to do 99% of the job.


 Thanks a lot Herbert, but I had already read that page (should've said so
 :) My point is precisely to avoid using ERT if at all possible, and achieve
 the same effect via Lyx's insert-url. Is such a thing simply not


sorry, you're right. I have this still working in my new

LyX 1.2.0. It will takes some time until this version comes out.

Herbert



-- 
http://www.lyx.org/help/




Re: Proper URLs from Insert-url

2002-02-20 Thread Herbert Voss



Fernando Pérez wrote:

 Hi all,
 
 I'm using lyx 1.1.6f4, trying to create a simple document which will be
 exported to html, and I'm havig a problem with urls. If I choose Insert-URL
 and say type:
 
 URL- http://mysite.com/
 Name - Click here
 
 the generated Lyx code looks like
 
 \begin_inset LatexCommand
 my\htmlurl[Click here]{http://mysite.com}
 
 So far so good. The problem is that once lyx exports to latex (so I can run
 latex2html on it) this becomes
 
 Click here \url{http://mysite.com/}
 
 As you can see, the information about 'Click here' being the name of the url
 is gone in the latex, and there's then no way that latex2html will construct a
 properly formed url like:
 
 a href=http://mysite.com/;click here/a
 
 which is what we want (or I guess what the Insert-URL led me to expect, and
 which would make Lyx a great HTML editor for simple documents where you don't
 need fancy layout).
 
 Any solutions to this using Lyx only? I know I can just pop in all the urls
 with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
 url insert seems to do 99% of the job.


try

http://www.lyx.org/help/html/url.php3

Herbert

 


-- 
http://www.lyx.org/help/




Re: Proper URLs from Insert-url

2002-02-20 Thread Fernando Pérez

On Wed, 20 Feb 2002, Herbert Voss wrote:

  Any solutions to this using Lyx only? I know I can just pop in all the urls
  with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
  url insert seems to do 99% of the job.

 try
 
 http://www.lyx.org/help/html/url.php3

Thanks a lot Herbert, but I had already read that page (should've said so
:) My point is precisely to avoid using ERT if at all possible, and achieve
the same effect via Lyx's insert-url. Is such a thing simply not
possible? The inserturl as it stands is sort of a 'misfeature', as it's
*almost* useful but has a crippling limitation, IMHO. It's ok for urls in
text-only, but it seems like a reasonably small change would make it much more
useful. Does this make sense?

Or maybe I'm missing something painfully obvious here, don't know.

Regards,

f.




Re: Proper URLs from Insert-url

2002-02-20 Thread John Levon

On Wed, Feb 20, 2002 at 06:23:38PM -0700, Fernando Pérez wrote:

 the same effect via Lyx's insert-url. Is such a thing simply not
 possible? The inserturl as it stands is sort of a 'misfeature', as it's
 *almost* useful but has a crippling limitation, IMHO. It's ok for urls in

I assume it's possible, if you like you can open an enhancement bug
for this at http://bugzilla.lyx.org/

regards
john

-- 
They eat cold meat for breakfast and make jokes about gzip.
- Rik Hemsley on KDE developers



Re: Proper URLs from Insert-url

2002-02-20 Thread Herbert Voss

Fernando Pérez wrote:

 On Wed, 20 Feb 2002, Herbert Voss wrote:
 
 
Any solutions to this using Lyx only? I know I can just pop in all the urls
with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
url insert seems to do 99% of the job.


 Thanks a lot Herbert, but I had already read that page (should've said so
 :) My point is precisely to avoid using ERT if at all possible, and achieve
 the same effect via Lyx's insert-url. Is such a thing simply not


sorry, you're right. I have this still working in my new

LyX 1.2.0. It will takes some time until this version comes out.

Herbert



-- 
http://www.lyx.org/help/




Re: Proper URLs from Insert->url

2002-02-20 Thread Herbert Voss



Fernando Pérez wrote:

> Hi all,
> 
> I'm using lyx 1.1.6f4, trying to create a simple document which will be
> exported to html, and I'm havig a problem with urls. If I choose Insert->URL
> and say type:
> 
> URL-> http://mysite.com/
> Name -> Click here
> 
> the generated Lyx code looks like
> 
> \begin_inset LatexCommand
> my\htmlurl[Click here]{http://mysite.com}
> 
> So far so good. The problem is that once lyx exports to latex (so I can run
> latex2html on it) this becomes
> 
> Click here \url{http://mysite.com/}
> 
> As you can see, the information about 'Click here' being the name of the url
> is gone in the latex, and there's then no way that latex2html will construct a
> properly formed url like:
> 
> http://mysite.com/;>click here
> 
> which is what we want (or I guess what the Insert->URL led me to expect, and
> which would make Lyx a great HTML editor for simple documents where you don't
> need fancy layout).
> 
> Any solutions to this using Lyx only? I know I can just pop in all the urls
> with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
> url insert seems to do 99% of the job.


try

http://www.lyx.org/help/html/url.php3

Herbert

 


-- 
http://www.lyx.org/help/




Re: Proper URLs from Insert->url

2002-02-20 Thread Fernando Pérez

On Wed, 20 Feb 2002, Herbert Voss wrote:

> > Any solutions to this using Lyx only? I know I can just pop in all the urls
> > with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
> > url insert seems to do 99% of the job.

> try
> 
> http://www.lyx.org/help/html/url.php3

Thanks a lot Herbert, but I had already read that page (should've said so
:) My point is precisely to avoid using ERT if at all possible, and achieve
the same effect via Lyx's insert->url. Is such a thing simply not
possible? The inserturl as it stands is sort of a 'misfeature', as it's
*almost* useful but has a crippling limitation, IMHO. It's ok for urls in
text-only, but it seems like a reasonably small change would make it much more
useful. Does this make sense?

Or maybe I'm missing something painfully obvious here, don't know.

Regards,

f.




Re: Proper URLs from Insert->url

2002-02-20 Thread John Levon

On Wed, Feb 20, 2002 at 06:23:38PM -0700, Fernando Pérez wrote:

> the same effect via Lyx's insert->url. Is such a thing simply not
> possible? The inserturl as it stands is sort of a 'misfeature', as it's
> *almost* useful but has a crippling limitation, IMHO. It's ok for urls in

I assume it's possible, if you like you can open an "enhancement" bug
for this at http://bugzilla.lyx.org/

regards
john

-- 
"They eat cold meat for breakfast and make jokes about gzip."
- Rik Hemsley on KDE developers



Re: Proper URLs from Insert->url

2002-02-20 Thread Herbert Voss

Fernando Pérez wrote:

> On Wed, 20 Feb 2002, Herbert Voss wrote:
> 
> 
>>>Any solutions to this using Lyx only? I know I can just pop in all the urls
>>>with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
>>>url insert seems to do 99% of the job.


> Thanks a lot Herbert, but I had already read that page (should've said so
> :) My point is precisely to avoid using ERT if at all possible, and achieve
> the same effect via Lyx's insert->url. Is such a thing simply not


sorry, you're right. I have this still working in my new

LyX 1.2.0. It will takes some time until this version comes out.

Herbert



-- 
http://www.lyx.org/help/