Re: LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows

2004-02-19 Thread Alexis Huxley
 1) Footnotes are not being handled correctly. What appears is
 this:

 main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt
 footnote text

 If you look at the .tex, you should find at the beginning the
 following code:

 %% Special footnote code from the package 'stblftnt.sty'
 %% Author: Robin Fairbairns -- Last revised Dec 13 1996
 \let\SF@@footnote\footnote
 [EMAIL PROTECTED]@protect
 \expandafter\SF@@footnote
   \else
 [EMAIL PROTECTED]@opt
   \fi
 }
 \expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED]
   [EMAIL PROTECTED]@twobracket
   [EMAIL PROTECTED]
 }
 [EMAIL PROTECTED]@opt{\noexpand\protect
   \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname}
 [EMAIL PROTECTED]@twobracket[#1]#2{}

 Just remove it, and try to run latex2html by hand again.

That did it! Many thanks!

Alexis 



Re: LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows

2004-02-19 Thread Alexis Huxley
 1) Footnotes are not being handled correctly. What appears is
 this:

 main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt
 footnote text

 If you look at the .tex, you should find at the beginning the
 following code:

 %% Special footnote code from the package 'stblftnt.sty'
 %% Author: Robin Fairbairns -- Last revised Dec 13 1996
 \let\SF@@footnote\footnote
 [EMAIL PROTECTED]@protect
 \expandafter\SF@@footnote
   \else
 [EMAIL PROTECTED]@opt
   \fi
 }
 \expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED]
   [EMAIL PROTECTED]@twobracket
   [EMAIL PROTECTED]
 }
 [EMAIL PROTECTED]@opt{\noexpand\protect
   \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname}
 [EMAIL PROTECTED]@twobracket[#1]#2{}

 Just remove it, and try to run latex2html by hand again.

That did it! Many thanks!

Alexis 



Re: LyX + latex2html: footnotes "SF@gobble@opt", tables = missing rows

2004-02-19 Thread Alexis Huxley
>> 1) Footnotes are not being handled correctly. What appears is
>> this:
>>
>> [EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt
>> 

> If you look at the .tex, you should find at the beginning the
> following code:
>
> %% Special footnote code from the package 'stblftnt.sty'
> %% Author: Robin Fairbairns -- Last revised Dec 13 1996
> \let\SF@@footnote\footnote
> [EMAIL PROTECTED]@protect
> \expandafter\SF@@footnote
>   \else
> [EMAIL PROTECTED]@opt
>   \fi
> }
> \expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED]
>   [EMAIL PROTECTED]@twobracket
>   [EMAIL PROTECTED]
> }
> [EMAIL PROTECTED]@opt{\noexpand\protect
>   \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname}
> [EMAIL PROTECTED]@twobracket[#1]#2{}
>
> Just remove it, and try to run latex2html by hand again.

That did it! Many thanks!

Alexis 



Re: LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows

2004-02-18 Thread Jean-Marc Lasgouttes
 Alexis == Alexis Huxley [EMAIL PROTECTED] writes:

Alexis Hi, I have a document written in LyX, and converted to HTML,
Alexis just using FILE - export - HTML. The document contains
Alexis many footnotes and tables and they come out quite wrong.

Alexis The specific problems are:

Alexis 1) Footnotes are not being handled correctly. What appears is
Alexis this:

Alexis main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt
Alexis footnote text

This is code that we add when a footnote is added to section headings.
Unfortunately, we do not have a good way right now to tell the latex
exporter whether the output is for real latex of html.

Alexis I have also tried converting lyx to HTML using lyxport, but
Alexis that's just calling latex2html also, and gives the same
Alexis results.

If you look at the .tex, you should find at the beginning the
following code:

%% Special footnote code from the package 'stblftnt.sty'
%% Author: Robin Fairbairns -- Last revised Dec 13 1996
\let\SF@@footnote\footnote
[EMAIL PROTECTED]@protect
\expandafter\SF@@footnote
  \else
[EMAIL PROTECTED]@opt
  \fi
}
\expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED]
  [EMAIL PROTECTED]@twobracket
  [EMAIL PROTECTED]
}
[EMAIL PROTECTED]@opt{\noexpand\protect
  \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname}
