From jepeway@blasted-heath.com Thu Aug 1 18:13:00 2002 From: jepeway@blasted-heath.com (Chris Jepeway) Date: Thu, 01 Aug 2002 13:13:00 -0400 Subject: [l2h] \etalchar: $^+$ in Bibliography & References Message-ID: <200208011713.g71HD0sV011436@suxrox.blasted-heath.com> I'm using \bibliographystyle{alpha}. When there are many authors of a document, this style spits out a reference that looks like [DLM+88]. When I run l2h, though, the HTML output isn't doing the right thing with the + in these references; they look like [DLM$^+$]. Here's some HTML from one of them: [DLM$^+$88] The bibliography itself has these $^+$ in it, too. How do I fix this one? Chris . From andy_royle@fws.gov Thu Aug 1 19:35:34 2002 From: andy_royle@fws.gov (Andy Royle) Date: Thu, 01 Aug 2002 14:35:34 -0400 Subject: [l2h] Latex2html question Message-ID: <3D497F76.8C672452@fws.gov> Hello, I'm having a couple of minor problems operating latex2html "Version 2K.1beta (1.47)" (installed with Redhat 7.1). Specifically, the document has a small number of mathematical expressions. Some of them, but not all, come out with white backgrounds to match my document. The others come out with gray backgrounds, and of course that looks pretty bad. I used various options (-white -transparent) in attempt to fix this, but that didn't work. Secondly, the images appear raised from the document -- there is a narrow dark edge on the LHS and bottom of each image. Does anyone have any advice on these problems? The basic command that I've issued is: latex2html -html_version 4.0,math -no_navigation html.tex (as stated, with or without -white or -transparent options) Thanks and regards, andy -- J. Andy Royle U.S. Fish and Wildlife Service Div. of Migratory Bird Mgmt. 11510 American Holly Drive Laurel, MD 20708-4017 phone: 301-497-5673; fax: 301-497-5706 email: andy_royle@fws.gov From ross@ics.mq.edu.au Fri Aug 2 09:45:02 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Fri, 2 Aug 2002 18:45:02 +1000 (EST) Subject: [l2h] Latex2html question In-Reply-To: <3D497F76.8C672452@fws.gov> from Andy Royle at "Aug 1, 2002 02:35:34 pm" Message-ID: <200208020845.g728j2j15346@hera.ics.mq.edu.au> > Hello, > I'm having a couple of minor problems operating latex2html > "Version 2K.1beta (1.47)" (installed with Redhat 7.1). > > Specifically, the document has a small number of mathematical > expressions. Some of them, but not all, come out with white > backgrounds to match my document. The others come out with > gray backgrounds, and of course that looks pretty bad. > I used various options (-white -transparent) in attempt > to fix this, but that didn't work. Some working means that you have the correct software versions working together. That's good, since RedHat has a bad record with LaTeX2HTML for using incompatible versions of the netpbm graphics utilities and the LaTeX2HTML installation scripts. > > Secondly, the images appear raised from the document -- there > is a narrow dark edge on the LHS and bottom of each image. > > Does anyone have any advice on these problems? Have a close look at some of those images, as follows: in the web-browser, click/hold an image to select viewing it by itself; then choose "Page Info". You should get a scaled-up version, highly pixellated. If the black "cropping-bars" do not extend the whole length and/or height of the image, then that's the problem: something within the mathematics is placing ink outside of the metric bounding-box of the mathematics. If it extends to the right, then just put \, or \; after that wide symbol. Re-run LaTeX2HTML on the job -- that's usually enough to fix it. If something is too high, such as an accent over a symbol, then that's harder to fix . Send me an example and I'll look for a convenient fix. > The basic command that I've issued is: > > latex2html -html_version 4.0,math -no_navigation html.tex > (as stated, with or without -white or -transparent options) Try these as alternatives: latex2html -html_version 4.0,math -no_math -no_navigation html.tex latex2html -html_version 4.0,math -no_math_parsing -no_navigation html.tex You should get different amounts of image-creation, and more/less use of s within math-displays. > Thanks and regards, Hope this helps, Ross Moore > andy > > > > -- > J. Andy Royle > U.S. Fish and Wildlife Service > Div. of Migratory Bird Mgmt. > 11510 American Holly Drive > Laurel, MD 20708-4017 > > phone: 301-497-5673; fax: 301-497-5706 > email: andy_royle@fws.gov > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html From jos@ccrma.Stanford.EDU Sun Aug 4 09:31:09 2002 From: jos@ccrma.Stanford.EDU (Julius Orion Smith III) Date: Sun, 4 Aug 2002 01:31:09 -0700 Subject: [l2h] \providecommand acting like \renewcommand in l2h Message-ID: <200208040831.g748V9T25073@ccrma-gate.stanford.edu> The following test program illustrates an inconsistency between l2h and latex: --- % test.tex: \documentclass{article} \newcommand{\color}{black} \providecommand{\color}{white} \begin{document} I am \color. % latex prints 'black', l2h prints 'white'. \end{document} --- Julius From jos@w3k.org Sun Aug 4 09:34:34 2002 From: jos@w3k.org (Julius Smith) Date: Sun, 04 Aug 2002 01:34:34 -0700 Subject: [l2h] \providecommand acting like \renewcommand Message-ID: <5.1.0.14.0.20020804013412.029b5ce8@w3k.org> The following test program illustrates an inconsistency between l2h and latex: --- % test.tex: \documentclass{article} \newcommand{\color}{black} \providecommand{\color}{white} \begin{document} I am \color. % latex prints 'black', l2h prints 'white'. \end{document} --- Julius From l2h@w3k.org Mon Aug 5 20:48:52 2002 From: l2h@w3k.org (Julius Smith) Date: Mon, 05 Aug 2002 12:48:52 -0700 Subject: [l2h] Avoiding title collisions when using $LONG_TITLES Message-ID: <5.1.0.14.0.20020805123235.03ead488@wheresmymailserver.com> If you set $LONG_TITLES in your ~/.latex2html-init file, you may have encountered the awful problem of file-name collisions. For example, if two chapters of a document contain sections entitled "Introduction", only the last one will "exist", and navigation to "Introduction" in the first chapter will proceed to that section of the later chapter. This is of course extremely confusing to the reader. Below is a simple method of avoiding this problem by overriding the &make_name() subroutine in your init file. This is also where you can remove the 32-character file-name length limit to provide nicer looking generated section URLs (when they are not intended to be typed manually or accessed in ancient browsers). In ~/.latex2html-init : my %title_seen = (); sub make_name { ... if ($title) { #ensure no more than 32 characters, including .html extension #jos $title =~ s/^(.{1,27}).*$/$1/; while ($title_seen{$title}) { $title .= '_I'; } $title_seen{$title}++; ++$OUT_NODE; join("", ${PREFIX}, $title, $EXTN); } else { # Remove 0's from the end of $packed_curr_sec_id ... } From ufo@sunny.vemt.bme.hu Tue Aug 6 12:51:56 2002 From: ufo@sunny.vemt.bme.hu (ufo@sunny.vemt.bme.hu) Date: Tue, 6 Aug 2002 11:51:56 +0000 Subject: [l2h] bat files Message-ID: <200208060956.g769uIs02462@sunny.vemt.bme.hu> Dear Anybody, I would like to install and try out the latex2html software on a PC with win95 operation system. I have loaded, ungzipped and untared the latex2html-2002.tar.gz file (from the Belgian mirror site) . I have read the install file, and tried to do the installation procedure. However, I simply do not find the install.bat file, nor the test.bat file. Somehow the instructions put in the install file and the content of the latex2html-2002.tar.gz file are not coherent. I do not know how to install, configure, etc. Where can I find the real instructions? Or, what kind of failure might I have done? With thanks Endre Rev ==================================== ==================================== Dr. Endre Rev Associate professor Department of Chemical Engineering, Budapest Univ. of Technology & Economics, Muegyetem rkp. 3., Budapest, Hungary 1521 tel: +36-1-463-1189 fax: +36-1-463-3197 E-mail: ufo@sunny.vemt.bme.hu From Steve Mayer" Message-ID: <006601c23d3c$5868f200$0c01a8c0@maths> > Dear Anybody, > > I would like to install and try out the latex2html software on a PC > with win95 operation system. > > I have loaded, ungzipped and untared the latex2html-2002.tar.gz file > (from the Belgian mirror site) . > > I have read the install file, and tried to do the installation > procedure. However, I simply do not find the install.bat file, nor the > test.bat file. Somehow the instructions put in the install file and > the content of the latex2html-2002.tar.gz file are not coherent. > I do not know how to install, configure, etc. Where can I find the > real instructions? Or, what kind of failure might I have done? > > With thanks > Endre Rev Try the instructions at http://www.mayer.dial.pipex.com/l2h.htm Steve Mayer From Fabrice.Popineau@supelec.fr Thu Aug 8 21:34:29 2002 From: Fabrice.Popineau@supelec.fr (Fabrice Popineau) Date: Thu, 08 Aug 2002 22:34:29 +0200 Subject: [l2h] L2H for texlive Message-ID: <1y993x9m.fsf@supelec.fr> I have put a standalone version of the current latex2html version here: ftp://ftp.dante.de/pub/fptex/0.6/support/latex2html-2K.1-win32.zip Installation is simple: 1 - unzip it at the root of your TeXLive installation, 2 - make sure you have both gswin32c.exe and netpbm in your PATH 3 - use it. I'd like to hear about it. I have successfully converted a few documents. I have encountered an old problem: if for some reason, an image fails to be converted, then it seems that images can be referenced in a random way (they do not occur at their right place). Is this a known problem ? -- Fabrice Popineau ------------------------ e-mail: Fabrice.Popineau@supelec.fr | The difference between theory voice-mail: +33 (0) 387764715 | and practice, is that surface-mail: Supelec, 2 rue E. Belin, | theoretically, F-57070 Metz | there is no difference ! From ross@ics.mq.edu.au Fri Aug 9 00:29:30 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Fri, 9 Aug 2002 09:29:30 +1000 (EST) Subject: [l2h] L2H for texlive In-Reply-To: <1y993x9m.fsf@supelec.fr> from Fabrice Popineau at "Aug 8, 2002 10:34:29 pm" Message-ID: <200208082329.g78NTUd25526@hera.ics.mq.edu.au> > > I have put a standalone version of the current latex2html version > here: > > ftp://ftp.dante.de/pub/fptex/0.6/support/latex2html-2K.1-win32.zip > > Installation is simple: > 1 - unzip it at the root of your TeXLive installation, > 2 - make sure you have both gswin32c.exe and netpbm in your PATH > 3 - use it. > > I'd like to hear about it. I have successfully converted a few > documents. Excellent. Is it sufficiently stable that I should put a link to it on the LaTeX2HTML mailing list site ? > I have encountered an old problem: if for some reason, an > image fails to be converted, then it seems that images can be > referenced in a random way (they do not occur at their right > place). Is this a known problem ? Yes. This happens when one image is too large (vertically) for the page size used when making images using LaTeX etc. TeX gives you a blank page then puts the large image on the next page. All subsequent pages are then out by one, causing the images to be wrongly placed. One solution is to use a larger $PAPERSIZE setting. All the best Ross Moore > -- > Fabrice Popineau > ------------------------ > e-mail: Fabrice.Popineau@supelec.fr | The difference between theory > voice-mail: +33 (0) 387764715 | and practice, is that > surface-mail: Supelec, 2 rue E. Belin, | theoretically, > F-57070 Metz | there is no difference ! > > > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html From Fabrice.Popineau@supelec.fr Fri Aug 9 00:39:17 2002 From: Fabrice.Popineau@supelec.fr (Fabrice Popineau) Date: Fri, 09 Aug 2002 01:39:17 +0200 Subject: [l2h] L2H for texlive In-Reply-To: <200208082329.g78NTUd25526@hera.ics.mq.edu.au> (Ross Moore's message of "Fri, 9 Aug 2002 09:29:30 +1000 (EST)") References: <200208082329.g78NTUd25526@hera.ics.mq.edu.au> Message-ID: <8z3g3opm.fsf@supelec.fr> * Ross Moore writes: > Excellent. Is it sufficiently stable that I should put a link to it > on the LaTeX2HTML mailing list site ? As soon as I have some report about it, yes. It should even work without perl : I have compiled texexpand, pstoimg and latex2html thanks to the ActiveState perl compiler. I'll try to make further tests. > One solution is to use a larger $PAPERSIZE setting. Great thanks ! Fabrice From jakub.nadolny@ite.pl Thu Aug 8 17:45:59 2002 From: jakub.nadolny@ite.pl (Jakub Nadolny) Date: Thu, 8 Aug 2002 18:45:59 +0200 Subject: [l2h] Problem with polish diactrical characters Message-ID: <20020808164559.GA11585@bunyu1.localdomain> Hello, I am trying to convert file with polish characters, for example: \documentclass[12pt]{article} \usepackage[MeX]{polski} \usepackage[latin2]{inputenc} \usepackage{hyperref} \begin{document} Test ±æêñó³¶¿¼ ¡¬£ÓÑ¯Ê \end{document} but during convestion there are some errors, for example: couldn't convert character aogon into available encodings couldn't convert character cacute into available encodings couldn't convert character eogon into available encodings ... and result HTML file does not contain polish characters:

Test acenószz AZÓNZE

Can you help me? Jakub From dj@head-cfa.harvard.edu Thu Aug 8 23:04:39 2002 From: dj@head-cfa.harvard.edu (Diab Jerius) Date: Thu, 8 Aug 2002 18:04:39 -0400 (EDT) Subject: [l2h] graphicx vs. graphics Message-ID: <200208082204.g78M4e301911@pelf.harvard.edu> ---2130725163-1804928587-1028844280=:737 Content-Type: TEXT/plain; charset=us-ascii In v. 2002-1, the style files graphics and graphicx are identical. However, the format of the argument lists for includgraphics differs between the two packages. This leads to problems when converting complex graphicx includegraphics. I've attached a revised version of graphix.perl which processes the arguments more appropriately. Thanks, Diab -- Diab Jerius Harvard-Smithsonian Center for Astrophysics 60 Garden St, MS 70, Cambridge MA 02138 USA djerius@cfa.harvard.edu vox: 617 496 7575 fax: 617 495 7356 ---2130725163-1804928587-1028844280=:737 Content-Type: TEXT/plain; name="graphicx.perl" Content-Description: new version of graphicx.perl Content-Disposition: attachment; filename="graphicx.perl" # graphics.perl # by Bruce Miller # Support of the graphics.sty standard LaTeX2e package # with `standard argument format' # See graphics-support.perl # ====================================================================== do_require_package('graphics-support'); # Package Options sub do_graphics_dvips {} sub do_graphics_draft {} # What'd be the point? sub do_graphics_final {} sub do_graphics_hiresbb {} sub do_graphics_hiderotate { map($GRAPHICS_OPTHIDE{$_}=1, @GRAPHICS_ROTATEOPTS); } sub do_graphics_hidescale { map($GRAPHICS_OPTHIDE{$_}=1, @GRAPHICS_SCALEEOPTS); } # ====================================================================== sub do_cmd_includegraphics { local($_)=@_; my $opt=x_next_optarg(); my $file = x_next_arg(); do_includegraphics($file, $opt, "\\includegraphics".($opt && "[$opt]")."\{$file\}"); } sub do_cmd_includegraphicsstar { local($_)=@_; my $opt=x_next_optarg(); my $file = x_next_arg(); do_includegraphics($file, $opt, "\\includegraphics*".($opt && "[$opt]")."\{$file\}"); } # ====================================================================== 1; ---2130725163-1804928587-1028844280=:737-- From ross@ics.mq.edu.au Fri Aug 9 04:02:54 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Fri, 9 Aug 2002 13:02:54 +1000 (EST) Subject: [l2h] Problem with polish diactrical characters In-Reply-To: <20020808164559.GA11585@bunyu1.localdomain> from Jakub Nadolny at "Aug 8, 2002 06:45:59 pm" Message-ID: <200208090302.g7932sP09066@hera.ics.mq.edu.au> [Charset iso-8859-2 unsupported, filtering to ASCII...] > Hello, > > I am trying to convert file with polish characters, for example: > > \documentclass[12pt]{article} > \usepackage[MeX]{polski} > \usepackage[latin2]{inputenc} > \usepackage{hyperref} > > \begin{document} > > Test _________ > _______ > > \end{document} > > but during convestion there are some errors, for example: > > couldn't convert character aogon into available encodings > couldn't convert character cacute into available encodings > couldn't convert character eogon into available encodings > ... > > and result HTML file does not contain polish characters: > > > >

> Test acenószz > AZÓNZE > >

> > Can you help me? Try using the commandline: latex2html -html_version html3.2,latin2,unicode,latin2 yourfile.tex ^^^^^^^^^^^^^^^^^^^^^^ or even just latex2html -html_version html3.2,latin2,unicode yourfile.tex Hope this helps, Ross Moore > Jakub > > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html From Nils@darktec.org Sun Aug 11 01:43:31 2002 From: Nils@darktec.org (Nils Gundelach) Date: 11 Aug 2002 02:43:31 +0200 Subject: [l2h] Problem with image positions Message-ID: <1029026612.31858.31.camel@darklap> Hi all, i wrote a document with latex and ppchtex. ppchtex is great package for writing texts with chemical structures. latex2html doesn't support ppchtex style, so i put this in my /etc/latex2html.conf: &::process_commands_in_tex (<<_RAW_ARG_CMDS_); chemie # {} startchemie # <<\\stopchemie>> _RAW_ARG_CMDS_ &::process_commands_in_tex (<<_RAW_ARG_CMDS_); stellechemieein # [] _RAW_ARG_CMDS_ 1; #EOF this is a typical ppchtex part: \stellechemieein[groesse=klein,format=klein,breite=passend,hoehe=5500,oben=2000,unten=2000] \hbox { \startchemie \chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,H_3C] \textunter{Aceton} \stopchemie \startchemie \chemie[SPACE,GIVES,SPACE][+\ OH^-] \stopchemie \startchemie \chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,^-H_2C] \textunter{Carbanion} \stopchemie \startchemie \chemie[SPACE,PLUS,SPACE,CHEM][H_2O] \stopchemie } I get an image for every \startchemie .. \stopchemie part and here is the problem. The images have all a different height. This looks very ugly in a browser because i can't center the images verticaly. Is it possible to center the images ? The dvi file looks quite nice but the html translation not :/ Maybe my definitions in /etc/latex2html.conf are wrong. Thanks for your time, Nils -- My Key "gpg --keyserver wwwkeys.eu.pgp.net --recv-key 45CD0073" Fingerprint = F4D9 9274 6ED8 B227 A62A 33FA 0D2E 2414 45CD 0073 http://www.darktec.org /|\ darkbit@IRCNet on #irc.de #linux.de Premature optimization is the root of all evil. - D. Knuth From ross@ics.mq.edu.au Sun Aug 11 02:40:26 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Sun, 11 Aug 2002 11:40:26 +1000 (EST) Subject: [l2h] Problem with image positions In-Reply-To: <1029026612.31858.31.camel@darklap> from Nils Gundelach at "Aug 11, 2002 02:43:31 am" Message-ID: <200208110140.g7B1eQk27116@hera.ics.mq.edu.au> > Hi all, > > i wrote a document with latex and ppchtex. ppchtex is great package for > writing texts with chemical structures. > > latex2html doesn't support ppchtex style, so i put this in my > /etc/latex2html.conf: > > &::process_commands_in_tex (<<_RAW_ARG_CMDS_); > chemie # {} > startchemie # <<\\stopchemie>> > _RAW_ARG_CMDS_ > > &::process_commands_in_tex (<<_RAW_ARG_CMDS_); > stellechemieein # [] > _RAW_ARG_CMDS_ > > 1; > #EOF Yes, this will give individual images for these (pseudo-)environments. > this is a typical ppchtex part: > > \stellechemieein[groesse=klein,format=klein,breite=passend,hoehe=5500,oben=2000,unten=2000] > \hbox { > \startchemie > \chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,H_3C] > \textunter{Aceton} > \stopchemie > \startchemie > \chemie[SPACE,GIVES,SPACE][+\ OH^-] > \stopchemie > \startchemie > \chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,^-H_2C] > \textunter{Carbanion} > \stopchemie > \startchemie > \chemie[SPACE,PLUS,SPACE,CHEM][H_2O] > \stopchemie > } > > > I get an image for every \startchemie .. \stopchemie part and here is > the problem. The images have all a different height. This looks very > ugly in a browser because i can't center the images verticaly. You want the images to be side-by-side, yes ? Then HTML requires that you use a

with cells centred vertically; that is valign="middle" . You can get this consistently in LaTeX by loading the {array} package and using the m (='middle') column parameter: \usepackage{array} % goes in the preamble \begin{tabular}{m{.2\textwidth}m{.2\textwidth}m{.2\textwidth}m{.2\textwidth}} \startchemie \chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,H_3C] \textunter{Aceton} \stopchemie & \startchemie \chemie[SPACE,GIVES,SPACE][+\ OH^-] \stopchemie & \startchemie \chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,^-H_2C] \textunter{Carbanion} \stopchemie & \startchemie \chemie[SPACE,PLUS,SPACE,CHEM][H_2O] \stopchemie \end{tabular} > Is it possible to center the images ? The dvi file looks quite nice but > the html translation not :/ Maybe my definitions in /etc/latex2html.conf > are wrong. You may need to tinker a bit with the widths, to avoid overlaps or log-file messages. Or you may want to move the captions into a separate row in the tabular, either above of below the images. > > Thanks for your time, Hope this helps, Ross Moore > Nils > -- > My Key "gpg --keyserver wwwkeys.eu.pgp.net --recv-key 45CD0073" > Fingerprint = F4D9 9274 6ED8 B227 A62A 33FA 0D2E 2414 45CD 0073 > http://www.darktec.org /|\ darkbit@IRCNet on #irc.de #linux.de > Premature optimization is the root of all evil. - D. Knuth > > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html From Ronny.Standtke@gmx.de Sun Aug 11 14:55:28 2002 From: Ronny.Standtke@gmx.de (Ronny Standtke) Date: Sun, 11 Aug 2002 15:55:28 +0200 Subject: [l2h] Bug in \includegraphics handling Message-ID: <200208111356.g7BDu3x21675@tug.org> Hi, unfortunately I did not get a single response to my previous mail "Problems with lyx and latex2html". So here a small summary: I use lyx to write a complex document and export it from there to latex. I use LaTeX2HTML Version 2K.1beta (1.62) (the one in Mandrake 8.2) to transform this into a set of HTML pages. Then I run into a problem... I had more time to test and found out that if I have \includegraphics{somegraphic.ps} in the latex version of my document, latex2html fails to convert the image. But, if I scale the image in lyx it exports to \resizebox*{0.05\textwidth}{!}{\includegraphics{somegraphic.ps}} and suddenly latex2html works correctly! So, basically latex2html seems to have a problem with the single \includegraphics statement. Could anyone on this list please verify this problem or even better, fix it? Greetings & thanks a lot for an otherwise very helpful program! Ronny From Nils@darktec.org Sun Aug 11 22:40:06 2002 From: Nils@darktec.org (Nils Gundelach) Date: 11 Aug 2002 23:40:06 +0200 Subject: [l2h] Problem with image positions In-Reply-To: <200208110140.g7B1eQk27116@hera.ics.mq.edu.au> References: <200208110140.g7B1eQk27116@hera.ics.mq.edu.au> Message-ID: <1029102009.671.3.camel@darklap> Hi Roos, it works :) thanks a lot Nils -- My Key "gpg --keyserver wwwkeys.eu.pgp.net --recv-key 45CD0073" Fingerprint = F4D9 9274 6ED8 B227 A62A 33FA 0D2E 2414 45CD 0073 http://www.darktec.org /|\ darkbit@IRCNet on #irc.de #linux.de Premature optimization is the root of all evil. - D. Knuth From mchapman@mchapman.com Mon Aug 12 09:13:58 2002 From: mchapman@mchapman.com (Michael Chapman) Date: Mon, 12 Aug 2002 08:13:58 +0000 Subject: [l2h] Bug in \includegraphics handling In-Reply-To: <200208111356.g7BDu3x21675@tug.org> References: <200208111356.g7BDu3x21675@tug.org> Message-ID: <02081208135800.05813@cotter.interarb.com> On Sunday 11 August 2002 13:55, Ronny Standtke wrote: > Hi, > > unfortunately I did not get a single response to my previous mail "Problems > with lyx and latex2html". So here a small summary: I wonder how many people on this list use Lyx ? I give it all credit: without it I would probably not (as soon) have discovered LaTex. My frustrations with what it was doing to my input (in an admittedly earlier version than I suspect is around today) encouraged me to `lift the bonnet' (or `lift the hood', if you must) and try and tinker with the detail. So thanks to Lyx I learnt Latex. > I had more time to test and found out that if I have > \includegraphics{somegraphic.ps} > in the latex version of my document, latex2html fails to convert the image. If you want some help, it would be better to provide an _entire_ LaTex file that produces the faulty output. That is take the fault producing file make a copy and then start deleting irrelevant text, to arrive at a minimalist example (of twenty or thirty lines?). This is also an excellent way of finding bugs -if you test after each deletion. Sorry, not an answer, but hopefully a ?direction. Regards, Michael Chapman. From martin@orie.cornell.edu Tue Aug 13 14:19:30 2002 From: martin@orie.cornell.edu (William T. Martin) Date: Tue, 13 Aug 2002 09:19:30 -0400 Subject: [l2h] User-written latex class files with latex2html Message-ID: <20020813091930.B5475@manager.orie.cornell.edu> I am using LaTeX2HTML Version 99.2beta8 (1.46). I have written written some latex macros that I would like to set up in a style (.sty) file file and use in latex2html. I copied the the style file into the directory where I have my tex file. However, latex2html does not seem to find it. I get the message: No implementation found for style `orieweb' I use this line to load orieweb: \usepackage{html,htmllist,color,makeidx,epsfig,orieweb} It loads perl versions of these packages, but orieweb is not written in perl: Loading /usr/local/latex2html-99.2beta8/libdir/styles/texdefs.perl... Loading /usr/local/latex2html-99.2beta8/libdir/styles/report.perl Loading /usr/local/latex2html-99.2beta8/libdir/styles/html.perl Loading /usr/local/latex2html-99.2beta8/libdir/styles/htmllist.perl Loading /usr/local/latex2html-99.2beta8/libdir/styles/color.perl *** initialising colors *** Loading /usr/local/latex2html-99.2beta8/libdir/styles/makeidx.perl Loading /usr/local/latex2html-99.2beta8/libdir/styles/epsfig.perl latex2html -V Note: Loading /net/trout/export/home2/martin/.latex2html-init Note: Initialising with file: /net/trout/export/home2/martin/.latex2html-init This is LaTeX2HTML Version 99.2beta8 (1.46) by Nikos Drakos, Computer Based Learning Unit, University of Leeds. What do I need to do to get this to work? Thank you, -- Bill Martin -- -- ======================================================================= William T. Martin email: martin@orie.cornell.edu Cornell University/ORIE Fax: (607) 255-9129 257 Rhodes Hall Phone: (607) 255-9134 Ithaca, NY 14853 Public Key: http://www.orie.cornell.edu/~martin/public_key.html ======================================================================= From fdrake@acm.org Tue Aug 13 14:45:02 2002 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Tue, 13 Aug 2002 09:45:02 -0400 Subject: [l2h] User-written latex class files with latex2html In-Reply-To: <20020813091930.B5475@manager.orie.cornell.edu> References: <20020813091930.B5475@manager.orie.cornell.edu> Message-ID: <15705.3422.926507.879171@grendel.zope.com> William T. Martin writes: > \usepackage{html,htmllist,color,makeidx,epsfig,orieweb} > > It loads perl versions of these packages, but orieweb is not written in > perl: ... > What do I need to do to get this to work? There are two approaches. The simplest is to change the way you reference the package. If you use \usepackage{html,htmllist,color,makeidx,epsfig} \input{orieweb.sty} LaTeX2HTML will load orieweb.sty and attempt to process it. You may have to muck around with \makeatletter and \makeatother though. My solution for the Python documentation was to supply Perl support for both my additional packages and the document classes I define. This works well, and let's the LaTeX documents use the conventional LaTeX way of doing things. It probably makes more sense if there are going to be several documents using the package. The painful part, of course, is that using this approach means that you need to write Perl code to support all of the markup constructs defined in the package it's emulating, and that can be painful at times. If there's a lot of semantic processing that can happen at document-formatting time, it can be a real boon. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From peacedan@yahoo.com Tue Aug 13 23:02:51 2002 From: peacedan@yahoo.com (Daniel Young) Date: Tue, 13 Aug 2002 15:02:51 -0700 (PDT) Subject: [l2h] Install LaTeX2HTML on Windows XP Message-ID: <20020813220251.1529.qmail@web14203.mail.yahoo.com> Hi, I tried to install LaTeX2HTML on my Windows XP, but could not work it out. I downloaded latex2html-2002-1.tar.gz from CTAN and unzip it to C:\Download\latex2html-2002-1. I looked up on the mailing list archive and I followed the instructions on http://www.mayer.dial.pipex.com/l2h.htm because I also use MiK-TeX and the MiK-TeX has worked well so far before I tried to install LaTeX2HTML. So I installed Perl and Netpbm, and edited prefs.pm as suggested. Maybe the problem is that I installed Mik-TeX under Program File directory and config.bat seemed to have trouble to get the version number of dvips (which is 5.86). It says unknown version number. I manually add it in config/config.pl in the DVIPS session: my $version = '5.86'; I re-ran config.bat and this seemed to be fixed. I got same information in the log file as in the above instruction, except a few more lines with warning message: checking for ppmtojpeg... no Warning: You cannot directly translate/modify graphics of format. checking for pnmcut... \texfiles\netpbm\bin\pnmcut.exe checking for pnmpad... \texfiles\netpbm\bin\pnmpad.exe checking for pnmrotate... \texfiles\netpbm\bin\pnmrotate.exe checking for pnmscale... \texfiles\netpbm\bin\pnmscale.exe checking for giftopnm... \texfiles\netpbm\bin\giftopnm.exe checking for jpegtopnm... \texfiles\netpbm\bin\jpegtopnm.exe checking for pngtopnm... C:\Program Files\texmf\miktex\bin\pngtopnm.exe checking for tifftopnm... C:\Program Files\texmf\miktex\bin\tifftopnm.exe checking for picttoppm... \texfiles\netpbm\bin\picttoppm.exe checking for anytopnm... no Warning: You cannot directly translate/modify graphics of format. checking for bmptoppm... no Warning: You cannot directly translate/modify graphics of format. checking for pcxtoppm... C:\Program Files\texmf\miktex\bin\pcxtoppm.exe checking for sgitopnm... \texfiles\netpbm\bin\sgitopnm.exe checking for xbmtopbm... \texfiles\netpbm\bin\xbmtopbm.exe checking for xwdtopnm... \texfiles\netpbm\bin\xwdtopnm.exe Then endless problems came. First of all I never ran test.bat correctly. The main problem is that images cannot be created. I checked the subdirectory of l2htest/; there was only images.tex, no images.log created by latex. I ran images.tex by command latex manually, created images.log and re-ran latex2html. Now the problem was more clear: there were no images created--CSS style with those NEXT/CONTENT icons appeared, but no equations and images. I looked up the manual and tried my best to look for the images everywhere possible, but found nothing. I just tried the next step for curiosity, since I had no way to successfully ran test.bat. I installed LaTeX2HTML, added latex2html.bat to $PATH, moved files under TEXTINPUT/ and edited l2hconf.pm. However, I still could only correctly ran latex2html in the installed directory and the unzipped temporary directory. If I ran it anywhere else, I got the error message: texexpand V2002-1 (Revision 1.11) texexpand: Error: More than one input file specified. texexpand failed: No such file or directory Did I forget to configure something above? Or I couldn't run latex2html under other directories such as My Document? Were all these problems caused by manually adding the version number of dvips? Thanks. - Daniel __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From warnhold@zedat.fu-berlin.de Wed Aug 14 10:30:45 2002 From: warnhold@zedat.fu-berlin.de (Werner Arnhold) Date: Wed, 14 Aug 2002 11:30:45 +0200 Subject: [l2h] User-written latex class files with latex2html In-Reply-To: <15705.3422.926507.879171@grendel.zope.com> References: <20020813091930.B5475@manager.orie.cornell.edu> <15705.3422.926507.879171@grendel.zope.com> Message-ID: <200208141130.45872.warnhold@zedat.fu-berlin.de> Am Dienstag, 13. August 2002 15:45 schrieb Fred L. Drake, Jr.: > William T. Martin writes: > > \usepackage{html,htmllist,color,makeidx,epsfig,orieweb} > > > > It loads perl versions of these packages, but orieweb is not written in > > perl: . . . . > > My solution for the Python documentation was to supply Perl support > for both my additional packages and the document classes I define. > This works well, and let's the LaTeX documents use the conventional > LaTeX way of doing things. It probably makes more sense if there are > going to be several documents using the package. This is a very nice idea. I tried it myself, but I am not very experienced especially in Perl. So I had a lot of trouble to find out the interface for a Perl script to be written. Is there any documentation about that? > The painful part, of course, is that using this approach means that > you need to write Perl code to support all of the markup constructs > defined in the package it's emulating, and that can be painful at > times. If there's a lot of semantic processing that can happen at > document-formatting time, it can be a real boon. > > > -Fred Werner -- Werner Arnhold FU Berlin, FB 12, GEDIB Arbeitsbereich Lehrerfortbildung und Informatische Bildung Tel.: 030 / 838-56328, priv: 030 / 74 22 555 From Steve Mayer" Message-ID: <008a01c24381$ea53d540$0c01a8c0@maths> ----- Original Message ----- From: "Daniel Young" To: Sent: 13 August 2002 23:02 Subject: [l2h] Install LaTeX2HTML on Windows XP > Hi, > > I tried to install LaTeX2HTML on my Windows XP, but > could not work it out. > > I downloaded latex2html-2002-1.tar.gz from CTAN and > unzip it to C:\Download\latex2html-2002-1. I looked up > on the mailing list archive and I followed the > instructions on > http://www.mayer.dial.pipex.com/l2h.htm > because I also use MiK-TeX and the MiK-TeX has worked > well so far before I tried to install LaTeX2HTML. > > So I installed Perl and Netpbm, and edited prefs.pm as > suggested. Maybe the problem is that I installed > Mik-TeX under Program File directory and config.bat > seemed to have trouble to get the version number of > dvips (which is 5.86). It says unknown version number. > I manually add it in config/config.pl in the DVIPS > session: > my $version = '5.86'; > I re-ran config.bat and this seemed to be fixed. I got > same information in the log file as in the above > instruction, except a few more lines with warning > message: > > checking for ppmtojpeg... no > Warning: You cannot directly translate/modify graphics > of format. > checking for pnmcut... \texfiles\netpbm\bin\pnmcut.exe > checking for pnmpad... \texfiles\netpbm\bin\pnmpad.exe > checking for pnmrotate... > \texfiles\netpbm\bin\pnmrotate.exe > checking for pnmscale... > \texfiles\netpbm\bin\pnmscale.exe > checking for giftopnm... > \texfiles\netpbm\bin\giftopnm.exe > checking for jpegtopnm... > \texfiles\netpbm\bin\jpegtopnm.exe > checking for pngtopnm... C:\Program > Files\texmf\miktex\bin\pngtopnm.exe > checking for tifftopnm... C:\Program > Files\texmf\miktex\bin\tifftopnm.exe > checking for picttoppm... > \texfiles\netpbm\bin\picttoppm.exe > checking for anytopnm... no > Warning: You cannot directly translate/modify graphics > of format. > checking for bmptoppm... no > Warning: You cannot directly translate/modify graphics > of format. > checking for pcxtoppm... C:\Program > Files\texmf\miktex\bin\pcxtoppm.exe > checking for sgitopnm... > \texfiles\netpbm\bin\sgitopnm.exe > checking for xbmtopbm... > \texfiles\netpbm\bin\xbmtopbm.exe > checking for xwdtopnm... > \texfiles\netpbm\bin\xwdtopnm.exe > > Then endless problems came. First of all I never ran > test.bat correctly. The main problem is that images > cannot be created. I checked the subdirectory of > l2htest/; there was only images.tex, no images.log > created by latex. I ran images.tex by command latex > manually, created images.log and re-ran latex2html. > Now the problem was more clear: there were no images > created--CSS style with those NEXT/CONTENT icons > appeared, but no equations and images. I looked up the > manual and tried my best to look for the images > everywhere possible, but found nothing. > > I just tried the next step for curiosity, since I had > no way to successfully ran test.bat. I installed > LaTeX2HTML, added latex2html.bat to $PATH, moved files > under TEXTINPUT/ and edited l2hconf.pm. However, I > still could only correctly ran latex2html in the > installed directory and the unzipped temporary > directory. If I ran it anywhere else, I got the error > message: > > texexpand V2002-1 (Revision 1.11) > > texexpand: Error: More than one input file specified. > texexpand failed: No such file or directory > > Did I forget to configure something above? Or I > couldn't run latex2html under other directories such > as My Document? Were all these problems caused by > manually adding the version number of dvips? > > Thanks. - Daniel > I think the problem has to do with using long file names, particularly with spaces in them. Texexpand can't cope with long file names; it probably believes that C:\My Documents refers to more than one file, delimited by the space. So I'm afraid that you will need to put tex documents to be converted into a different directory. I know that MiKTeX has been designed to cope with long file names but, I was under the impression that, following earlier problems with using C:\Program Files, the installation defaults to c:\texmf, but my information could well be out-of-date. I presume that when you manually added the version of dvips you also ensured that the path $DVIPS in l2hconf.pm is correct? I am not entirely sure that latex2html will be happy though with the long file name. I'm also not sure where you have chosen to install to latex2html. Is it to a short-named file directory (so that no occurrences of ~ appear in the 8.3 version)? If not try re-installing latex2html to such a directory. In a post in January 2001 (missing from the archive) it was reported that: "although the problem wasn't with the spaces (the full path was c:\programme\localtexmf\latex2html) but with the number of the letters: As soon as I installed LaTeX2HTML into c:\l2h everything worked fine." If this doesn't work it may mean that MiKTeX will need to be re-installed to c:\texmf. I would be interested to hear if anybody has got latex2html working with MiKTeX installed in C:\Program Files. Luis Seidel's advice that "it is probably a good idea to avoid directories or folders with spaces (e.g., Program Files)" is worth following. I would extend it to any program that involves TeX in some way. At the very least it will eliminate this as a possible source for errors. Steve Mayer From fdrake@acm.org Wed Aug 14 15:06:48 2002 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Wed, 14 Aug 2002 10:06:48 -0400 Subject: [l2h] User-written latex class files with latex2html In-Reply-To: <200208141130.45872.warnhold@zedat.fu-berlin.de> References: <20020813091930.B5475@manager.orie.cornell.edu> <15705.3422.926507.879171@grendel.zope.com> <200208141130.45872.warnhold@zedat.fu-berlin.de> Message-ID: <15706.25592.177885.492756@grendel.zope.com> Werner Arnhold writes: > This is a very nice idea. I tried it myself, but I am not very experienced > especially in Perl. So I had a lot of trouble to find out the interface for > a Perl script to be written. Is there any documentation about that? I don't consider myself a Perl programmer generally, either, but I had some examples to work from, and extended & refactored that extensively, a little bit at a time. Perl itself, as painful as it is for a Python programmer to use, is not the hard part of LaTeX2HTML. The difficult part is understanding what LaTeX2HTML is doing, and the extension API is massively underdocumented. I reverse engineered a lot based on the support for specific markup in the LaTeX2HTML implementation, and asked a lot of questions here. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From peacedan@yahoo.com Wed Aug 14 19:30:19 2002 From: peacedan@yahoo.com (Daniel Young) Date: Wed, 14 Aug 2002 11:30:19 -0700 (PDT) Subject: [l2h] Install LaTeX2HTML on Windows XP In-Reply-To: <008a01c24381$ea53d540$0c01a8c0@maths> Message-ID: <20020814183019.9097.qmail@web14207.mail.yahoo.com> --- Steve Mayer wrote: > > I think the problem has to do with using long file > names, particularly > with spaces in them. Texexpand can't cope with long > file names; it > probably believes that C:\My Documents refers to > more than one file, > delimited by the space. So I'm afraid that you will > need to put tex > documents to be converted into a different > directory. > > I know that MiKTeX has been designed to cope with > long file names but, I > was under the impression that, following earlier > problems with using > C:\Program Files, the installation defaults to > c:\texmf, but my > information could well be out-of-date. > > I presume that when you manually added the version > of dvips you also > ensured that the path $DVIPS in l2hconf.pm is > correct? I am not entirely > sure that latex2html will be happy though with the > long file name. > > I'm also not sure where you have chosen to install > to latex2html. Is it > to a short-named file directory (so that no > occurrences of ~ appear in > the 8.3 version)? If not try re-installing > latex2html to such a > directory. > > In a post in January 2001 (missing from the archive) > it was > reported that: > > "although the problem wasn't with the spaces (the > full path was > c:\programme\localtexmf\latex2html) but with the > number of the letters: > As soon as I installed LaTeX2HTML into c:\l2h > everything worked fine." > > If this doesn't work it may mean that MiKTeX will > need to be > re-installed to c:\texmf. I would be interested to > hear if anybody has > got latex2html working with MiKTeX installed in > C:\Program Files. > > Luis Seidel's advice that "it is probably a good > idea to avoid > directories or folders with spaces (e.g., Program > Files)" is worth > following. I would extend it to any program that > involves TeX in some > way. At the very least it will eliminate this as a > possible source for > errors. > > Steve Mayer > Thanks a lot. After re-installed MikTeX in another directory with short name, I made one more step: config.bat could read the version of dvips. However, the images still didn't show up. Because of the default setting of the platform, the default value of $TMP in l2hconf.pm is C:\\DOCUME~1\\DANIEL~1\\Temp, which still contains long directory name. So I changed it to C:\\tmp\L2Himg (BTW, I also changed the default image type to gif; default png didn't work either) and ran it in debug mode. I could find that img001.ps and img002.ps were in the temporary directory along with two p*.pnm files and two p*.t00 files. test -debug showed that pnmcrop.exe wanted p*.t01 for image conversion. How do I fix this? My Ghostscript version is 7.03 and Netpbm version is 10.6. Thanks. - Daniel __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From Steve Mayer" Message-ID: <011301c243c8$b8320040$0c01a8c0@maths> ----- Original Message ----- From: "Daniel Young" To: Sent: 14 August 2002 19:30 Subject: Re: [l2h] Install LaTeX2HTML on Windows XP > Thanks a lot. After re-installed MikTeX in another > directory with short name, I made one more step: > config.bat could read the version of dvips. However, > the images still didn't show up. Because of the > default setting of the platform, the default value of > $TMP in l2hconf.pm is C:\\DOCUME~1\\DANIEL~1\\Temp, > which still contains long directory name. So I changed > it to C:\\tmp\L2Himg (BTW, I also changed the default > image type to gif; default png didn't work either) and > ran it in debug mode. I could find that img001.ps and > img002.ps were in the temporary directory along with > two p*.pnm files and two p*.t00 files. test -debug > showed that pnmcrop.exe wanted p*.t01 for image > conversion. How do I fix this? > My Ghostscript version is 7.03 and Netpbm version is > 10.6. > > Thanks. - Daniel Have a look at the thread 'Cannot convert images in test sample file' at http://tug.org/pipermail/latex2html/2001-November/thread.html to see if that helps at all. There have been a number of similar reports but I'm not sure anyone has totally solved it as I don't think it's a problem for all Win NT/2000/XP users. In pstoimgbat is 'my $def_tmp' correct or is it still pointing to C:\\DOCUME~1\\DANIEL~1\\Temp? In fact I would go through all the *.bat directories in \bin and check that the paths there are correct and don't involve ~ . Steve Mayer From ulrich.diez@student.uni-tuebingen.de Wed Aug 14 23:56:38 2002 From: ulrich.diez@student.uni-tuebingen.de (Ulrich Diez) Date: Thu, 15 Aug 2002 00:56:38 +0200 Subject: [l2h] Install LaTeX2HTML on Windows XP References: <20020814183019.9097.qmail@web14207.mail.yahoo.com> <011301c243c8$b8320040$0c01a8c0@maths> Message-ID: <001701c243e5$d9bcdc40$a2e30286@oemcomputer> Dear LATEX2HTML-installers, When trying to install LaTeX2HTML on different Windows-Systems (Win95, Win 98, Win2000, WinXP) according to the manual of Mr. Luis Seidel, I always made following experience: Install.bat and Test.bat or image-conversion in general always failed when a release of ActiveStates ActivePerl newer than build 503 was installed. Beneath other things, also problems with the numbering of the ps-images occured. Using the newer builds, e.g. the newest one (633 I think), lead to errors and failures. I do not know the reason for this behavior. Nevertheless I thought it was a good idea to tell this to the newsgroup. Probably somebody else can comment on this. When using ActivePerl build 503 I had no problems with long directory-names or '~' . Another Problem was that when installing a newer version of netpbm, png-images were created with some ugly grey backgrounds and black frames. They also were not placed correctly. The fix which is offered by Shigeharu Takeno helped. It can be found in the mailing-list-archive of www.LaTex2html.org , Archive: 2002-07, Message-Id: 200207111112.UAA09178@pc98tak.iee.niit.ac.jp, Thread: Re: [l2h] Re: l2h and recent netpbm . Yours sincerely Ulrich Diez ----- Original Message ----- From: "Steve Mayer" To: "latex2html" Sent: Wednesday, August 14, 2002 9:27 PM Subject: Re: [l2h] Install LaTeX2HTML on Windows XP > ----- Original Message ----- > From: "Daniel Young" > To: > Sent: 14 August 2002 19:30 > Subject: Re: [l2h] Install LaTeX2HTML on Windows XP > > > > Thanks a lot. After re-installed MikTeX in another > > directory with short name, I made one more step: > > config.bat could read the version of dvips. However, > > the images still didn't show up. Because of the > > default setting of the platform, the default value of > > $TMP in l2hconf.pm is C:\\DOCUME~1\\DANIEL~1\\Temp, > > which still contains long directory name. So I changed > > it to C:\\tmp\L2Himg (BTW, I also changed the default > > image type to gif; default png didn't work either) and > > ran it in debug mode. I could find that img001.ps and > > img002.ps were in the temporary directory along with > > two p*.pnm files and two p*.t00 files. test -debug > > showed that pnmcrop.exe wanted p*.t01 for image > > conversion. How do I fix this? > > My Ghostscript version is 7.03 and Netpbm version is > > 10.6. > > > > Thanks. - Daniel > > Have a look at the thread 'Cannot convert images in test sample file' at > http://tug.org/pipermail/latex2html/2001-November/thread.html to see if > that helps at all. > > There have been a number of similar reports but I'm not sure anyone has > totally solved it as I don't think it's a problem for all Win NT/2000/XP > users. > > In pstoimgbat is 'my $def_tmp' correct or is it still pointing to > C:\\DOCUME~1\\DANIEL~1\\Temp? > In fact I would go through all the *.bat directories in \bin and check > that the paths there are correct and don't involve ~ . > > Steve Mayer > > > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html > From Steve Mayer" <011301c243c8$b8320040$0c01a8c0@maths> <001701c243e5$d9bcdc40$a2e30286@oemcomputer> Message-ID: <01bf01c243ea$ee5ee580$0c01a8c0@maths> ----- Original Message ----- From: "Ulrich Diez" To: "latex2html" Sent: 14 August 2002 23:56 Subject: Re: [l2h] Install LaTeX2HTML on Windows XP > > Dear LATEX2HTML-installers, > > When trying to install LaTeX2HTML on different Windows-Systems > (Win95, Win 98, Win2000, WinXP) according to the manual of > Mr. Luis Seidel, I always made following experience: > > Install.bat and Test.bat or image-conversion in general always failed when > a release of ActiveStates ActivePerl newer than build 503 was installed. > Beneath other things, also problems with the numbering of the ps-images > occured. > > Using the newer builds, e.g. the newest one (633 I think), lead to errors > and failures. > I do not know the reason for this behavior. Nevertheless I thought it was a > good idea to tell this to the newsgroup. Probably somebody else can comment > on this. Would Daniel Young or anyone else having problems with image generation using Windows like to install an older version of Perl to see if it solves their problem? Older versions can be found at http://downloads.activestate.com/ActivePerl/Windows/5.005/Intel/ with the number in the filename giving the build. If this works then this would be a good workaround until the cause of the problem is found. If it also allows long file names then that would be fascinating. Steve Mayer From dan@brewer.me.uk Mon Aug 12 18:41:24 2002 From: dan@brewer.me.uk (Daniel Brewer) Date: Mon, 12 Aug 2002 17:41:24 +0000 Subject: [l2h] Image directory is not transferable Message-ID: Hello, I have a problem. I am a complete newbie to latex2html so i hope this does not sound too silly. I have a latex document with various images in it. When I run latex2html on it with the default settings it produces a great html document. The problem is that when I transfer it to my website server the images (not the maths symbols etc. just the actually images) in the html point to where they were on my home machine e.g. /home/daniel/latexdoc/. As my home machine isn't connected to the web permeantly it means that the images become broken links. Is there anyway to get the images to be self-contained in the directory produced by latex2html ao that I can just copy the directory to my webserver and it work? I can go through the entire html changing the links but this is pretty tiresome. Thanks Daniel Brewer From peacedan@yahoo.com Mon Aug 12 22:58:35 2002 From: peacedan@yahoo.com (Daniel Young) Date: Mon, 12 Aug 2002 14:58:35 -0700 (PDT) Subject: [l2h] Install l2h on XP Message-ID: <20020812215835.37593.qmail@web14202.mail.yahoo.com> Hi, I tried to install LaTeX2HTML on Windows XP. After I did what I could do, I could only get html files within the directory of installed latex2html; when I ran latex2html in other directories, I only got a directory with an empty subdirectory TMP and nothing else. Even for those html files, some texts cannot be properly displayed and some tags like <#460#> appear. Below is how I installed the LaTeX2HTML. I downloaded latex2html-2002-1.tar.gz from CTAN and unzip it to C:\Download\latex2html-2002-1. Because I feel the README and INSTALL are a little bit hard to follow and I am using MiK-TeX, I used the instructions on http://www.mayer.dial.pipex.com/l2h.htm. I believe I exactly followed the instructions and change the $path environment variable, except changing the some paths according to my original setting of MiK-TeX. The problem is when I tried the test.bat, there is no pstoimg.bat to check. I put the results of configuration below: Starting Configuration... config.pl, Release 2002-1 (Revision 1.46) Accompanies LaTeX2HTML, (C) 1999 GNU Public License. checking for old config file (cfgcache.pm)... not found (ok) checking for platform... MSWin32 (Windows 32 bit) checking for c:\Perl\bin\perl.exe... c:\Perl\bin\perl.exe checking perl version... 5.006001 checking if perl supports some dbm... yes checking if perl globbing works... yes checking for tex... C:\Program Files\texmf\miktex\bin\tex.exe checking for latex... C:\Program Files\texmf\miktex\bin\latex.exe checking for initex... C:\Program Files\texmf\miktex\bin\initex.exe checking for kpsewhich... C:\Program Files\texmf\miktex\bin\kpsewhich.exe checking for kpsewhich syntax... no, from which planet is your kpsewhich? checking for TeX include path... NONE Warning: Will not automatically install LaTeX2HTML style files. checking for dvips... C:\Program Files\texmf\miktex\bin\dvips.exe checking dvips version... no Error: could not determine dvips version Warning: Will not be able to generate images due to above failure. checking for html4-check... no checking for gswin32c... c:\program files\ghostgum\gs\gs7.03\bin\gswin32c.exe Error: could not execute c:\program files\ghostgum\gs\gs7.03\bin\gswin32c.exe Warning: Will not be able to generate images due to above failure. checking for pnmflip... \Program Files\ghostgum\netpbm\bin\pnmflip.exe checking for ppmquant... \Program Files\ghostgum\netpbm\bin\ppmquant.exe checking for pnmfile... \Program Files\ghostgum\netpbm\bin\pnmfile.exe checking for pnmcat... \Program Files\ghostgum\netpbm\bin\pnmcat.exe checking for pbmmake... \Program Files\ghostgum\netpbm\bin\pbmmake.exe checking for ppmtogif... \Program Files\ghostgum\netpbm\bin\ppmtogif.exe checking for pnmtopng... \Program Files\ghostgum\netpbm\bin\pnmtopng.exe checking for ppmtojpeg... no Use of uninitialized value in concatenation (.) or string at config\config.pl line 2388. Warning: You cannot directly translate/modify graphics of format. checking for pnmcut... \Program Files\ghostgum\netpbm\bin\pnmcut.exe checking for pnmpad... \Program Files\ghostgum\netpbm\bin\pnmpad.exe checking for pnmrotate... \Program Files\ghostgum\netpbm\bin\pnmrotate.exe checking for pnmscale... \Program Files\ghostgum\netpbm\bin\pnmscale.exe checking for giftopnm... \Program Files\ghostgum\netpbm\bin\giftopnm.exe checking for jpegtopnm... \Program Files\ghostgum\netpbm\bin\jpegtopnm.exe checking for pngtopnm... C:\Program Files\texmf\miktex\bin\pngtopnm.exe checking for tifftopnm... C:\Program Files\texmf\miktex\bin\tifftopnm.exe checking for picttoppm... \Program Files\ghostgum\netpbm\bin\picttoppm.exe checking for anytopnm... no Use of uninitialized value in concatenation (.) or string at config\config.pl line 2388. Warning: You cannot directly translate/modify graphics of format. checking for bmptoppm... no Use of uninitialized value in concatenation (.) or string at config\config.pl line 2388. Warning: You cannot directly translate/modify graphics of format. checking for pcxtoppm... C:\Program Files\texmf\miktex\bin\pcxtoppm.exe checking for sgitopnm... \Program Files\ghostgum\netpbm\bin\sgitopnm.exe checking for xbmtopbm... \Program Files\ghostgum\netpbm\bin\xbmtopbm.exe checking for xwdtopnm... \Program Files\ghostgum\netpbm\bin\xwdtopnm.exe checking if multiple pipes work... no Unfortunately multiple pipes are not reliable on this OS. checking for temporary disk space... C:\DOCUME~1\DANIEL~1\LOCALS~1\Temp creating cfgcache.pm creating test.bat creating install.bat Note: Will install... ... executables to : C:\latex2html\bin ... shared library items to : C:\latex2html ... unshared library items to : C:\latex2html Starting build... ... building latex2html build.pl (Revision 1.6) Building "latex2html.bat" from "latex2html.pin" ... building pstoimg build.pl (Revision 1.6) config\build.pl: Warning: Skipping build of pstoimg because of missing external programs. ... building texexpand build.pl (Revision 1.6) Building "texexpand.bat" from "texexpand.pin" ... building configuration module build.pl (Revision 1.6) Building "l2hconf.pm" from "l2hconf.pin" Configuration procedure finished The results did suggest skipping building pstoimg, but what are those missing external programs since I follow the instructions. There are also several other error messages regarding to gswin32c (which is executable by double click the icon) and the version of dvips (which is "This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com)"). Why the config.bat cannot recognize them and how do I fix these problems? Thanks. - Daniel __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From Steve Mayer" Message-ID: <005a01c2443c$c5dcbea0$0c01a8c0@maths> ----- Original Message ----- From: "Daniel Young" To: Sent: 12 August 2002 22:58 Subject: [l2h] Install l2h on XP > Hi, > > I tried to install LaTeX2HTML on Windows XP. > > After I did what I could do, I could only get html > files within the directory of installed latex2html; > when I ran latex2html in other directories, I only got > a directory with an empty subdirectory TMP and nothing > else. Even for those html files, some texts cannot be > properly displayed and some tags like <#460#> appear. > Below is how I installed the LaTeX2HTML. > > I downloaded latex2html-2002-1.tar.gz from CTAN and > unzip it to C:\Download\latex2html-2002-1. Because I > feel the README and INSTALL are a little bit hard to > follow and I am using MiK-TeX, I used the instructions > on http://www.mayer.dial.pipex.com/l2h.htm. > > I believe I exactly followed the instructions and > change the $path environment variable, except changing > the some paths according to my original setting of > MiK-TeX. The problem is when I tried the test.bat, > there is no pstoimg.bat to check. I put the results of > configuration below: > > Starting Configuration... > > config.pl, Release 2002-1 (Revision 1.46) > Accompanies LaTeX2HTML, (C) 1999 GNU Public License. > > checking for old config file (cfgcache.pm)... not > found (ok) > checking for platform... MSWin32 (Windows 32 bit) > checking for c:\Perl\bin\perl.exe... > c:\Perl\bin\perl.exe > checking perl version... 5.006001 > checking if perl supports some dbm... yes > checking if perl globbing works... yes > checking for tex... C:\Program > Files\texmf\miktex\bin\tex.exe > checking for latex... C:\Program > Files\texmf\miktex\bin\latex.exe > checking for initex... C:\Program > Files\texmf\miktex\bin\initex.exe > checking for kpsewhich... C:\Program > Files\texmf\miktex\bin\kpsewhich.exe > checking for kpsewhich syntax... no, from which planet > is your kpsewhich? > checking for TeX include path... NONE > Warning: Will not automatically install LaTeX2HTML > style files. > checking for dvips... C:\Program > Files\texmf\miktex\bin\dvips.exe > checking dvips version... no > Error: could not determine dvips version > Warning: Will not be able to generate images due to > above failure. > checking for html4-check... no > checking for gswin32c... c:\program > files\ghostgum\gs\gs7.03\bin\gswin32c.exe > Error: could not execute c:\program > files\ghostgum\gs\gs7.03\bin\gswin32c.exe > Warning: Will not be able to generate images due to > above failure. > checking for pnmflip... \Program > Files\ghostgum\netpbm\bin\pnmflip.exe > checking for ppmquant... \Program > Files\ghostgum\netpbm\bin\ppmquant.exe > checking for pnmfile... \Program > Files\ghostgum\netpbm\bin\pnmfile.exe > checking for pnmcat... \Program > Files\ghostgum\netpbm\bin\pnmcat.exe > checking for pbmmake... \Program > Files\ghostgum\netpbm\bin\pbmmake.exe > checking for ppmtogif... \Program > Files\ghostgum\netpbm\bin\ppmtogif.exe > checking for pnmtopng... \Program > Files\ghostgum\netpbm\bin\pnmtopng.exe > checking for ppmtojpeg... no > Use of uninitialized value in concatenation (.) or > string at config\config.pl line 2388. > Warning: You cannot directly translate/modify graphics > of format. > checking for pnmcut... \Program > Files\ghostgum\netpbm\bin\pnmcut.exe > checking for pnmpad... \Program > Files\ghostgum\netpbm\bin\pnmpad.exe > checking for pnmrotate... \Program > Files\ghostgum\netpbm\bin\pnmrotate.exe > checking for pnmscale... \Program > Files\ghostgum\netpbm\bin\pnmscale.exe > checking for giftopnm... \Program > Files\ghostgum\netpbm\bin\giftopnm.exe > checking for jpegtopnm... \Program > Files\ghostgum\netpbm\bin\jpegtopnm.exe > checking for pngtopnm... C:\Program > Files\texmf\miktex\bin\pngtopnm.exe > checking for tifftopnm... C:\Program > Files\texmf\miktex\bin\tifftopnm.exe > checking for picttoppm... \Program > Files\ghostgum\netpbm\bin\picttoppm.exe > checking for anytopnm... no > Use of uninitialized value in concatenation (.) or > string at config\config.pl line 2388. > Warning: You cannot directly translate/modify graphics > of format. > checking for bmptoppm... no > Use of uninitialized value in concatenation (.) or > string at config\config.pl line 2388. > Warning: You cannot directly translate/modify graphics > of format. > checking for pcxtoppm... C:\Program > Files\texmf\miktex\bin\pcxtoppm.exe > checking for sgitopnm... \Program > Files\ghostgum\netpbm\bin\sgitopnm.exe > checking for xbmtopbm... \Program > Files\ghostgum\netpbm\bin\xbmtopbm.exe > checking for xwdtopnm... \Program > Files\ghostgum\netpbm\bin\xwdtopnm.exe > checking if multiple pipes work... no > Unfortunately multiple pipes are not reliable on this > OS. > checking for temporary disk space... > C:\DOCUME~1\DANIEL~1\LOCALS~1\Temp > creating cfgcache.pm > creating test.bat > creating install.bat > Note: Will install... > ... executables to : C:\latex2html\bin > ... shared library items to : C:\latex2html > ... unshared library items to : C:\latex2html > Starting build... > ... building latex2html > build.pl (Revision 1.6) > Building "latex2html.bat" from "latex2html.pin" > ... building pstoimg > build.pl (Revision 1.6) > config\build.pl: Warning: Skipping build of pstoimg > because of missing external programs. > ... building texexpand > build.pl (Revision 1.6) > Building "texexpand.bat" from "texexpand.pin" > ... building configuration module > build.pl (Revision 1.6) > Building "l2hconf.pm" from "l2hconf.pin" > Configuration procedure finished > > The results did suggest skipping building pstoimg, but > what are those missing external programs since I > follow the instructions. > > There are also several other error messages regarding > to gswin32c (which is executable by double click the > icon) and the version of dvips (which is "This is > dvips(k) 5.86 Copyright 1999 Radical Eye Software > (www.radicaleye.com)"). Why the config.bat cannot > recognize them and how do I fix these problems? > > Thanks. - Daniel Looking at your config.log it is clear that the configuration program can't find anything that resides in C:\Program Files. So you have 2 options: 1. Try an older version of Perl as suggested by Ulrich Diez and mentioned in my earlier message http://tug.org/pipermail/latex2html/2002-August/001979.html where it may be possible to use long path names and/or 2. Reinstall Miktex, Ghostscript and all the other programs in directories with short file names (eg c:\texmf, c:\gs etc) and tell the config program you want Latex2html in eg c:\l2h. Ensure that you have completely uninstalled all the programs (including Latex2html installation) so that there is no possibility of programs being found in the old paths. I hope this will work. I will be particularly interested if option 1 works with long file names. Steve Mayer From weems@ship.saic.com Thu Aug 15 18:39:40 2002 From: weems@ship.saic.com (Molly Weems) Date: Thu, 15 Aug 2002 13:39:40 -0400 (EDT) Subject: [l2h] Image directory is not transferable In-Reply-To: Message-ID: On Mon, 12 Aug 2002, Daniel Brewer wrote: > I have a latex document with various images > in it. When I run latex2html on it with the default settings it > produces a great html document. The problem is that when I transfer it > to my website server the images (not the maths symbols etc. just the > actually images) in the html point to where they were on my home machine > e.g. /home/daniel/latexdoc/. As my home machine isn't connected to the > web permeantly it means that the images become broken links. > Is there anyway to get the images to be self-contained in the directory > produced by latex2html ao that I can just copy the directory to my > webserver and it work? I can go through the entire html changing the > links but this is pretty tiresome. FWIW, the way we solve this is to use relative paths in the latex document. For example: \includegraphics[height=3in]{figures/lmplot_anim} Note that it *doesn't* say \includegraphics[height=3in]{users/weems/figures/lmplot_anim} The relative path produces html that reads: SRC="../figures/lmplot_anim.gif" Then when I copy from one machine to another, I copy the html folders and the figures folder. As long as the two folders remain in the same location relative to each other, the html picks up the images just fine. HTH. -- Molly Weems Technical Writer and Editor Science Applications International Corporation Ship Technology Division (Division 463) Annapolis, Maryland, USA phone: 410-266-0991 or 301-261-8026 mailto:weems@ship.saic.com http://www.ship.saic.com From peacedan@yahoo.com Fri Aug 16 02:32:36 2002 From: peacedan@yahoo.com (Daniel Young) Date: Thu, 15 Aug 2002 18:32:36 -0700 (PDT) Subject: [l2h] Install LaTeX2HTML on Windows XP In-Reply-To: <01bf01c243ea$ee5ee580$0c01a8c0@maths> Message-ID: <20020816013236.25265.qmail@web14201.mail.yahoo.com> Well, this time things just don't work out. I downloaded and installed Active Perl 503 and even 469, which is the oldest one I could find from the site. However, test.bat -debug still said p.t01 not found. I hope that this has nothing to do with the directory name since this time I set $prefs{'TMPSPACE'} = 'C:\\tmp\\L2Himg'; in prefs.pm and the default temporary directory in all subsequent files (l2hconf.pm, pstoimg.bat) changed to that value; plus, I found the *.ps and p.pnm in the temporary directory. The similar issue was stated in "Cannot convert images in test sample file" of the 2001-November Archive, but the following discussions seemed to focus on how to find the temporary directory instead of the problem of what pnmcrop.exe did. Although test.bat -debug said that GS>Running "C:\texfiles\netpbm\bin\pnmcrop.exe -verbose < C:\tmp\L2Himg\l2h896\p488.pnm > C:\tmp\L2img\l2h896\p488.t01" this isn't true. The output files were actually p.t00 instead of p.t01. No wonder why p.t01 files not found and images couldn't be converted. Manually, this command works as expected, but in .bat file it strangely creates p.t00 files. Maybe that is a problem for NT or XP. The question is that how do we force it to create .t01 files in the .bat file. Thanks. -Daniel > From: "Ulrich Diez" > > To: "latex2html" > Sent: 14 August 2002 23:56 > Subject: Re: [l2h] Install LaTeX2HTML on Windows XP > > > > > > Dear LATEX2HTML-installers, > > > > When trying to install LaTeX2HTML on different > Windows-Systems > > (Win95, Win 98, Win2000, WinXP) according to the > manual of > > Mr. Luis Seidel, I always made following > experience: > > > > Install.bat and Test.bat or image-conversion in > general always failed > when > > a release of ActiveStates ActivePerl newer than > build 503 was > installed. > > Beneath other things, also problems with the > numbering of the > ps-images > > occured. > > > > Using the newer builds, e.g. the newest one (633 I > think), lead to > errors > > and failures. > > I do not know the reason for this behavior. > Nevertheless I thought it > was a > > good idea to tell this to the newsgroup. Probably > somebody else can > comment > > on this. > > Would Daniel Young or anyone else having problems > with image generation > using Windows like to install an older version of > Perl to see if it > solves their problem? Older versions can be found at > http://downloads.activestate.com/ActivePerl/Windows/5.005/Intel/ > with > the number in the filename giving the build. > > If this works then this would be a good workaround > until the cause of > the problem is found. If it also allows long file > names then that would > be fascinating. > > Steve Mayer > __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From Dr6583@aol.com Fri Aug 16 03:45:23 2002 From: Dr6583@aol.com (Dr6583@aol.com) Date: Thu, 15 Aug 2002 22:45:23 EDT Subject: [l2h] Install LaTeX2HTML on Windows XP Message-ID: <19d.70ceca9.2a8dc143@aol.com> In a message dated 8/15/2002 8:50:53 PM Central Daylight Time, peacedan@yahoo.com writes: > The output files were actually > p.t00 instead of p.t01. No wonder why > p.t01 files not found and images couldn't be > converted. Manually, this command works as expected, > but in .bat file it strangely creates p.t00 > files. Maybe that is a problem for NT or XP. I recall having similar problems in the past. Oddly, reinstalling everything (MikTeX, GS, Pearl, netpbm, L2H) to the same drive letter resolved the problem. Doesn't make sense, I know, but I recreated the scenario no less than 3 times with the same results. Now that everything is on the same logical drive (separate from the system partition, BTW) it all works perfectly. I did, however, keep short directory names on everything. I currently have on NT4: L2H 2002-1 (1.68) GS 7.04 netpbm 10.6 ActivePerl 5.6.1.631 ...and they are all installed on a separate NTFS partition from the system partition. In L2H the temp is set to l2htemp (completely separate from the NT tmp environment variable, BTW). Also, since we are on the subject of Windows, you may notice (if you ever get it working that is) that the default name for the local initialization file, .latex2html-init, does not sit well with Windows (at least not w/ NT so I assume not w/ 9x or XP either). After install, you may notice that the file is actually created as dot.latex2html-init. Evidently NT parses the leading period as a literal dot. If you don't plan on needing local customizations (i.e. control everything w/ l2hconf.pm) then this *shouldn't*, in theory, be an issue. But it can easily be resolved by renaming the file to something friendly to NT (and for that matter, DOS) , e.g. l2hinit in my case. Then, you can tell L2H about the change via the l2hconf.pm file by adding: $INIT_FILE_NAME = $ENV{'L2HINIT_NAME'} || 'l2hinit'; Notice if you use the suggested syntax in the remarks in l2hconf.pm it will not work, but the above syntax does work (courtesy of Ross, thanks). BTW ROSS, it would be nice if this was incorporated in a future release as the default for Windows users. All that said, I do find it strange that seemingly identical configurations will run on one Windows box and not another which IMO implies the configurations are *not* identical, of course. The $64K question is, *what* is different about my configuration which runs L2H perfectly, from other configurations which do not? Regards, Darrell From martin@orie.cornell.edu Fri Aug 16 11:15:22 2002 From: martin@orie.cornell.edu (William T. Martin) Date: Fri, 16 Aug 2002 06:15:22 -0400 Subject: [l2h] Illegal seek in pstoimg Message-ID: <20020816061522.A16776@manager.orie.cornell.edu> I am getting an "illegal seek" error message in pstoimg. According to one post, there is a fix for this in the CVS latex2html distribution, but I cannot find this. Has anyone experienced this problem and found a solution to it? Thank you, -- Bill Martin -- pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22497/p22510.pnm | /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace -trans '#ffffff' > img1.gif" failed: Illegal se latex2html -html_version 2.0 fall02.tex Note: Loading /net/trout/export/home2/martin/.latex2html-init Note: Initialising with file: /net/trout/export/home2/martin/.latex2html-init This is LaTeX2HTML Version 2002 (1.67) by Nikos Drakos, Computer Based Learning Unit, University of Leeds. Revised and extended by: Marcus Hennecke, Ross Moore, Herb Swan and others ...producing markup for HTML version 2.0 *** processing declarations *** Loading /usr/local/share/lib/latex2html/versions/latin1.pl OPENING /net/trout/export/home2/martin/public_html/work/fall02.tex Cannot create directory fall02/: File exists, reusing it. Reusing directory fall02/: Note: Working directory is /net/trout/export/home2/martin/public_html/work/fall02 Note: Images will be generated in /tmp/l2h22497 texexpand V2002 (Revision 1.11) Loading /usr/local/share/lib/latex2html/styles/texdefs.perl... Loading /usr/local/share/lib/latex2html/styles/article.perl Loading /usr/local/share/lib/latex2html/styles/html.perl Loading /usr/local/share/lib/latex2html/styles/htmllist.perl Loading /usr/local/share/lib/latex2html/styles/color.perl *** color is not supported with HTML version: 2.0 *** Loading /usr/local/share/lib/latex2html/styles/makeidx.perl Loading /usr/local/share/lib/latex2html/styles/epsfig.perl Reading ... %%%%%%++ @@@@@@@@@@@@ Translating ... 0/0:top of fall02: for fall02.html *** translating preamble *** ............ *** preamble done *** ;...;.. Writing image file ... This is TeX, Version 3.14159 (C version 6.1) (images.tex LaTeX2e <1996/12/01> patch level 1 Babel and hyphenation patterns for american, german, loaded. *** processing 1 images *** Generating postscript images using dvips ... This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software ' TeX output 2002.08.16:0537' -> /tmp/l2h22497/image (-> /tmp/l2h22497/image001) [1] (-> /tmp/l2h22497/image002) [2] Converting image #1 pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22497/p22510.pnm | /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace -trans '#ffffff' > img1.gif" failed: Illegal seek Error while converting image Doing section links .... Done. 45 % latex2html -version Note: Loading /net/trout/export/home2/martin/.latex2html-init Note: Initialising with file: /net/trout/export/home2/martin/.latex2html-init This is LaTeX2HTML Version 2002 (1.67) by Nikos Drakos, Computer Based Learning Unit, University of Leeds. -- ======================================================================= William T. Martin email: martin@orie.cornell.edu Cornell University/ORIE Fax: (607) 255-9129 257 Rhodes Hall Phone: (607) 255-9134 Ithaca, NY 14853 Public Key: http://www.orie.cornell.edu/~martin/public_key.html ======================================================================= From martin@orie.cornell.edu Fri Aug 16 11:44:22 2002 From: martin@orie.cornell.edu (William T. Martin) Date: Fri, 16 Aug 2002 06:44:22 -0400 Subject: [l2h] Illegal seek in pstoimg In-Reply-To: <20020816061522.A16776@manager.orie.cornell.edu>; from William T. Martin on Fri, Aug 16, 2002 at 06:15:22AM -0400 References: <20020816061522.A16776@manager.orie.cornell.edu> Message-ID: <20020816064422.B16776@manager.orie.cornell.edu> I turned debugging on, I find than an error occurs in ppmtogif (ppmtogif: EOF / read error reading magic number) when the latex2html image is converted. I am using LaTeX2HTML Version 2002 (1.67). Any ideas? -- Bill -- Here is some of the output with -debug turned on: 77 % latex2html -debug -html 2.0 fall02 Note: Loading /net/trout/export/home2/martin/.latex2html-init Note: Initialising with file: /net/trout/export/home2/martin/.latex2html-init This is LaTeX2HTML Version 2002 (1.67) by Nikos Drakos, Computer Based Learning Unit, University of Leeds. Revised and extended by: Marcus Hennecke, Ross Moore, Herb Swan and others ...producing markup for HTML version 2.0 ... Copyright (C) 1998 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. GS>GS>>>showpage, press to continue<< GS>Image "/tmp/l2h22589/p22602.pnm" is PPM, 778x2087 Running "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm | /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace -trans '#ffffff' > img1.gif" pnmcrop: cropping 2087 rows off the top pnmcrop: cropping 777 cols off the left ppmquant: making histogram... ppmquant: 0 colors found ppmquant: choosing 256 colors... ppmtogif: EOF / read error reading magic number pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm | /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace -trans '#ffffff' > img1.gif" failed: Illegal seek On Fri, Aug 16, 2002 at 06:15:22AM -0400, William T. Martin wrote: > > I am getting an "illegal seek" error message in pstoimg. According > to one post, there is a fix for this in the CVS latex2html distribution, > but I cannot find this. Has anyone experienced this problem and found a > solution to it? > > Thank you, > > -- Bill Martin -- > > pstoimg: Error: > "/usr/local/bin/pnmcrop < > /tmp/l2h22497/p22510.pnm | > /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace > -trans '#ffffff' > img1.gif" failed: Illegal se > > latex2html -html_version 2.0 fall02.tex > Note: Loading /net/trout/export/home2/martin/.latex2html-init > Note: Initialising with file: > /net/trout/export/home2/martin/.latex2html-init > This is LaTeX2HTML Version 2002 (1.67) > by Nikos Drakos, Computer Based Learning Unit, University of Leeds. > > Revised and extended by: > Marcus Hennecke, Ross Moore, Herb Swan and others > ...producing markup for HTML version 2.0 > > *** processing declarations *** > > Loading /usr/local/share/lib/latex2html/versions/latin1.pl > OPENING /net/trout/export/home2/martin/public_html/work/fall02.tex > > Cannot create directory fall02/: File exists, reusing it. > Reusing directory fall02/: > > Note: Working directory is > /net/trout/export/home2/martin/public_html/work/fall02 > Note: Images will be generated in /tmp/l2h22497 > > texexpand V2002 (Revision 1.11) > > Loading /usr/local/share/lib/latex2html/styles/texdefs.perl... > Loading /usr/local/share/lib/latex2html/styles/article.perl > Loading /usr/local/share/lib/latex2html/styles/html.perl > Loading /usr/local/share/lib/latex2html/styles/htmllist.perl > Loading /usr/local/share/lib/latex2html/styles/color.perl > *** color is not supported with HTML version: 2.0 *** > > Loading /usr/local/share/lib/latex2html/styles/makeidx.perl > Loading /usr/local/share/lib/latex2html/styles/epsfig.perl > Reading ... > %%%%%%++ > @@@@@@@@@@@@ > > Translating ... > 0/0:top of fall02: for fall02.html > > *** translating preamble *** > ............ > *** preamble done *** > ;...;.. > > Writing image file ... > > This is TeX, Version 3.14159 (C version 6.1) > (images.tex > LaTeX2e <1996/12/01> patch level 1 > Babel and hyphenation patterns for american, german, loaded. > > > *** processing 1 images *** > > Generating postscript images using dvips ... > This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software > ' TeX output 2002.08.16:0537' -> /tmp/l2h22497/image > (-> /tmp/l2h22497/image001) [1] > (-> /tmp/l2h22497/image002) [2] > Converting image #1 > pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22497/p22510.pnm | > /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace > -trans '#ffffff' > img1.gif" failed: Illegal seek > > Error while converting image > > Doing section links .... > Done. > > 45 % latex2html > -version Note: Loading /net/trout/export/home2/martin/.latex2html-init > Note: Initialising with file: > /net/trout/export/home2/martin/.latex2html-init > This is LaTeX2HTML Version 2002 (1.67) > by Nikos Drakos, Computer Based Learning Unit, University of Leeds. > > > -- > ======================================================================= > William T. Martin email: martin@orie.cornell.edu > Cornell University/ORIE Fax: (607) 255-9129 > 257 Rhodes Hall Phone: (607) 255-9134 > Ithaca, NY 14853 > Public Key: http://www.orie.cornell.edu/~martin/public_key.html > ======================================================================= > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html -- ======================================================================= William T. Martin email: martin@orie.cornell.edu Cornell University/ORIE Fax: (607) 255-9129 257 Rhodes Hall Phone: (607) 255-9134 Ithaca, NY 14853 Public Key: http://www.orie.cornell.edu/~martin/public_key.html ======================================================================= From ross@ics.mq.edu.au Fri Aug 16 12:36:12 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Fri, 16 Aug 2002 21:36:12 +1000 (EST) Subject: [l2h] Illegal seek in pstoimg In-Reply-To: <20020816064422.B16776@manager.orie.cornell.edu> from "William T. Martin" at "Aug 16, 2002 06:44:22 am" Message-ID: <200208161136.g7GBaCo06998@hera.ics.mq.edu.au> > I turned debugging on, I find than an error occurs in ppmtogif (ppmtogif: > EOF / read error reading magic number) when the latex2html image is > converted. I am using LaTeX2HTML Version 2002 (1.67). Any ideas? Yes; your image is too large for the page-height, causing a blank page to be ejected, which then gets cropped to nothing: > This software comes with NO WARRANTY: see the file PUBLIC for details. > GS>GS>>>showpage, press to continue<< > GS>Image "/tmp/l2h22589/p22602.pnm" is PPM, 778x2087 > Running "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm | > /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace > -trans '#ffffff' > img1.gif" > pnmcrop: cropping 2087 rows off the top ^^^^--------------- whoa, thats throwing a lot away! > pnmcrop: cropping 777 cols off the left ^^^------------------- and here. Now there is no bottom or right to trim. > ppmquant: making histogram... > ppmquant: 0 colors found ^^ --------------- there would be at least 2 colours if there was anything left of the image. > ppmquant: choosing 256 colors... > ppmtogif: EOF / read error reading magic number ^^^------------------ see, we are already at the end-of-file. > pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm | > /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace > -trans '#ffffff' > img1.gif" failed: Illegal seek > On Fri, Aug 16, 2002 at > 06:15:22AM -0400, > William T. Martin wrote: > > > I am getting an "illegal seek" error message in pstoimg. According > > to one post, there is a fix for this in the CVS latex2html distribution, > > but I cannot find this. Has anyone experienced this problem and found a > > solution to it? either scale down the image in the LaTeX source, or consult the manual about the $PAPERSIZE variable. > > > > > > *** processing 1 images *** ^^^^^^^^^^^^^^^^^^^ ----- there should be a single page for 1 image > > Generating postscript images using dvips ... > > This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software > > ' TeX output 2002.08.16:0537' -> /tmp/l2h22497/image > > (-> /tmp/l2h22497/image001) [1] > > (-> /tmp/l2h22497/image002) [2] ... but 2 pages were produced. The image is on the 2nd page. > > Converting image #1 > > pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22497/p22510.pnm | > > /usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace > > -trans '#ffffff' > img1.gif" failed: Illegal seek This was from the blank page 1. > > Error while converting image > > Hope this helps, Ross Moore From richl@mail.tfsd.sk.ca Sat Aug 17 00:18:54 2002 From: richl@mail.tfsd.sk.ca (Les Richardson) Date: Fri, 16 Aug 2002 17:18:54 -0600 (CST) Subject: [l2h] External image links prob Message-ID: Hi, Is there any way to generate links to external graphics without getting the full path? (ie. so that we can make the generated html output folder location independent?) I have this working for the nav images, but am not sure of any switch that does the same thing for external images. Merci, Les Richardson H.Hardcastle School Edam, Sk. Canada From ross@ics.mq.edu.au Sat Aug 17 00:46:36 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Sat, 17 Aug 2002 09:46:36 +1000 (EST) Subject: [l2h] External image links prob In-Reply-To: from Les Richardson at "Aug 16, 2002 05:18:54 pm" Message-ID: <200208162346.g7GNka821281@hera.ics.mq.edu.au> > Hi, > > Is there any way to generate links to external graphics without getting > the full path? (ie. so that we can make the generated html output folder > location independent?) I have this working for the nav images, but am not > sure of any switch that does the same thing for external images. Do you mean graphics using \htmladdimg which show in the HTML but not in a paper version ? In this case, if the directory is nearby, you just give the relative path; e.g. \htmladdimg[....any options....]{../images/clouds.jpg} Note that you need to give the path from where the HTML pages will be accessed --- not from where the LaTeX source resides. For images using \includegraphics there is the \graphicspath command, that is used to list paths to search for images. This applies to both LaTeX and LaTeX2HTML. LaTeX2HTML tries to use a relative path whenever it can. Besides, the web-server uses a different file-system to the local operating system, so full paths can be meaningless. > Merci, Hope this helps, Ross Moore > > Les Richardson > H.Hardcastle School > Edam, Sk. Canada > > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html From richl@mail.tfsd.sk.ca Sat Aug 17 03:29:57 2002 From: richl@mail.tfsd.sk.ca (Les Richardson) Date: Fri, 16 Aug 2002 20:29:57 -0600 (CST) Subject: [l2h] External image links prob In-Reply-To: <200208162346.g7GNka821281@hera.ics.mq.edu.au> Message-ID: Hi Ross, thanks, > Do you mean graphics using \htmladdimg > which show in the HTML but not in a paper version ? > In this case, if the directory is nearby, you just give the relative > path; e.g. > \htmladdimg[....any options....]{../images/clouds.jpg} > > Note that you need to give the path from where the HTML pages > will be accessed --- not from where the LaTeX source resides. I am using external .png images in generating a provincial curriculum for both a website and PDF printing. The problem is with the HTML generation... the LaTeX looks like: \includegraphics{cycle.png} but generated output looks like: <img src="/root/curriculum/cycle.png"> (I'm using entities since I don't know how this will render in your email client) Just a while ago I found that by changing the setting in "graphicx.perl" to $COPY_GRAPHICS = 1 the graphic files are copied and the generated HTML now has the correct local directory path (i.e. src="cycle.png") However, is this the "right way" to do it, since this just seems to be a "side effect" of the copying process, but is exactly what I want. Thanks, Les Richardson PS. Is there any work being done by anyone to generate MathML from LaTeX? I'm not even sure if there is a good "correspondence" between TeX and MathML. Just a thought. > For images using \includegraphics there is the \graphicspath > command, that is used to list paths to search for images. > This applies to both LaTeX and LaTeX2HTML. > > LaTeX2HTML tries to use a relative path whenever it can. > Besides, the web-server uses a different file-system to the > local operating system, so full paths can be meaningless. > > > > Merci, > > Hope this helps, > > Ross Moore > > > > > Les Richardson > > H.Hardcastle School > > Edam, Sk. Canada > > > > _______________________________________________ > > latex2html mailing list > > latex2html@tug.org > > http://tug.org/mailman/listinfo/latex2html > > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html > From luiz.eleno@poli.usp.br Fri Aug 16 18:08:24 2002 From: luiz.eleno@poli.usp.br (Luiz Tadeu Fernandes Eleno) Date: Fri, 16 Aug 2002 14:08:24 -0300 Subject: [l2h] Illegal seek in pstoimg References: <200208161136.g7GBaCo06998@hera.ics.mq.edu.au> Message-ID: <3D5D3188.3040501@poli.usp.br> I have had similar problems, but the message "illegal seek" appeared even when converting equations to .png figure format. Why that? ross@ics.mq.edu.au wrote: >>I turned debugging on, I find than an error occurs in ppmtogif (ppmtogif: >>EOF / read error reading magic number) when the latex2html image is >>converted. I am using LaTeX2HTML Version 2002 (1.67). Any ideas? >> > >Yes; your image is too large for the page-height, causing a blank >page to be ejected, which then gets cropped to nothing: > > >>This software comes with NO WARRANTY: see the file PUBLIC for details. >>GS>GS>>>showpage, press to continue<< >>GS>Image "/tmp/l2h22589/p22602.pnm" is PPM, 778x2087 >>Running "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm | >>/usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace >>-trans '#ffffff' > img1.gif" >>pnmcrop: cropping 2087 rows off the top >> > ^^^^--------------- whoa, thats throwing a lot away! > >>pnmcrop: cropping 777 cols off the left >> > ^^^------------------- and here. > Now there is no bottom or right to trim. > >>ppmquant: making histogram... >>ppmquant: 0 colors found >> > ^^ --------------- there would be at least 2 colours > if there was anything left of the image. > >>ppmquant: choosing 256 colors... >>ppmtogif: EOF / read error reading magic number >> > ^^^------------------ see, we are already at the end-of-file. > >>pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm | >>/usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace >>-trans '#ffffff' > img1.gif" failed: Illegal seek >> > > > >> On Fri, Aug 16, 2002 at >>06:15:22AM -0400, >>William T. Martin wrote: > >> >>>I am getting an "illegal seek" error message in pstoimg. According >>>to one post, there is a fix for this in the CVS latex2html distribution, >>>but I cannot find this. Has anyone experienced this problem and found a >>>solution to it? >>> > > either scale down the image in the LaTeX source, > or consult the manual about the $PAPERSIZE variable. > > >>> >>> *** processing 1 images *** >>> > ^^^^^^^^^^^^^^^^^^^ ----- there should be a single page for 1 image > > >>>Generating postscript images using dvips ... >>>This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software >>>' TeX output 2002.08.16:0537' -> /tmp/l2h22497/image >>>(-> /tmp/l2h22497/image001) [1] >>>(-> /tmp/l2h22497/image002) [2] >>> > > ... but 2 pages were produced. > The image is on the 2nd page. > > >>>Converting image #1 >>>pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22497/p22510.pnm | >>>/usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace >>>-trans '#ffffff' > img1.gif" failed: Illegal seek >>> > > This was from the blank page 1. > > >>>Error while converting image >>> > >Hope this helps, > > Ross Moore > >_______________________________________________ >latex2html mailing list >latex2html@tug.org >http://tug.org/mailman/listinfo/latex2html > From William.Waite@Colorado.EDU Mon Aug 19 20:52:33 2002 From: William.Waite@Colorado.EDU (William Waite) Date: Mon, 19 Aug 2002 13:52:33 -0600 Subject: [l2h] Unavailable packages Message-ID: <20020819135233.C10913@scotty.cs.colorado.edu> I get the following message at the end of a log: Copying navigation icons ... *** Adding document-specific styles *** *********** WARNINGS *********** No implementation found for style `algorithmic' No implementation found for style `a4wide' Unknown commands: bullet ; Done. I'm not particularly concerned about a4wide at the moment, but algorithmic is needed for a couple of figures. The bullet command appears to be coming out of some macro -- I haven't been able to find out whether its absence has caused any problems. From jo_latex2html@schlosser.info Tue Aug 20 10:31:51 2002 From: jo_latex2html@schlosser.info (Joachim Schlosser) Date: 20 Aug 2002 09:31:51 -0000 Subject: [l2h] Version Numbers and Changelog Message-ID: <20020820093151.5747.qmail@roadrunner.argonsoft.de> Hi Ross, I noticed that this weekend another new l2h release archive was put onto the ftp. Wouldn't it be better to increase the version number and update the changelog (which has its last entry for 0.98, BTW)? A versioning would give more transparency about what has changed when, and which release includes what bugfixes. As l2h is the de-facto standard tool for LaTeX to HTML conversion, it would be nothing strange if it would be traceable in terms of development. And I really would like to thank you for some bugfixes, but don't want to run a diff each time :-) best regards Joachim Schlosser From ross@ics.mq.edu.au Tue Aug 20 12:48:27 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Tue, 20 Aug 2002 21:48:27 +1000 (EST) Subject: [l2h] Announce: version 2002-2 Message-ID: <200208201148.g7KBmRv07687@hera.ics.mq.edu.au> Following the implementation of several new features, and some bug-fixes, the current version of LaTeX2HTML has now been increased to version 2002-2. The latest entry in the history log for latex2html.pin reads as follows: revision 1.69 date: 2002/08/17 05:56:57; author: RRM; state: Exp; lines: +219 -64 -- fixed a problem with \etalchar in .bbl files -- implemented multiple-authors and tabular layout on the title-page -- beware of \r\n combinations after % comments -- greater care about the styles used with theorem-like environments -- use $REFRESH_STYLES variable to force remaking .css file on each run -- fixed problem with hyperlink targets, with TOCs and mini-tocs in frames -- don't use &replace_strange_accents automatically, unless latin1 -- work around the repository problem with graphicx.perl read a file graphixx.perl instead, if it exists -- read latin1.pl earlier, but don't set the $CHARSET this makes it easier to generate pages with non-latin1 encodings -- other minor cleanups in some coding Other new files include: hebrew.pl for support of the iso-8859-8i charset graphixx.perl to provide a way to overcome the repository problem of serving graphics.perl instead of graphicx.perl Enjoy using LaTeX2HTML, Ross Moore From ljk@cs.mu.OZ.AU Wed Aug 21 07:04:24 2002 From: ljk@cs.mu.OZ.AU (Les Kitchen) Date: Wed, 21 Aug 2002 16:04:24 +1000 Subject: [l2h] Problem with \HTMLcode and APPLET attributes Message-ID: <200208210604.g7L64PA433881@mundook.cs.mu.OZ.AU> Hi LaTeX2HTMLarians, I'm doing some lecture notes about Java applets, and obviously want to conditionalize between the online HTML version, which has a live applet and a link to the source code, and the printed LaTeX version, which has just a screen-grab of the applet with the source code included verbatim. (Both versions show the literal mark-up needed.) I could do that fine with the right combination of latexonly, htmlonly and rawhtml environments, but that requires needlessly repeating the applet's basename and the width and height. So I decided to abstract that into a macro, parametrized by the applet's basename, width and height. That required using \HTMLcode to parameterize the generated raw HTML. Here I get problems. This simple LaTeX file: ================================================================ \documentclass{article} \usepackage{html} \begin{document} \HTMLcode[CODE=foo,WIDTH=256,HEIGHT=64]{APPLET}{} \end{document} ================================================================ sends LaTeX2HTML into an infinite loop (recursion?) endlessly printing: *** attributes CODE,HEIGHT,WIDTH are required for ***. This happens both with 2002-1 and 2K.1beta, on both MacOSX (with fink) and Red Hat 7.2 (x86). Wrapping a
tag around the applet -- as above, but with \HTMLcode{DIV}{\HTMLcode[CODE=foo,WIDTH=256,HEIGHT=64]{APPLET}{}} doesn't loop. It produces the above "*** attributes" message just once, but at the end gives the warnings: *********** WARNINGS *********** HEIGHT=64 is an invalid value in the tag CODE=foo is an invalid value in the tag WIDTH=256 is an invalid value in the tag I've tried different variants in the attributes (spacing, quotes), and tried having the applet body non-empty. But it's much the same result. The -debug and -verbosity flags haven't shed any light on what's going on. So I'm stumped. Any ideas? My workaround (as often when LaTeX(2HTML) can't quite do what I want) is to generate the bulky original LaTeX (latexonly, htmlonly, rawhtml) with appropriate substitutions via a Perl script, and \input it. But it's not the way I'd like to do it, especially when it looks like LaTeX2HTML *should* be able to do just what I want. Les. Les Kitchen, Senior Lecturer Department of Computer Science and Software Engineering ljk@cs.mu.oz.au The University of Melbourne phone: +61-3-8344-9101,-9104 Computer Vision & Machine Intelligence Lab fax: +61-3-9348-1184 From jo_latex2html@schlosser.info Wed Aug 21 18:53:40 2002 From: jo_latex2html@schlosser.info (Joachim Schlosser) Date: 21 Aug 2002 17:53:40 -0000 Subject: [l2h] vers 1.69 Message-ID: <20020821175340.8011.qmail@roadrunner.argonsoft.de> Hi Ross, I installed 1.69 under Win2k, and the only thing it does is to put out the following: D:\HTML\LaTeX>latex2html -help Error: No such image type ''. This installation supports (first is default): 1.68 did work perfectly, BTW. cheers Joachim From jo_latex2html@schlosser.info Wed Aug 21 19:45:15 2002 From: jo_latex2html@schlosser.info (Joachim Schlosser) Date: 21 Aug 2002 18:45:15 -0000 Subject: [l2h] vers 1.69 Message-ID: <20020821184515.31350.qmail@roadrunner.argonsoft.de> Sorry for bothering, at config time, ghostscript was not in my path any more, so the script could not find it. Now it works just fine. Are you planning to update the changes file with your release notes? cheers Joachim From Fabrice.Popineau@supelec.fr Thu Aug 22 11:19:29 2002 From: Fabrice.Popineau@supelec.fr (Fabrice Popineau) Date: Thu, 22 Aug 2002 12:19:29 +0200 Subject: [l2h] Re: [fptex] L2H for texlive In-Reply-To: (Jose Carlos Santos's message of "Thu, 22 Aug 2002 11:09:13 +0100 (WET DST)") References: Message-ID: * Jose Carlos Santos writes: > On Thu, 8 Aug 2002, Fabrice Popineau wrote: >> I'd like to hear about it. I have successfully converted a few >> documents. > I've tried it and it worked fine. However, it seems that you have > changed some files with EMACS and that you forgot to delete the > backup files; they end with ~. Thanks for your report and sorry about this. I'll try to pay attention to it for the next version. [To Ross Moore's attention: I guess you can add the pointer you wanted to] I have also compiled the whole new netpbm-10 for windows. I have no idea if it provides improvements for L2H but I'll upload it soon. Greetings, Fabrice From shige@iee.niit.ac.jp Thu Aug 22 11:39:38 2002 From: shige@iee.niit.ac.jp (Shigeharu TAKENO) Date: Thu, 22 Aug 2002 19:39:38 +0900 (JST) Subject: [l2h] expand "}%\n" to "}%%\n\n" in images.tex Message-ID: <200208221039.TAA11326@pc98tak.iee.niit.ac.jp> shige 08/22 2002 ---------------- latex2html (any recent version) seems to expand "}%\n" in latex file to "}%%\n\n" in images.tex. For example, \documentclass{article} \newenvironment{foo}[1]{\begin{equation}\label{#1}}% {\end{equation}} \begin{document} \begin{foo}{label:1} \int f(x) \end{foo} \end{document} is converted to ..... % \newenvironment{hoge}[1]{\begin{equation}\label{#1}}%% {\end{equation}} ..... in images.tex. But, the environment of images.tex is not correct (END part of the environment becomes NULL line), and the result of latex2html is not correct, too. To avoid the problem, we may use other definitions: [a] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{\end{equation}} [b] \newenvironment{foo}[1]{\begin{equation}\label{#1}} {\end{equation}} [c] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{% \end{equation}} [d] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{ \end{equation}} However, first definition [e] \newenvironment{foo}[1]{\begin{equation}\label{#1}}% {\end{equation}} is also correct in LATEX. Can I make latex2html not expand "}%\n" to "}%%\n\n" ? +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN shige@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161 +========================================================+ From Luc.VanEycken@esat.kuleuven.ac.be Thu Aug 22 13:27:18 2002 From: Luc.VanEycken@esat.kuleuven.ac.be (Luc Van Eycken) Date: Thu, 22 Aug 2002 14:27:18 +0200 Subject: [l2h] \label inside \caption vanishes Message-ID: <15716.55462.933140.105135@esat.kuleuven.ac.be> If a \label is included inside the \caption of a table, it vanishes unless the table contents is converted to an image. Take for instants the following LaTeX file: \documentclass{article} \begin{document} \begin{table} \caption{Test\label{testA}} \begin{tabular}{c} Some A text \end{tabular} \end{table} \begin{table} \caption{Test}\label{testB} \begin{tabular}{c} Some B text \end{tabular} \end{table} \begin{table} \caption{Test\label{testC}} Some C text \end{table} \end{document} In the resulting HTML file you will find anchors for testB and testC, but not for testA. If it's not an error, it's at least inconsistent behaviour. Below you'll find a patch for latex2html-2002-2 to solve this problem (by moving labels out of captions), but I am not sure if this is the best solution. Best regards, Luc Van Eycken --- latex2html-2002-2/latex2html.pin.orig 2002-08-18 07:15:01.000000000 +0200 +++ latex2html-2002-2/latex2html.pin 2002-08-22 12:21:41.000000000 +0200 @@ -8249,9 +8249,11 @@ # associate the br_id of the caption with the argument of the caption $contents =~ s/$caption_rx(\n)?/do { $key = $9; $caption = $10; $optional_caption = $3; + my $result = ''; + $caption =~ s!(\\label\s*($O\d+$C)[^<]+\2)!$result .= $1; ''!ge; $key = &filter_caption_key($key) if (defined &filter_caption_key); $optional_captions{$key} = $optional_caption||$caption; - $captions{$key} = $10; ''}/ego; + $captions{$key} = $caption; $result }/ego; # $captions{$9} = $10; $caption_mark }/ego; $key = $caption = $optional_caption = ''; From ross@ics.mq.edu.au Thu Aug 22 14:01:39 2002 From: ross@ics.mq.edu.au (Ross Moore) Date: Thu, 22 Aug 2002 23:01:39 +1000 (EST) Subject: [l2h] expand "}%\n" to "}%%\n\n" in images.tex In-Reply-To: <200208221039.TAA11326@pc98tak.iee.niit.ac.jp> from Shigeharu TAKENO at "Aug 22, 2002 07:39:38 pm" Message-ID: <200208221301.g7MD1di13440@hera.ics.mq.edu.au> Hello Shigeharu, > shige 08/22 2002 > ---------------- > > latex2html (any recent version) seems to expand "}%\n" in latex > file to "}%%\n\n" in images.tex. For example, > To avoid the problem, we may use other definitions: > > [a] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{\end{equation}} > [b] \newenvironment{foo}[1]{\begin{equation}\label{#1}} > {\end{equation}} > [c] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{% > \end{equation}} > [d] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{ > \end{equation}} Also, the following works: \newenvironment{foo}[1]{\begin{equation}\label{#1}}% {\end{equation}} ^----------------- no space here! > However, first definition > > [e] \newenvironment{foo}[1]{\begin{equation}\label{#1}}% > {\end{equation}} ^^----------------- with spaces. > is also correct in LATEX. > > Can I make latex2html not expand "}%\n" to "}%%\n\n" ? It's not just the end-of-line that causes the problem; for me the problem occurs only when there is something at the beginning of the next line too. I'll try to find out why this happens. All the best, Ross Moore > +========================================================+ > Shigeharu TAKENO NIigata Institute of Technology > kashiwazaki,Niigata 945-1195 JAPAN > shige@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161 > +========================================================+ > _______________________________________________ > latex2html mailing list > latex2html@tug.org > http://tug.org/mailman/listinfo/latex2html From e.d.andersen@mosek.com Fri Aug 23 09:25:06 2002 From: e.d.andersen@mosek.com (Erling D. Andersen) Date: Fri, 23 Aug 2002 10:25:06 +0200 Subject: [l2h] Tricky \newcommand? Message-ID: <5.1.0.14.2.20020823102503.02deab70@64.224.101.79> Hi, I do \newcommand{\licchksec}{\input{mosektoolslicchk.tex}} and then later in my document \licchksec It seems that latex2html never does the input. Although pdflatex does. Is that ok. Or am I doing something wrong. Erling ************************************************************************* MOSEK ApS C/O Symbion Science Park Fruebjergvej 3, Boks 16 DK-2100 Copenhagen O Denmark Phone (work): +45 3917 9907 Mobile-phone: +45 2362 9520 Fax: +45 3917 9823 Email to phone: 23629520@sms.tdm.dk Email: e.d.andersen@mosek.com Homepage: http://erling.andersen.name http://www.mosek.com/homepages/e.d.andersen/ ************************************************************************* From Fabrice.Popineau@supelec.fr Fri Aug 23 17:08:17 2002 From: Fabrice.Popineau@supelec.fr (Fabrice Popineau) Date: Fri, 23 Aug 2002 18:08:17 +0200 Subject: [l2h] Black borders (!) Message-ID: I have compiled netpbm-9.20 and that worked ok with some previous version of L2H. I have compiled netpbm-10.8 and black borders appear again. Now I used the pnmcrop.c from the 9.20 distribution to replace the newer one. Guess what : it doesn't work. So I suspect the problem is somewhere deeper inside the netpbm libraries. Any advice about this issue ? -- Fabrice Popineau ------------------------ e-mail: Fabrice.Popineau@supelec.fr | The difference between theory voice-mail: +33 (0) 387764715 | and practice, is that surface-mail: Supelec, 2 rue E. Belin, | theoretically, F-57070 Metz | there is no difference ! From Fabrice.Popineau@supelec.fr Fri Aug 23 22:45:22 2002 From: Fabrice.Popineau@supelec.fr (Fabrice Popineau) Date: Fri, 23 Aug 2002 23:45:22 +0200 Subject: [l2h] L2H / win32 / TeXLive Message-ID: <4rdl6yh9.fsf@supelec.fr> I'm uploading a ready to run version of LaTeX2HTML 2002-2 for TeXLive/Windows users. All you need to do is : - get ftp://ftp.dante.de/pub/fptex/0.6/support/netpbm-10.8-win32.zip ftp://ftp.dante.de/pub/fptex/0.6/support/latex2html-2002-2-win32.zip - unzip netpbm somewhere and add netpbm\bin to your PATH - unzip latex2html _at the root_ of your texlive installation (c:\TeXLive or whatever) - ensure ghostscript gswin32c.exe is on your PATH - that's all. You can run 'latex2html
Figure 1: help
Image /home/daniel/Test/images/yoyo.jpg
As you can see the path is /home/daniel/Test/images/yoyo.jpg, I would like it to be ./images/yoyo.jpg. I am new to latex2html and just used the default settings. Is there any settings that are needed for this kind of behaviour? Thanks Daniel Brewer On Thursday, August 15, 2002, at 05:39 PM, Molly Weems wrote: > On Mon, 12 Aug 2002, Daniel Brewer wrote: >> I have a latex document with various images >> in it. When I run latex2html on it with the default settings it >> produces a great html document. The problem is that when I transfer it >> to my website server the images (not the maths symbols etc. just the >> actually images) in the html point to where they were on my home >> machine >> e.g. /home/daniel/latexdoc/. As my home machine isn't connected to the >> web permeantly it means that the images become broken links. >> Is there anyway to get the images to be self-contained in the directory >> produced by latex2html ao that I can just copy the directory to my >> webserver and it work? I can go through the entire html changing the >> links but this is pretty tiresome. > > FWIW, the way we solve this is to use relative paths in the latex > document. For example: > \includegraphics[height=3in]{figures/lmplot_anim} > Note that it *doesn't* say > \includegraphics[height=3in]{users/weems/figures/lmplot_anim} > > The relative path produces html that reads: > SRC="../figures/lmplot_anim.gif" > > Then when I copy from one machine to another, I copy the html folders > and the figures folder. As long as the two folders remain in the same > location relative to each other, the html picks up the images > just fine. > > HTH. From danbe628@student.liu.se Fri Aug 30 14:25:28 2002 From: danbe628@student.liu.se (Daniel Berntsson) Date: Fri, 30 Aug 2002 15:25:28 +0200 Subject: [l2h] swedish.perl Message-ID: <3D6F7248.D014592@student.liu.se> This is a multi-part message in MIME format. --------------9F1AF8B83AC8823522C1C297 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I noticed there is no swedish.perl file. I don't know if this is an accident or if it has never existed but I needed one so I made one and here it is. / Daniel Berntsson --------------9F1AF8B83AC8823522C1C297 Content-Type: text/plain; charset=iso-8859-1; name="swedish.perl" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="swedish.perl" package swedish; print " [swedish]"; sub main'swedish_translation { @_[0] } package main; if (defined &addto_languages) { &addto_languages('swedish') }; sub swedish_titles { $toc_title = "Innehåll"; $lof_title = "Figurer"; $lot_title = "Tabeller"; $idx_title = "Index"; $ref_title = "Referenser"; $bib_title = "Litteraturförteckning"; $abs_title = "Sammanfattning"; $app_title = "Appendix"; $pre_title = "Förord"; $foot_title = "Fotnoter"; $thm_title = "Teorem"; $fig_name = "Figur"; $tab_name = "Tabell"; $prf_name = "Bevis"; $date_name = "Datum"; $page_name = "Sida"; # Sectioning-level titles $part_name = "Del"; $chapter_name = "Kapitel"; $section_name = "Avsnitt"; $subsection_name = "Underavsnitt"; $subsubsection_name = "Underunderavsnitt"; $paragraph_name = "Stycke"; # Misc. strings $child_name = "Underavsnitt"; $info_title = "Om detta dokument ..."; $also_name = "se även"; $see_name = "se"; # names in navigation panels $next_name = "Nästa"; $up_name = "Upp"; $prev_name = "Föregående"; # field names in email headers $encl_name = "encl"; $headto_name = "To"; $cc_name = "cc"; @Month = ('', 'januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'); $GENERIC_WORDS = "och|av|en|ett|för"; } sub swedish_today { local($today) = &get_date(); $today =~ s|(\d+)/0?(\d+)/|$2 $Month[$1] |; join('',$today,$_[0]); } # use'em &swedish_titles; $default_language = 'swedish'; $TITLES_LANGUAGE = 'swedish'; $swedish_encoding = 'iso-8859-1'; 1; --------------9F1AF8B83AC8823522C1C297--