[EMAIL PROTECTED]@twobracket[#1]#2{}

Just remove it, and try to run latex2html by hand again.

JMarc



Re: LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows

2004-02-18 Thread Jean-Marc Lasgouttes
 Alexis == Alexis Huxley [EMAIL PROTECTED] writes:

Alexis Hi, I have a document written in LyX, and converted to HTML,
Alexis just using FILE - export - HTML. The document contains
Alexis many footnotes and tables and they come out quite wrong.

Alexis The specific problems are:

Alexis 1) Footnotes are not being handled correctly. What appears is
Alexis this:

Alexis main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt
Alexis footnote text

This is code that we add when a footnote is added to section headings.
Unfortunately, we do not have a good way right now to tell the latex
exporter whether the output is for real latex of html.

Alexis I have also tried converting lyx to HTML using lyxport, but
Alexis that's just calling latex2html also, and gives the same
Alexis results.

If you look at the .tex, you should find at the beginning the
following code:

%% Special footnote code from the package 'stblftnt.sty'
%% Author: Robin Fairbairns -- Last revised Dec 13 1996
\let\SF@@footnote\footnote
[EMAIL PROTECTED]@protect
\expandafter\SF@@footnote
  \else
[EMAIL PROTECTED]@opt
  \fi
}
\expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED]
  [EMAIL PROTECTED]@twobracket
  [EMAIL PROTECTED]
}
[EMAIL PROTECTED]@opt{\noexpand\protect
  \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname}
[EMAIL PROTECTED]@twobracket[#1]#2{}

Just remove it, and try to run latex2html by hand again.

JMarc



Re: LyX + latex2html: footnotes "SF@gobble@opt", tables = missing rows

2004-02-18 Thread Jean-Marc Lasgouttes
> "Alexis" == Alexis Huxley <[EMAIL PROTECTED]> writes:

Alexis> Hi, I have a document written in LyX, and converted to HTML,
Alexis> just using "FILE -> export -> HTML". The document contains
Alexis> many footnotes and tables and they come out quite wrong.

Alexis> The specific problems are:

Alexis> 1) Footnotes are not being handled correctly. What appears is
Alexis> this:

Alexis> [EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt
Alexis> 

This is code that we add when a footnote is added to section headings.
Unfortunately, we do not have a good way right now to tell the latex
exporter whether the output is for real latex of html.

Alexis> I have also tried converting lyx to HTML using lyxport, but
Alexis> that's just calling latex2html also, and gives the same
Alexis> results.

If you look at the .tex, you should find at the beginning the
following code:

%% Special footnote code from the package 'stblftnt.sty'
%% Author: Robin Fairbairns -- Last revised Dec 13 1996
\let\SF@@footnote\footnote
[EMAIL PROTECTED]@protect
\expandafter\SF@@footnote
  \else
[EMAIL PROTECTED]@opt
  \fi
}
\expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED]
  [EMAIL PROTECTED]@twobracket
  [EMAIL PROTECTED]
}
[EMAIL PROTECTED]@opt{\noexpand\protect
  \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname}
[EMAIL PROTECTED]@twobracket[#1]#2{}

Just remove it, and try to run latex2html by hand again.

JMarc



LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows

2004-02-10 Thread Alexis Huxley
Hi, I have a document written in LyX, and converted to HTML, just using
FILE - export - HTML.  The document contains many footnotes and
tables and they come out quite wrong.

The specific problems are:

1) Footnotes are not being handled correctly. What appears
   is this:

main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt footnote text

2) Tables have only the header row except for the last cell,
   which has the text of the first cell of the second row
   also in it. As it:

.--,
| r1c1 | r1c2 | r1c3 |
||| r2c1 |
`--'

3) Typewriter character format has been preserved in the conversion,
   but it looks as though bold has not been.

Exporting to PDF, PS, DVI are all absolutely perfect.

The HTML version is at http://dione.no-ip.org/~alexis/ahdg.html,
if anybody wants to see for themselves.

I have also tried converting lyx to HTML using lyxport, but that's 
just calling latex2html also, and gives the same results.

I know zero TeX, so I've not tried writing a TeX file with tables or
footnotes to see if this is a LyX problem or a latex2html problem,
but I assume it is a latex2html problem; however, as it seems quite
a large problem, and I've not found anything saying that latex2html
can't handle footnotes, this mailing list seemed a good to start in
my top-down search for a solution.

Please can anyone offer any advice? Thanks!

Alexis



LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows

2004-02-10 Thread Alexis Huxley
Hi, I have a document written in LyX, and converted to HTML, just using
FILE - export - HTML.  The document contains many footnotes and
tables and they come out quite wrong.

The specific problems are:

1) Footnotes are not being handled correctly. What appears
   is this:

main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt footnote text

2) Tables have only the header row except for the last cell,
   which has the text of the first cell of the second row
   also in it. As it:

.--,
| r1c1 | r1c2 | r1c3 |
||| r2c1 |
`--'

3) Typewriter character format has been preserved in the conversion,
   but it looks as though bold has not been.

Exporting to PDF, PS, DVI are all absolutely perfect.

The HTML version is at http://dione.no-ip.org/~alexis/ahdg.html,
if anybody wants to see for themselves.

I have also tried converting lyx to HTML using lyxport, but that's 
just calling latex2html also, and gives the same results.

I know zero TeX, so I've not tried writing a TeX file with tables or
footnotes to see if this is a LyX problem or a latex2html problem,
but I assume it is a latex2html problem; however, as it seems quite
a large problem, and I've not found anything saying that latex2html
can't handle footnotes, this mailing list seemed a good to start in
my top-down search for a solution.

Please can anyone offer any advice? Thanks!

Alexis



LyX + latex2html: footnotes "SF@gobble@opt", tables = missing rows

2004-02-10 Thread Alexis Huxley
Hi, I have a document written in LyX, and converted to HTML, just using
"FILE -> export -> HTML".  The document contains many footnotes and
tables and they come out quite wrong.

The specific problems are:

1) Footnotes are not being handled correctly. What appears
   is this:

[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt 

2) Tables have only the header row except for the last cell,
   which has the text of the first cell of the second row
   also in it. As it:

.--,
|  |  |  |
|||  |
`--'

3) "Typewriter" character format has been preserved in the conversion,
   but it looks as though bold has not been.

Exporting to PDF, PS, DVI are all absolutely perfect.

The HTML version is at http://dione.no-ip.org/~alexis/ahdg.html,
if anybody wants to see for themselves.

I have also tried converting lyx to HTML using lyxport, but that's 
just calling latex2html also, and gives the same results.

I know zero TeX, so I've not tried writing a TeX file with tables or
footnotes to see if this is a LyX problem or a latex2html problem,
but I assume it is a latex2html problem; however, as it seems quite
a large problem, and I've not found anything saying that latex2html
can't handle footnotes, this mailing list seemed a good to start in
my top-down search for a solution.

Please can anyone offer any advice? Thanks!

Alexis



Image-Converting with LyX (latex2html)

2001-10-06 Thread Thorsten Körner

Hi
I'm writing a bigger Document (Documentclass book) with LyX 1.1.16-fix3 
(Ghostscript-Version 6.51). When I do an export-PDF (pdftex) everything 
looks fine, Bookmarks appears in the appropriate way and so on. The same when 
exporting to PS. But whenI export the document to HTML, there is no image to 
see. On xterm, I can see that latex2html is looking for things like img15 but 
the Imgages all have names like filedialog.png and filedialog.eps. In LyX 
I have insertet all images without suffix, so that every exportscript can 
take the right one. The Images are located in an subdirectory of the .lyx and 
.tex-files directory.
What did I wrong???
CU
Thorsten
-- 
Weiler's Law:
Nothing is impossible for the man who doesn't have to do it
himself.



Re: Image-Converting with LyX (latex2html)

2001-10-06 Thread Dekel Tsur

On Sat, Oct 06, 2001 at 03:16:51PM +0200, Thorsten Körner wrote:
 Hi
 I'm writing a bigger Document (Documentclass book) with LyX 1.1.16-fix3 
 (Ghostscript-Version 6.51). When I do an export-PDF (pdftex) everything 
 looks fine, Bookmarks appears in the appropriate way and so on. The same when 
 exporting to PS. But whenI export the document to HTML, there is no image to 
 see. On xterm, I can see that latex2html is looking for things like img15 but 
 the Imgages all have names like filedialog.png and filedialog.eps. In LyX 
 I have insertet all images without suffix, so that every exportscript can 
 take the right one. The Images are located in an subdirectory of the .lyx and 
 .tex-files directory.
 What did I wrong???

The problem is that latex2html generates images in the temp directory and
lyx doesn't copy them. Note that even if lyx was copying these images, the
result is not what you want because these images are generated from the EPS
files, so there is a loss of quality.
In other words, latex2html isn't smart enough to detect that you already
have PNG's in your images dir. However, try using the tth converter, which do 
detect this.



Image-Converting with LyX (latex2html)

2001-10-06 Thread Thorsten Körner

Hi
I'm writing a bigger Document (Documentclass book) with LyX 1.1.16-fix3 
(Ghostscript-Version 6.51). When I do an export-PDF (pdftex) everything 
looks fine, Bookmarks appears in the appropriate way and so on. The same when 
exporting to PS. But whenI export the document to HTML, there is no image to 
see. On xterm, I can see that latex2html is looking for things like img15 but 
the Imgages all have names like filedialog.png and filedialog.eps. In LyX 
I have insertet all images without suffix, so that every exportscript can 
take the right one. The Images are located in an subdirectory of the .lyx and 
.tex-files directory.
What did I wrong???
CU
Thorsten
-- 
Weiler's Law:
Nothing is impossible for the man who doesn't have to do it
himself.



Re: Image-Converting with LyX (latex2html)

2001-10-06 Thread Dekel Tsur

On Sat, Oct 06, 2001 at 03:16:51PM +0200, Thorsten Körner wrote:
 Hi
 I'm writing a bigger Document (Documentclass book) with LyX 1.1.16-fix3 
 (Ghostscript-Version 6.51). When I do an export-PDF (pdftex) everything 
 looks fine, Bookmarks appears in the appropriate way and so on. The same when 
 exporting to PS. But whenI export the document to HTML, there is no image to 
 see. On xterm, I can see that latex2html is looking for things like img15 but 
 the Imgages all have names like filedialog.png and filedialog.eps. In LyX 
 I have insertet all images without suffix, so that every exportscript can 
 take the right one. The Images are located in an subdirectory of the .lyx and 
 .tex-files directory.
 What did I wrong???

The problem is that latex2html generates images in the temp directory and
lyx doesn't copy them. Note that even if lyx was copying these images, the
result is not what you want because these images are generated from the EPS
files, so there is a loss of quality.
In other words, latex2html isn't smart enough to detect that you already
have PNG's in your images dir. However, try using the tth converter, which do 
detect this.



Image-Converting with LyX (latex2html)

2001-10-06 Thread Thorsten Körner

Hi
I'm writing a bigger Document (Documentclass book) with LyX 1.1.16-fix3 
(Ghostscript-Version 6.51). When I do an export->PDF (pdftex) everything 
looks fine, Bookmarks appears in the appropriate way and so on. The same when 
exporting to PS. But whenI export the document to HTML, there is no image to 
see. On xterm, I can see that latex2html is looking for things like img15 but 
the Imgages all have names like "filedialog.png" and "filedialog.eps". In LyX 
I have insertet all images without suffix, so that every exportscript can 
take the right one. The Images are located in an subdirectory of the .lyx and 
.tex-files directory.
What did I wrong???
CU
Thorsten
-- 
Weiler's Law:
Nothing is impossible for the man who doesn't have to do it
himself.



Re: Image-Converting with LyX (latex2html)

2001-10-06 Thread Dekel Tsur

On Sat, Oct 06, 2001 at 03:16:51PM +0200, Thorsten Körner wrote:
> Hi
> I'm writing a bigger Document (Documentclass book) with LyX 1.1.16-fix3 
> (Ghostscript-Version 6.51). When I do an export->PDF (pdftex) everything 
> looks fine, Bookmarks appears in the appropriate way and so on. The same when 
> exporting to PS. But whenI export the document to HTML, there is no image to 
> see. On xterm, I can see that latex2html is looking for things like img15 but 
> the Imgages all have names like "filedialog.png" and "filedialog.eps". In LyX 
> I have insertet all images without suffix, so that every exportscript can 
> take the right one. The Images are located in an subdirectory of the .lyx and 
> .tex-files directory.
> What did I wrong???

The problem is that latex2html generates images in the temp directory and
lyx doesn't copy them. Note that even if lyx was copying these images, the
result is not what you want because these images are generated from the EPS
files, so there is a loss of quality.
In other words, latex2html isn't smart enough to detect that you already
have PNG's in your images dir. However, try using the tth converter, which do 
detect this.



Re: Lyx latex2html

2001-06-08 Thread Jean-Pierre.Chretien


From: Adolfo Pachón [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Lyx  latex2html
Date: Thu, 7 Jun 2001 17:54:05 +0200

Hi all!!

I want to obtain this in the HTML output:

a href=http://www.lyx.org;Go to Lyx/a

How have I to write in Lyx to export to Latex and then generate the HTML
output with latex2html?

Thanks


(Adolfo M. Pachón Rodríguez)

Here is a short perl script which used to work before 1.1.5
Works with 1.1.5 (but errors about tokens in TeX mode in the calling window)
Didn't check it with 1.1.6
The usage explains (almost) everything.
url2h.sh allows to test it in a subdir (l2h is a shortcut here for latex2html).

The idea is to use the Name field of the url inset to provide the anchor.

-- 
Jean-Pierre


#!/usr/local/bin/perl
#

$| = 1;

if ($ARGV[0] eq -h || $ARGV[0] eq ) {
usage; exit;
}

# pas de séparateur : lecture du fichier comme une chaîne
undef $/;
$argv=join(' ',@ARGV);
 
BOUCLE: while (@ARGV) {
$ARG = shift @ARGV;
   if (!open(IN, $ARG)) 
   { print Erreur ouverture fichier $ARG\n;
 next BOUCLE;
   }
($rac,$suf)=($ARG=~m/(.*)\.(.*?)$/m);
print $rac.$suf\n;
   $file= IN;
   close IN;
# on applique le filtre
if ($suf eq lyx) {
$file=~s/\\begin_inset LatexCommand \\htmlurl\[(.*?)\]\{(.*?)\}.*?\\end_inset 
/\\latex latex 
\\htmladdnormallink\{$1\}\{$2\}\~
\\begin\{latexonly\}
\\url\{$2\}
\\end\{latexonly\}
\\layout Standard
/gs ;
$file=~s/\\begin_inset LatexCommand \\url\[(.*?)\]\{(.*?)\}.*?\\end_inset 
/\\latex latex 
\\htmladdnormallink\{$1\}\{$2\}\~
\\begin\{latexonly\}
\\url\{$2\}
\\end\{latexonly\}
\\layout Standard
/gs;
$file=~s/\\begin_inset LatexCommand \\htmlurl\{(.*?)\}.*?\\end_inset /\\latex 
latex 
\\htmladdnormallink\{\\url\{$1\}\}\{$1\}\~
\\layout Standard
/gs ;
$file=~s/\\begin_inset LatexCommand \\url\{(.*?)\}.*?\\end_inset /\\latex 
latex 
\\htmladdnormallink\{\\url\{$1\}\}\{$1\}\~
\\layout Standard
/gs;
}

$file=~s/\~(\\begin\{latexonly\})/\n$1/gs if ($suf eq tex);
open(OUT,$ARG);
print OUT $file;
close OUT;
}

sub usage {
print Usage: url2h [-h(elp)]  file1 file2 ... \n(star convention allowed, 
e.g. url2h *.lyx)\nConverts \\htmlurl macros into ERT \\htmladdnormallink macros.
Keeps the original typesetting. 
Run url2h on the exported .tex file to
provide the required newline before latexonly environment.
Be sure to add \\usepackage{url} and \\usepackage{html} in the preamble;
}





 url2h.sh

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\begin_preamble
\usepackage{html}
\usepackage{url}
\end_preamble
\language french
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

This i a link on 
\begin_inset LatexCommand \url[lyx]{http://www.lyx.org}

\end_inset 


\the_end



Re: Lyx latex2html

2001-06-08 Thread Dekel Tsur

On Thu, Jun 07, 2001 at 08:15:06PM +0200, Adolfo Pachón wrote:
 Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
 error message:
 
 File html.sty Not Found
 
 I've put this file in all sites, but always tell me the error.
 
 Where have I to put the html.sty exactly?

1. Put html.sty in TEXMF/tex/latex/latex2html/html.sty

where TEXMF is the directory of tex (you can find the value of TEXMF
by running kpsexpand '$TEXMF').

2. Run texhash



Re: Lyx latex2html

2001-06-08 Thread Jean-Pierre.Chretien


From: Adolfo Pachón [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Lyx  latex2html
Date: Thu, 7 Jun 2001 17:54:05 +0200

Hi all!!

I want to obtain this in the HTML output:

a href=http://www.lyx.org;Go to Lyx/a

How have I to write in Lyx to export to Latex and then generate the HTML
output with latex2html?

Thanks


(Adolfo M. Pachón Rodríguez)

Here is a short perl script which used to work before 1.1.5
Works with 1.1.5 (but errors about tokens in TeX mode in the calling window)
Didn't check it with 1.1.6
The usage explains (almost) everything.
url2h.sh allows to test it in a subdir (l2h is a shortcut here for latex2html).

The idea is to use the Name field of the url inset to provide the anchor.

-- 
Jean-Pierre


#!/usr/local/bin/perl
#

$| = 1;

if ($ARGV[0] eq -h || $ARGV[0] eq ) {
usage; exit;
}

# pas de séparateur : lecture du fichier comme une chaîne
undef $/;
$argv=join(' ',@ARGV);
 
BOUCLE: while (@ARGV) {
$ARG = shift @ARGV;
   if (!open(IN, $ARG)) 
   { print Erreur ouverture fichier $ARG\n;
 next BOUCLE;
   }
($rac,$suf)=($ARG=~m/(.*)\.(.*?)$/m);
print $rac.$suf\n;
   $file= IN;
   close IN;
# on applique le filtre
if ($suf eq lyx) {
$file=~s/\\begin_inset LatexCommand \\htmlurl\[(.*?)\]\{(.*?)\}.*?\\end_inset 
/\\latex latex 
\\htmladdnormallink\{$1\}\{$2\}\~
\\begin\{latexonly\}
\\url\{$2\}
\\end\{latexonly\}
\\layout Standard
/gs ;
$file=~s/\\begin_inset LatexCommand \\url\[(.*?)\]\{(.*?)\}.*?\\end_inset 
/\\latex latex 
\\htmladdnormallink\{$1\}\{$2\}\~
\\begin\{latexonly\}
\\url\{$2\}
\\end\{latexonly\}
\\layout Standard
/gs;
$file=~s/\\begin_inset LatexCommand \\htmlurl\{(.*?)\}.*?\\end_inset /\\latex 
latex 
\\htmladdnormallink\{\\url\{$1\}\}\{$1\}\~
\\layout Standard
/gs ;
$file=~s/\\begin_inset LatexCommand \\url\{(.*?)\}.*?\\end_inset /\\latex 
latex 
\\htmladdnormallink\{\\url\{$1\}\}\{$1\}\~
\\layout Standard
/gs;
}

$file=~s/\~(\\begin\{latexonly\})/\n$1/gs if ($suf eq tex);
open(OUT,$ARG);
print OUT $file;
close OUT;
}

sub usage {
print Usage: url2h [-h(elp)]  file1 file2 ... \n(star convention allowed, 
e.g. url2h *.lyx)\nConverts \\htmlurl macros into ERT \\htmladdnormallink macros.
Keeps the original typesetting. 
Run url2h on the exported .tex file to
provide the required newline before latexonly environment.
Be sure to add \\usepackage{url} and \\usepackage{html} in the preamble;
}





 url2h.sh

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\begin_preamble
\usepackage{html}
\usepackage{url}
\end_preamble
\language french
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

This i a link on 
\begin_inset LatexCommand \url[lyx]{http://www.lyx.org}

\end_inset 


\the_end



Re: Lyx latex2html

2001-06-08 Thread Dekel Tsur

On Thu, Jun 07, 2001 at 08:15:06PM +0200, Adolfo Pachón wrote:
 Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
 error message:
 
 File html.sty Not Found
 
 I've put this file in all sites, but always tell me the error.
 
 Where have I to put the html.sty exactly?

1. Put html.sty in TEXMF/tex/latex/latex2html/html.sty

where TEXMF is the directory of tex (you can find the value of TEXMF
by running kpsexpand '$TEXMF').

2. Run texhash



Re: Lyx & latex2html

2001-06-08 Thread Jean-Pierre.Chretien


>>From: Adolfo Pachón <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Subject: Lyx & latex2html
>>Date: Thu, 7 Jun 2001 17:54:05 +0200
>>
>>Hi all!!
>>
>>I want to obtain this in the HTML output:
>>
>>http://www.lyx.org;>Go to Lyx
>>
>>How have I to write in Lyx to export to Latex and then generate the HTML
>>output with latex2html?
>>
>>Thanks
>>
>>
>>(Adolfo M. Pachón Rodríguez)
>>
Here is a short perl script which used to work before 1.1.5
Works with 1.1.5 (but errors about tokens in TeX mode in the calling window)
Didn't check it with 1.1.6
The usage explains (almost) everything.
url2h.sh allows to test it in a subdir (l2h is a shortcut here for latex2html).

The idea is to use the Name field of the url inset to provide the anchor.

-- 
Jean-Pierre


#!/usr/local/bin/perl
#

$| = 1;

if ($ARGV[0] eq "-h" || $ARGV[0] eq "") {
 exit;
}

# pas de séparateur : lecture du fichier comme une chaîne
undef $/;
$argv=join(' ',@ARGV);
 
BOUCLE: while (@ARGV) {
$ARG = shift @ARGV;
   if (!open(IN, "<$ARG")) 
   { print "Erreur ouverture fichier $ARG\n";
 next BOUCLE;
   }
($rac,$suf)=($ARG=~m/(.*)\.(.*?)$/m);
print "$rac.$suf\n";
   $file= ;
   close IN;
# on applique le filtre
if ($suf eq "lyx") {
$file=~s/\\begin_inset LatexCommand \\htmlurl\[(.*?)\]\{(.*?)\}.*?\\end_inset 
/\\latex latex 
\\htmladdnormallink\{$1\}\{$2\}\~
\\begin\{latexonly\}
\\url\{$2\}
\\end\{latexonly\}
\\layout Standard
/gs ;
$file=~s/\\begin_inset LatexCommand \\url\[(.*?)\]\{(.*?)\}.*?\\end_inset 
/\\latex latex 
\\htmladdnormallink\{$1\}\{$2\}\~
\\begin\{latexonly\}
\\url\{$2\}
\\end\{latexonly\}
\\layout Standard
/gs;
$file=~s/\\begin_inset LatexCommand \\htmlurl\{(.*?)\}.*?\\end_inset /\\latex 
latex 
\\htmladdnormallink\{\\url\{$1\}\}\{$1\}\~
\\layout Standard
/gs ;
$file=~s/\\begin_inset LatexCommand \\url\{(.*?)\}.*?\\end_inset /\\latex 
latex 
\\htmladdnormallink\{\\url\{$1\}\}\{$1\}\~
\\layout Standard
/gs;
}

$file=~s/\~(\\begin\{latexonly\})/\n$1/gs if ($suf eq "tex");
open(OUT,">$ARG");
print OUT $file;
close OUT;
}

sub usage {
print "Usage: url2h [-h(elp)]... \n(star convention allowed, 
e.g. url2h *.lyx)\nConverts \\htmlurl macros into ERT \\htmladdnormallink macros.
Keeps the original typesetting. 
Run url2h on the exported .tex file to
provide the required newline before latexonly environment.
Be sure to add \\usepackage{url} and \\usepackage{html} in the preamble";
}





 url2h.sh

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\begin_preamble
\usepackage{html}
\usepackage{url}
\end_preamble
\language french
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

This i a link on 
\begin_inset LatexCommand \url[lyx]{http://www.lyx.org}

\end_inset 


\the_end



Re: Lyx & latex2html

2001-06-08 Thread Dekel Tsur

On Thu, Jun 07, 2001 at 08:15:06PM +0200, Adolfo Pachón wrote:
> Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
> error message:
> 
> "File html.sty Not Found"
> 
> I've put this file in all sites, but always tell me the error.
> 
> Where have I to put the html.sty exactly?

1. Put html.sty in TEXMF/tex/latex/latex2html/html.sty

where TEXMF is the directory of tex (you can find the value of TEXMF
by running kpsexpand '$TEXMF').

2. Run texhash



Lyx latex2html

2001-06-07 Thread Adolfo Pachón

Hi all!!

I want to obtain this in the HTML output:

a href=http://www.lyx.org;Go to Lyx/a

How have I to write in Lyx to export to Latex and then generate the HTML
output with latex2html?

Thanks


(Adolfo M. Pachón Rodríguez)




Re: Lyx latex2html

2001-06-07 Thread Adolfo Pachón

Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
error message:

File html.sty Not Found

I've put this file in all sites, but always tell me the error.

Where have I to put the html.sty exactly?

Very Thanks.

NOTE: I can Export to Latex, an then latex2html file.tex works fine, but now my
problem is with Lyx, because of the latex preamble.

 El jue, 07 jun 2001, Herbert Voss escribió:
 Adolfo Pachón wrote:
  
  I want to obtain this in the HTML output:
  
  a href=http://www.lyx.org;Go to Lyx/a
  
  How have I to write in Lyx to export to Latex and then generate the HTML
  output with latex2html?
 
 \usepackage{html}
 
 and in lyx-text
 
 \htmladdnormallink{Go to Lyx}{http://www.lyx.org/Where_Else}
 
 Herbert
 
 
 -- 
 http://www.educat.hu-berlin.de/~voss/lyx/
-- 


Adolfo Pachón
(SAMTEK, SCA)



Re: Lyx latex2html

2001-06-07 Thread Herbert Voss

Adolfo Pachón wrote:
 
 Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
 error message:
 
 File html.sty Not Found
 
 I've put this file in all sites, but always tell me the error.
 
 Where have I to put the html.sty exactly?

 NOTE: I can Export to Latex, an then latex2html file.tex works fine, but now my
 problem is with Lyx, because of the latex preamble.

no, this is not possible. when latex finds the file,
lyx does it too, because lyx starts latex abd does not
search by itself.

are you sure, you have installed the file? otherwise

ftp://ftp.dante.de/tex-archive/support/ltx2x/html.sty

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Lyx latex2html

2001-06-07 Thread Adolfo Pachón

Hi all!!

I want to obtain this in the HTML output:

a href=http://www.lyx.org;Go to Lyx/a

How have I to write in Lyx to export to Latex and then generate the HTML
output with latex2html?

Thanks


(Adolfo M. Pachón Rodríguez)




Re: Lyx latex2html

2001-06-07 Thread Adolfo Pachón

Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
error message:

File html.sty Not Found

I've put this file in all sites, but always tell me the error.

Where have I to put the html.sty exactly?

Very Thanks.

NOTE: I can Export to Latex, an then latex2html file.tex works fine, but now my
problem is with Lyx, because of the latex preamble.

 El jue, 07 jun 2001, Herbert Voss escribió:
 Adolfo Pachón wrote:
  
  I want to obtain this in the HTML output:
  
  a href=http://www.lyx.org;Go to Lyx/a
  
  How have I to write in Lyx to export to Latex and then generate the HTML
  output with latex2html?
 
 \usepackage{html}
 
 and in lyx-text
 
 \htmladdnormallink{Go to Lyx}{http://www.lyx.org/Where_Else}
 
 Herbert
 
 
 -- 
 http://www.educat.hu-berlin.de/~voss/lyx/
-- 


Adolfo Pachón
(SAMTEK, SCA)



Re: Lyx latex2html

2001-06-07 Thread Herbert Voss

Adolfo Pachón wrote:
 
 Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
 error message:
 
 File html.sty Not Found
 
 I've put this file in all sites, but always tell me the error.
 
 Where have I to put the html.sty exactly?

 NOTE: I can Export to Latex, an then latex2html file.tex works fine, but now my
 problem is with Lyx, because of the latex preamble.

no, this is not possible. when latex finds the file,
lyx does it too, because lyx starts latex abd does not
search by itself.

are you sure, you have installed the file? otherwise

ftp://ftp.dante.de/tex-archive/support/ltx2x/html.sty

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Lyx & latex2html

2001-06-07 Thread Adolfo Pachón

Hi all!!

I want to obtain this in the HTML output:

http://www.lyx.org;>Go to Lyx

How have I to write in Lyx to export to Latex and then generate the HTML
output with latex2html?

Thanks


(Adolfo M. Pachón Rodríguez)




Re: Lyx & latex2html

2001-06-07 Thread Adolfo Pachón

Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
error message:

"File html.sty Not Found"

I've put this file in all sites, but always tell me the error.

Where have I to put the html.sty exactly?

Very Thanks.

NOTE: I can Export to Latex, an then latex2html file.tex works fine, but now my
problem is with Lyx, because of the latex preamble.

 El jue, 07 jun 2001, Herbert Voss escribió:
> Adolfo Pachón wrote:
> > 
> > I want to obtain this in the HTML output:
> > 
> > http://www.lyx.org;>Go to Lyx
> > 
> > How have I to write in Lyx to export to Latex and then generate the HTML
> > output with latex2html?
> 
> \usepackage{html}
> 
> and in lyx-text
> 
> \htmladdnormallink{Go to Lyx}{http://www.lyx.org/Where_Else}
> 
> Herbert
> 
> 
> -- 
> http://www.educat.hu-berlin.de/~voss/lyx/
-- 


Adolfo Pachón
(SAMTEK, SCA)



Re: Lyx & latex2html

2001-06-07 Thread Herbert Voss

"Adolfo Pachón" wrote:
> 
> Yes, I read this in the latex2html manual, but in Lyx, an CTRL+D shows me an
> error message:
> 
> "File html.sty Not Found"
> 
> I've put this file in all sites, but always tell me the error.
> 
> Where have I to put the html.sty exactly?

> NOTE: I can Export to Latex, an then latex2html file.tex works fine, but now my
> problem is with Lyx, because of the latex preamble.

no, this is not possible. when latex finds the file,
lyx does it too, because lyx starts latex abd does not
search by itself.

are you sure, you have installed the file? otherwise

ftp://ftp.dante.de/tex-archive/support/ltx2x/html.sty

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/