From Julius Smith Tue Oct 3 00:23:14 2000 From: Julius Smith (Julius Smith) Date: Mon, 02 Oct 2000 16:23:14 -0700 Subject: [l2h] Adding html-code to the section In-Reply-To: <1000301181747.ZM11319@dsapp3.hmi.de> References: Message-ID: <4.3.1.0.20001002155414.03840148@shell16.ba.best.com> At 06:17 PM 3/1/2000 +0100, Thomas Anders wrote: >On Mar 1, 17:33, uliw@erdw.ethz.ch wrote: > > I wonder whether it is possible to add abitrary code (e.g. JavaScript), > > which is defined inside a latex-document, into the section of > > the generated html-doc? I looked through the manual, but without any > > luck... > >Define your own subroutine "meta_information" (use the one in >latex2html.config as a template) or use the variable $LATEX2HTML_META >(although I haven't tried the latter yet). In v99.2 beta 6, setting $LATEX2HTML_META cancels the existing setting, which is (from latex2html.pin) $LATEX2HTML_META = '' . "\n" unless ($LATEX2HTML_META); Similarly, overriding &meta_information() seems to require rewriting the whole thing. It seems that what we really need is a new variable $LATEX2HTML_META_HOOK and/or something like . &custom_META_hook($_) if (defined &custom_META_hook) in the existing meta_information sub. Julius From Ross Moore Tue Oct 3 02:46:37 2000 From: Ross Moore (Ross Moore) Date: Tue, 3 Oct 2000 12:46:37 +1100 (EST) Subject: [l2h] Adding html-code to the section In-Reply-To: <4.3.1.0.20001002155414.03840148@shell16.ba.best.com> from Julius Smith at "Oct 2, 2000 04:23:14 pm" Message-ID: <200010030146.MAA25421@hera.mpce.mq.edu.au> > At 06:17 PM 3/1/2000 +0100, Thomas Anders wrote: > >On Mar 1, 17:33, uliw@erdw.ethz.ch wrote: > > > I wonder whether it is possible to add abitrary code (e.g. JavaScript), > > > which is defined inside a latex-document, into the section of > > > the generated html-doc? I looked through the manual, but without any > > > luck... > > > >Define your own subroutine "meta_information" (use the one in > >latex2html.config as a template) or use the variable $LATEX2HTML_META > >(although I haven't tried the latter yet). > > In v99.2 beta 6, setting $LATEX2HTML_META cancels the existing setting, > which is (from latex2html.pin) > > $LATEX2HTML_META = '' > . "\n" > unless ($LATEX2HTML_META); > > Similarly, overriding &meta_information() seems to require rewriting the > whole thing. It seems that what we really need is a new variable > $LATEX2HTML_META_HOOK and/or something like > > . &custom_META_hook($_) if (defined &custom_META_hook) > > in the existing meta_information sub. $LATEX2HTML_META *is* the hook for this. The default is constant (apart from the version of LaTeX2HTML) so if you want something different, just put that into your .latex2html-init file. If you want the default + something extra, then just put Perl code into .latex2html-init that appends to the default value (copied into your init file). There are 3 other places where you can alter what goes into the header: &meta_information(...) Perl subroutine, taking $title as parameter called before a page is built (use the existing one in l2hconf.pm as a template). $STYLESHEET_CASCADE (default is empty) &replace_morelinks() no parameter, called after a page has been built (this subroutine replaces the $more_links_mark with $more_links, which is a collection of tags, built-up for each HTML page.) You could write an alternative subroutine that places these links, as well as putting other things either before or after. This can be used for information that is dependent upon other material on the HTML page; that is, information that may not have been available before the page has been processed. Thus there are 2 variables and 2 subroutines that can be used to affect what goes into the section. I really don't see any need for more than this. Hope this helps, Ross Moore > Julius > From Ms. Carolyn Mayr {SCS STAFF}" I'm assuming I'm sending this to the proper e-mail address. I've never installed or used latex2html so I need some help. I'm on a Sun Solaris 2.7 workstation and downloaded the latex2html-99.2beta8. I installed it per the UNIX instructions but when I type "latex2html file.tex" I get the following error: Error: No such image type ''. This installation supports (first is default): ************ During installation I ran make and this is the only error I got that could the problem: /usr/local/bin/perl /usr/local/latex2html-99.2beta8/config/build.pl -x pstoimg build.pl (Revision 1.5) /usr/local/latex2html-99.2beta8/config/build.pl: Warning: Skipping build of pstoimg because of missing external programs. touch pstoimg ************ I also got this error when I ran ./configure: checking if perl globbing works... yes checking for /usr/local/teTeX/bin/sparc-solaris/tex... /usr/local/teTeX/bin/sparc-solaris/te x checking for latex... no Warning: Will not be able to generate images due to above failure. checking for kpsewhich... no checking for TeX include path... NONE Warning: Will not automatically install LaTeX2HTML style files. checking for html4-check... no checking for /usr/local/bin/gs... /usr/local/bin/gs checking for ghostscript version... 5.50 checking for ghostscript portable bitmap device... pnmraw checking for full color device for anti-aliasing... ppmraw checking for ghostscript library and font paths... built-in paths are correct checking for pnmcrop... no Warning: Will not be able to generate images due to above failure. I have NO IDEA how to fix it. I'm not a programmer so any help you can give is appreciated. I've checked all the documentation and FAQs and list. Please help!!! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn A. Mayr (UNIX System Admin) Voice: (410) 293-6808 (sec-6800) Computer Science Department, DivMath&Sci Email: carolyn@usna.edu 572 Holloway Road, Chauvenet Hall, Stop 9F FAX: (410) 293-2686 U.S. Naval Academy WWW: http://www.mathsci.usna.edu Annapolis, MD 21402-5002 USNA: (410) 293-1000 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From uliw@erdw.ethz.ch (Ulrich G. Wortmann) Wed Oct 4 10:59:29 2000 From: uliw@erdw.ethz.ch (Ulrich G. Wortmann) (Ulrich G. Wortmann) Date: 04 Oct 2000 11:59:29 +0200 Subject: [l2h] l2h, $TEXINPUTS, and path expansion question Message-ID: Hi there, the manual says that the env-var $TEXINPUTS overrides the built in var $TEXINPUTS. However, echo $TEXINPUTS gives :::~/.TeX:/usr/doc/.TeX:~/latex-styles//:./eps:./../eps:~/.TeX:/usr/doc/ .TeX:~/latex-styles//:./eps:./../eps:~/.TeX:/usr/doc/.TeX:~/latex-styles //:./eps:./../eps nevertheless are file located in ~/latex-styles/www not found. This leads me to the the conclusion that either $TEXINPUTS is not acknowledged, or that the autamatic sub-directory expansion of latex does not work in l2h. Thanks for your comments Uli -- Uli Wortmann Dept. of Geology Fax (Switzerland) (1) 632 1030 ETH-Zuerich Fon 3694 Visit the SPOC-team at http://www.spoc.ethz.ch From uliw@erdw.ethz.ch (Ulrich G. Wortmann) Wed Oct 4 13:31:03 2000 From: uliw@erdw.ethz.ch (Ulrich G. Wortmann) (Ulrich G. Wortmann) Date: 04 Oct 2000 14:31:03 +0200 Subject: [l2h] Confusion over the different config files... Message-ID: Hi there, in the following I have few probably trivial questions. However, as I recently changed the OS, they may be apropriate.... The INSTALL files names 4 different configuration files: dot.latex2html-init, which IIUC is a template to .latex2html_init, the per user init-file latex2html.config, which is the site wide config file l2hconf.pm, which appears to be something similar. somehow, latex2html.config does not exist on my system, and I'm confused now. Likewise I'm unsure were to place the site-wide config file. Shouldn't that go into /etc ? THanks Uli -- Uli Wortmann Dept. of Geology Fax (Switzerland) (1) 632 1030 ETH-Zuerich Fon 3694 Visit the SPOC-team at http://www.spoc.ethz.ch From Pierre Veuillez Wed Oct 4 21:01:57 2000 From: Pierre Veuillez (Pierre Veuillez) Date: Wed, 04 Oct 2000 22:01:57 +0200 Subject: [l2h] Latex2html in french Message-ID: <39DB8CB5.FA5771F2@libertysurf.fr> Is there some french difusion list about LATEX2HTML? Thanks From Michael L. Hall" Greetings, all: I've discovered a rather insidious bug. It's caused when you have a .latex2html-init file in both your home directory and the current working directory. This situation happens since you might want to override your default version (in your home directory) with a version specific to the file you're l2h'ing. In this case, L2H seems to read in both but only use one, according to the output log: Note: Loading /home/hall/.latex2html-init Note: Loading ./.latex2html-init Note: Initialising with file: .latex2html-init However, when I do this with a -t flag to change the title, the title does not change. I think it's being redefined with a double read of init files, but I haven't looked "under the hood" to see what's really happening. Here's an abbreviated output to show you what I'm talking about. I've only left in what I consider to be the pertinent parts: ----------------------------------------------------------------- First, the version that messes up: galt% rm ../resume/* galt% cp ~/.latex2html-init . galt% latex2html -t "Michael L. Hall's Resume" -nomath -html_version 4.0,math -dir ../resume resume.tex Note: Loading /home/hall/.latex2html-init Note: Loading ./.latex2html-init Note: Initialising with file: .latex2html-init This is LaTeX2HTML Version 99.2beta8 (1.42) [snip] Translating ... 0/10:top of resume: for resume.html [snip] galt% grep TITLE ../resume/index.html resume ----------------------------------------------------------------- Next, the version that works (only difference is removal of ./.latex2html-init): galt% rm ../resume/* galt% rm .latex2html-init galt% latex2html -t "Michael L. Hall's Resume" -nomath -html_version 4.0,math -dir ../resume resume.tex Note: Loading /home/hall/.latex2html-init Note: Initialising with file: /home/hall/.latex2html-init This is LaTeX2HTML Version 99.2beta8 (1.42) [snip] Translating ... 0/10:top of resume:"Michael L. Hall's Resume" for resume.html [snip] galt% grep TITLE ../resume/index.html Michael L. Hall's Resume ----------------------------------------------------------------- As always, thanks for your efforts in developing this useful program! Cheers, -Mike ============================================================================ Dr. Michael L. Hall Los Alamos National Laboratory P.O. Box 1663, MS-D409 Research: computational physics, radiation Los Alamos, NM 87545 transport, heat pipes, numerical modeling, ph: 505-665-4312 fluid dynamics, magnetohydrodynamics ============================================================================ From Jose Luis Gallego" Hi all, I use minipage in Latex to create side-by-side graphics, which is ignored by Latex2html. The angle option in \includegraphics to rotate a graph is also ignored. How can one get these effects with Latex2Html? Thanks, Jose Luis From David Smead Sat Oct 7 04:13:00 2000 From: David Smead (David Smead) Date: Fri, 6 Oct 2000 20:13:00 -0700 (PDT) Subject: [l2h] Side-by-side graphics In-Reply-To: Message-ID: Jose, You might try putting the minipages in a tabular environment. Sincerely, David Smead http://www.amplepower.com. http://www.ampletech.com. On Fri, 6 Oct 2000, Jose Luis Gallego wrote: > > Hi all, > > > I use minipage in Latex to create side-by-side graphics, which is ignored by > Latex2html. The angle option in \includegraphics to rotate a graph is also > ignored. How can one get these effects with Latex2Html? > > Thanks, > > Jose Luis > > From Arne Battermann Sun Oct 8 15:47:32 2000 From: Arne Battermann (Arne Battermann) Date: Sun, 8 Oct 2000 16:47:32 +0200 Subject: No subject Message-ID: <00100816533003.00274@batman> Hey I hope that somebody can give me a hint, how I can change the background of mathematic parts inside html-documents created by latex2html. Normally latex2html puts a grey background behind the mathematic formulars and stuff like that, but IŽd like to have the same (white) background behind the formulars like behind the rest of the document I tried to find the right synopsis without success. It would be great, if somenbody could help me. Thanks a lot arne __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From Prof. Jerry Place" Message-ID: Have you tried making images gif instead of png. That worked for me. Look at latex2html --help and pay particular to the --image-type option. With this option, select --image-type gif. Good luck! -- Jerry Place -- CSTP On Sun, 8 Oct 2000, Arne Battermann wrote: > Hey > > I hope that somebody can give me a hint, how I can change the background of > mathematic parts inside html-documents created by latex2html. > Normally latex2html puts a grey background behind the mathematic formulars and > stuff like that, but IŽd like to have the same (white) background behind the > formulars like behind the rest of the document > > I tried to find the right synopsis without success. It would be great, if > somenbody could help me. > > Thanks a lot > arne > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > From Ross Moore Sun Oct 8 22:36:01 2000 From: Ross Moore (Ross Moore) Date: Mon, 9 Oct 2000 08:36:01 +1100 (EST) Subject: [l2h] Re: your mail In-Reply-To: <00100816533003.00274@batman> from Arne Battermann at "Oct 8, 2000 04:47:32 pm" Message-ID: <200010082136.IAA02442@hera.mpce.mq.edu.au> > Hey > > I hope that somebody can give me a hint, how I can change the background of > mathematic parts inside html-documents created by latex2html. > Normally latex2html puts a grey background behind the mathematic formulars and > stuff like that, but IŽd like to have the same (white) background behind the > formulars like behind the rest of the document In the preamble of your document use: \usepackage{color} \pagecolor{white} You may also need to remove/delete old images that were created with the default gray background, else the image-caching mechanism may not recognise that there is a change that needs updating. Hope this helps, Ross Moore > > I tried to find the right synopsis without success. It would be great, if > somenbody could help me. > > Thanks a lot > arne > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > From Awkster@aol.com Tue Oct 10 03:06:05 2000 From: Awkster@aol.com (Awkster@aol.com) Date: Mon, 9 Oct 2000 22:06:05 EDT Subject: [l2h] Re: Background color of graphics in l2h Message-ID: I've always wondered the same but wasn't going to research it. I figured that there was a posting or a faq somewhere where this has been addressed already. If so I'm interested in finding out. From Ross Moore Tue Oct 10 04:12:13 2000 From: Ross Moore (Ross Moore) Date: Tue, 10 Oct 2000 14:12:13 +1100 (EST) Subject: [l2h] Re: Background color of graphics in l2h In-Reply-To: from "Awkster@aol.com" at "Oct 9, 2000 10:06:05 pm" Message-ID: <200010100312.OAA24796@hera.mpce.mq.edu.au> > I've always wondered the same but wasn't going to research it. I figured that > there was a posting or a faq somewhere where this has been addressed already. > If so I'm interested in finding out. Here is the full situation: Matching the background of the HTML pages to the background of your images is impossible to achieve always, since your readers can choose whatever default background colour they wish. To overcome this, you must specify a background color for your pages as well as for your images. The easiest way to do this consistently is to have LaTeX code in the document preamble: \usepackage{color} \pagecolor{} e.g. = 'white' is the most common. Note that when processing documents with LaTeX, people tend to think that the background will be white, unless specified otherwise. That is not true. The background is 'transparent'; they just tend to print on white paper. (More on transparency below.) The default background colour in most Web browsers is 'gray'. LaTeX2HTML defaults the background color to gray, to match this (even though, nowadays, white is perhaps seen more often as a background, at least in commercially-constructed web-sites). There is a second reason for choosing 'gray' as the background colour, at least for images of pieces of text; e.g. accented letters, and mathematical symbols that do not appear in standard fonts. This is related to anti-aliasing effects. *** Transparent backgrounds for images ***. Having the background to an image as transparent completely solves the problem of matching the image background to the page-colour. When LaTeX2HTML is installed, it is usually with the setting to create images with transparent backgrounds --- provided software to do so is available on the local system. Both the GIF and PNG graphics formats support specifying that a particular colour should be shown as transparent. GIF, which has been around a lot longer, is well supported in most browsers, including support for the transparent color. PNG is not yet fully support in the most popular browsers; so although you can specify a transparent colour, the browser may not render it transparently. Instead the actual colour is shown. Thus it is desirable to produce .gif images ? Well, that depends on your attitude to the licensing/legality issues. Consult the following pages to get both sides to the controversy, and make up your own mind: http://burnallgifs.org/ http://www.unisys.com/unisys/lzw/default.asp The long and short of it is that if all browsers were to completely support the free PNG standard, then there would be no need to use the GIF format any more. This may well happen --- but who knows when ? Even then, it would be 3-4 years before it would be reasonable to assume that older versions of the browsers were no longer being used by many people. At this time, LaTeX2HTML would no longer include code for facilitating the production of images in GIF format. *** Anti-aliasing *** Anti-aliasing is the name given to the technique used to "soften the edges" of a low-resolution bitmapped image, resulting in a smoother/cleaner appearance e.g. to the shapes of character glyphs. This is very important for LaTeX2HTML, in which images are created typically as bitmaps at a resolution of 75dpi. Typically the fonts are provided at 600dpi, or as outlines which need to be filled. Clearly some averaging is needed, and the colour of the background has a profound effect on the results obtained. Experiments have shown that it is slightly better to anti-alias black characters against a gray-level of between 20% to 35%, rather than against pure white; i.e. 0%. The figure actually chosen for LaTeX2HTML is a matter of personal taste; it can be adjusted with the Perl variable: $LATEX_COLOR . Hope this helps, Ross Moore From Manish Bhatt Fri Oct 13 18:23:13 2000 From: Manish Bhatt (Manish Bhatt) Date: Fri, 13 Oct 2000 10:23:13 -0700 Subject: [l2h] How to get added to mailing list? Message-ID: <20001013102312.A28361@comdev.cc> Hi, How can I be added to the latex2html mailing list? Thanks, Manish -- Manish J. Bhatt Phone: 805.544.1089x2240 COM DEV Wireless http://www.comdev.cc 1024/8B286CC5 4F 59 8A 53 75 92 21 40 1B DF 74 0E 79 7D 13 A1 From John A. Turner" ok, for a while now I've been using this: \bodytext{background="stone.jpg" text="000000" link="0000ee" vlink="b22222" alink="ff0000"} to use an image as my background "color" for non-frames HTML (for frames I use stuff in .latex2html-init) I know there's: \usepackage{color} \pagecolor{white} for setting colors, but I didn't know how to make this use an image, and to be honest, \bodytext was working and I didn't want to mess with it but now it appears broken in 99.2b8, in that it causes a bogus Contents page to be created - check out this document: http://www.turner-family.com/John/l2h/99.2b8/badcontents/ hit Contents to see what I'm talking about a tarball containing the source and a makefile to generate the html is here: http://www.turner-family.com/John/l2h/99.2b8/ if the \bodytext line is commented out, the Comments section is correct any advice? -- John A. Turner, Ph.D. Senior Research Associate Blue Sky Studios, 44 S. Broadway, White Plains, NY 10601 http://www.blueskystudios.com/ (914) 259-6319 From JFreeman@cornell-iowa.edu Mon Oct 16 23:03:20 2000 From: JFreeman@cornell-iowa.edu (JFreeman@cornell-iowa.edu) Date: Mon, 16 Oct 2000 17:03:20 -0500 Subject: [l2h] 99.2b8 - bad Contents page Message-ID: I second the motion. I do not get exactly the same behavior with the Contents page, mine just has the word Contents, but my bodytext is different. I can also provide my bodytext contents if it would aid in debugging. Jim Message refers to posting by John Turner reporting problems with \bodytext and the Contents page in 99.2beta8 From Ross Moore Mon Oct 16 23:51:13 2000 From: Ross Moore (Ross Moore) Date: Tue, 17 Oct 2000 09:51:13 +1100 (EST) Subject: [l2h] 99.2b8 - bad Contents page In-Reply-To: from "JFreeman@cornell-iowa.edu" at "Oct 16, 2000 05:03:20 pm" Message-ID: <200010162251.JAA26702@hera.mpce.mq.edu.au> > I second the motion. I do not get exactly the same behavior with the > Contents page, mine just has the word Contents, but my bodytext is > different. > I can also provide my bodytext contents if it would aid in debugging. The \bodytext command sets the complete contents of the tag, allowing you to set *all* attributes at once, or just those that you want to be different from the default provided by the user's browser. On the other hand, \htmlbody lets you set just single attributes. e.g. \htmlbody{color=blue} \htmlbody{bgcolor=yellow} \htmlcolor{background=mydog.jpg} adds those 3 attribute settings separately, for the same result as: \htmlbody{color=blue,bgcolor=yellow,background=mydog.jpg} or \bodytext with the appropriate syntax. Please try your examples using \htmlbody and report whether you have the same behaviour regarding the spurious Table-of-Contents page. Hope this helps, Ross Moore > > Jim > > Message refers to posting by John Turner reporting problems with \bodytext > and the Contents page in 99.2beta8 From Steffen Klupsch Tue Oct 17 19:31:16 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Tue, 17 Oct 2000 20:31:16 +0200 Subject: [l2h] GIF/PNG Problems Message-ID: <39EC9AF4.70765AF1@iss.tu-darmstadt.de> I installed latex2html V99.2beta8 and tried to generate inlined gif pictures (.latex2html with $IMAGE_TYPE = "gif";) It does not work... The html code still requests a .png file (But there is neither the .png nor a .gif file in the publish directory.) (.PNG files are produced and used if I do not include the $IMAGE_TYPE entry in .latex2html) If someone has a fix, please let me know. Regards, Steffen -- +----------------------------------------------------------------------+ | Steffen Klupsch Alexanderstr. 10, D-64283 Darmstadt | | TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme | | Email: steffen@informatik.tu-darmstadt.de | | URL : http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ | | Phone: (+49)6151/16-6650 Fax: (+49)6151/16-4810 | +----------------------------------------------------------------------+ From Steffen Klupsch Wed Oct 18 11:00:29 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Wed, 18 Oct 2000 12:00:29 +0200 Subject: [l2h] GIF/PNG Problems References: <200010172159.IAA19261@hera.mpce.mq.edu.au> Message-ID: <39ED74BD.7BF8410F@iss.tu-darmstadt.de> Ross Moore wrote: > > > I installed latex2html V99.2beta8 > > and tried to generate inlined gif pictures > > > > (.latex2html with $IMAGE_TYPE = "gif";) > > > > It does not work... The html code still requests a .png file > > (But there is neither the .png nor a .gif file in the publish directory.) > > > > (.PNG files are produced and used if I do not include the $IMAGE_TYPE entry in > > .latex2html) > > > > If someone has a fix, please let me know. > > It used to be that the choice of GIF or PNG was a decision made > at installation time, not a run-time choice. > I am going to use the installation time switch. Perhaps the content of the '/latex2html-99.2beta8/INSTALL' file should be changed. It says: [...] o If your system supports both GIF and PNG generation (this is if you have both pnmtopng and ppmtogif), then the default image format will be PNG. This is because of legal limitations on the GIF format. To set the site-wide default to GIF, modify the order of the image formats in l2hconf.pm *before* you install: @IMAGE_TYPES = qw(gif png); # GIF is now default Alternatively, you may say "-image_type gif" on the command line or $IMAGE_TYPE = 'gif' in your .latex2html-init file. [...] The 'Alternatively' part caused my misunderstanding. Thanks for the help, Steffen -- +----------------------------------------------------------------------+ | Steffen Klupsch Alexanderstr. 10, D-64283 Darmstadt | | TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme | | Email: steffen@informatik.tu-darmstadt.de | | URL : http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ | | Phone: (+49)6151/16-6650 Fax: (+49)6151/16-4810 | +----------------------------------------------------------------------+ From Steffen Klupsch Wed Oct 18 14:11:28 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Wed, 18 Oct 2000 15:11:28 +0200 Subject: [l2h] latex-definition for css Message-ID: <39EDA180.B142C5D7@iss.tu-darmstadt.de> As writen in http://www.xray.mpe.mpg.de/mailing-lists/latex2html/1999-05/msg00017.html there was a command which allowed to add entries to the css file: \htmlsetstyle[BODY]{}{background-color: white; font-family : Courier New, Courier, serif;} This command is 'ignored' in 99.2beta8. (There is no error message, but the entries are not included in the .css file either.) Is there another way to get settings in the .css file? Regards, Steffen -- +----------------------------------------------------------------------+ | Steffen Klupsch Alexanderstr. 10, D-64283 Darmstadt | | TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme | | Email: steffen@informatik.tu-darmstadt.de | | URL : http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ | | Phone: (+49)6151/16-6650 Fax: (+49)6151/16-4810 | +----------------------------------------------------------------------+ From Steffen Klupsch Wed Oct 18 15:36:19 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Wed, 18 Oct 2000 16:36:19 +0200 Subject: [l2h] GIF/PNG Problems References: <200010172159.IAA19261@hera.mpce.mq.edu.au> <39ED74BD.7BF8410F@iss.tu-darmstadt.de> Message-ID: <39EDB563.E68A9DF9@iss.tu-darmstadt.de> Steffen Klupsch wrote: > > > I installed latex2html V99.2beta8 > > > and tried to generate inlined gif pictures > > > > > > (.latex2html with $IMAGE_TYPE = "gif";) > > > It does work. I didn't delete the image cache, so the images were not recalculated. The /latex2html-99.2beta8/INSTALL ist perfectly right. Perhaps an extra paragraph like: 'Don't forget to delete images from former runs if you want to change the image format. Image recycling prevents recreation of images even if the image format is changed. You may use the "-no_reuse" switch for this purpose.' Would fit after the 'Alternatively...' sentence. > [pasted from INSTALL] > o If your system supports both GIF and PNG generation (this is if you have > both pnmtopng and ppmtogif), then the default image format will be PNG. > This is because of legal limitations on the GIF format. To set the > site-wide default to GIF, modify the order of the image formats in > l2hconf.pm *before* you install: > > @IMAGE_TYPES = qw(gif png); # GIF is now default > > Alternatively, you may say "-image_type gif" on the command line or > $IMAGE_TYPE = 'gif' in your .latex2html-init file. > [...] > Thanks, Steffen +----------------------------------------------------------------------+ | Steffen Klupsch Alexanderstr. 10, D-64283 Darmstadt | | TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme | | Email: steffen@informatik.tu-darmstadt.de | | URL : http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ | | Phone: (+49)6151/16-6650 Fax: (+49)6151/16-4810 | +----------------------------------------------------------------------+ From Steffen Klupsch Wed Oct 18 17:54:11 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Wed, 18 Oct 2000 18:54:11 +0200 Subject: [l2h] \htmladdnormallinkfoot and frames Message-ID: <39EDD5B3.F0704A1A@iss.tu-darmstadt.de> Steffen Klupsch wrote: > I must provide a link which opens a 'new browser window'. > > A easy way to realize this feature is the 'target' property of the tag. > For example > > > An arbitrary precision floating point unit > This problem was experienced by some other users as well. I don't understand perl so I can't provide a patch, but a nice work-around is available. The following latex code produces a correct link: \HTMLcode[href=www.vlsi.informatik.tu-darmstadt.de/~steffen/, target=\_blank]{A}{You may click to see my homepage. } The backdraw: This is equivalent to \htmladdnormallink, there is no \htmladdnormallinkfoot equivalent. A suggestion for the 'future': Could the \htmladdnormallink...[%1]{%2}{%3} commands be redefined to call \HTMLcode[%1, HREF=%3]{A}{%2} ? There should also be a small change in the section 4.1 'Hyper-links in LaTeX' about the optional argument. This would be a 'quick patch' and allow the latex part to work as usual. Regards, Steffen +----------------------------------------------------------------------+ | Steffen Klupsch Alexanderstr. 10, D-64283 Darmstadt | | TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme | | Email: steffen@informatik.tu-darmstadt.de | | URL : http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ | | Phone: (+49)6151/16-6650 Fax: (+49)6151/16-4810 | +----------------------------------------------------------------------+ From Steffen Klupsch Wed Oct 18 19:56:47 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Wed, 18 Oct 2000 20:56:47 +0200 Subject: [l2h] \htmladdnormallinkfoot and frames References: <39EDD5B3.F0704A1A@iss.tu-darmstadt.de> Message-ID: <39EDF26F.7E58F13F@iss.tu-darmstadt.de> Steffen Klupsch wrote: > \HTMLcode[href=www.vlsi.informatik.tu-darmstadt.de/~steffen/, > target=\_blank]{A}{You may click to see my homepage. } The '~' sign is not working. It is replaced by a space. If I insert a '\symbol{126}' or '\~{}' or '~' the result is a '~}' Somewhere in the Perl code the sequence '\~{}' is replaced by '~}'. Regards, Steffen -- +----------------------------------------------------------------------+ | Steffen Klupsch Alexanderstr. 10, D-64283 Darmstadt | | TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme | | Email: steffen@informatik.tu-darmstadt.de | | URL : http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ | | Phone: (+49)6151/16-6650 Fax: (+49)6151/16-4810 | +----------------------------------------------------------------------+ From Ross Moore Thu Oct 19 00:14:09 2000 From: Ross Moore (Ross Moore) Date: Thu, 19 Oct 2000 10:14:09 +1100 (EST) Subject: [l2h] latex-definition for css In-Reply-To: <39EDA180.B142C5D7@iss.tu-darmstadt.de> from Steffen Klupsch at "Oct 18, 2000 03:11:28 pm" Message-ID: <200010182314.KAA11585@hera.mpce.mq.edu.au> > As writen in > http://www.xray.mpe.mpg.de/mailing-lists/latex2html/1999-05/msg00017.html > > there was a command which allowed to add entries to the css file: > > \htmlsetstyle[BODY]{}{background-color: white; font-family : Courier New, > Courier, serif;} > > This command is 'ignored' in 99.2beta8. No, it is not ignored. > (There is no error message, but the entries are not included in the > .css file either.) Yes, and no. > > Is there another way to get settings in the .css file? > You must remove the previous .css file first. Then a new .css will be created that includes the new settings. The reason for this is that you can edit the .css separately *after* having run LaTeX2HTML on your job. If you then re-run LaTeX2HTML, you presumably wish to keep the same edits to the .css, so it would be inappropriate to automatically overwrite the .css file with a fresh one. So if you want changes via \htmlsetstyle commands to be preserved, then you must remove the existing stylesheet file (or rename it to something else) and have a new one created. (Use the $STYLESHEET variable to specify the name of the stylesheet file that you wish to use; e.g. one that has been prepared independent of the LaTeX2HTML job, or one that has been built-up as a result of previous jobs.) Use a Makefile to update LaTeX2HTML documents in which there is significant CSS information specified. Have the 'make' code remove the stylesheet before calling upon LaTeX2HTML (with command-line options). I know this isn't the best possible strategy, but it is simple and allows you to do everything that you want with CSS information. Suggestions for improvements and/or alternative strategies, or Perl coding for implementations, are most welcome. Hope this helps, Ross Moore > Regards, Steffen > > > > -- > +----------------------------------------------------------------------+ > | Steffen Klupsch Alexanderstr. 10, D-64283 Darmstadt | > | TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme | > | Email: steffen@informatik.tu-darmstadt.de | > | URL : http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ | > | Phone: (+49)6151/16-6650 Fax: (+49)6151/16-4810 | > +----------------------------------------------------------------------+ From Steffen Klupsch Thu Oct 19 08:40:56 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Thu, 19 Oct 2000 09:40:56 +0200 Subject: [l2h] \HTMLcode and ~ Message-ID: <39EEA588.60B240AB@iss.tu-darmstadt.de> Ross Moore wrote: > > > Steffen Klupsch wrote: > > > \HTMLcode[href=www.vlsi.informatik.tu-darmstadt.de/~steffen/, > > > target=\_blank]{A}{You may click to see my homepage. } > > > > The '~' sign is not working. It is replaced by a space. > > If I insert a '\symbol{126}' or '\~{}' or '~' the result is a > > > > '~}' > > Yes, that is what you would expect from TeX. I disagree about that. In LaTeX I expect that \symbol{126} is printed as '~'. I don't know about plain TeX, but the result '~}' is not useful, even if you take foreign accents into account. The {} construct should be considered as a grouping element. I tried to trace the latex2html script by inserting 'print""' statements here and there. After the HTMLcode expansion the string \~{} is used as a replacement for \symbol{126}. Some kind of postprocessing is done on these results - but I didn't find the routine which is doing this. Ross Moore wrote: > Yes, because \HTMLcode is a LaTeX macro, and it's contents > are expanded as (La)TeX code, not as verbatim HTML. > > This is extremely powerful and eminently useful, as it allows > for compact/elegant coding that cannot be achieved in any other way. > See the detailed example in ``The LaTeX Web Companion'', > or the LaTeX2HTML manual. The \HTMLcode is a very good idea, but I NEED a possibility to get all valid html letters in the attribute list. Do you have a tip how to produce the tilde for the url address? Regards, Steffen From Steffen Klupsch Fri Oct 20 14:05:55 2000 From: Steffen Klupsch (Steffen Klupsch) Date: Fri, 20 Oct 2000 15:05:55 +0200 Subject: [l2h] Links with explicit TARGET attributes Message-ID: <39F04333.57080451@iss.tu-darmstadt.de> Ross explained an alternative way to produce links into (other) frames for all those who use the 'frame' extensions. I gave it a try - and it works well. :-) For everybody else to understand the approach Ross allowed me to forward his email to the list. Steffen Ross Moore wrote: > > > Ross Moore wrote: > > > > > > > Steffen Klupsch wrote: > > > > > \HTMLcode[href=www.vlsi.informatik.tu-darmstadt.de/~steffen/, > > > > > target=\_blank]{A}{You may click to see my homepage. } > > There is another way to get the target attribute set. > If you are using the 'frame' extension; e.g. > > latex2html -html_version 4.0,frame myfile.tex > > then support for the target is built-in. > It is handled by a Perl variable $target that is set and reset > according to the frame that needs to be linked-to; e.g. > for footnotes, Index, navigation etc. > > You can piggy-back onto this mechanism by altering the default > value of $target, using the \HTMLset command. > > i.e. \HTMLset{target}{\_blank} > > will give you target="_blank" for ant hyperlinks that are created > while $target has this value. > > For an example of this in action, see: > > http://www.iciam.com/ > > and find any of the Sponsor sections. > All the links (e.g. the logo images) jump to sponsor's pages, > using a new window. > > The code used there, in one particular place, is: > > \htmlrule[all]{} > \HTMLset{target}{\_sponsors} > > \htmladdnormallink{\ANZIAMlogo[align=RIGHT]}{\ANZIAMurl} > \htmladdnormallink{\CMISlogo[align=RIGHT]}{\CMISurl} > > Support the \htmlref{Sponsors}{Sponsors}: > > \htmladdnormallink{\AustMSlogo[align=LEFT]}{\AustMSurl} > \HTMLset{target}{} > > Note 2 important aspects: > > 1. the $target is reset to '' after the desired use is complete. > > 2. the link generated by \htmlref is unaffected, since this is > to an internal part of the document. The internal setting > of $target for this link locally overrides the value set manually. > > and a 3rd, which is far from obvious: > > If you have environments within the region of the document where > the value of $target is required, then you must use \HTMLsetenv > instead of \HTMLset ; e.g. > > \HTMLsetenv{target}{\_sponsors} > \begin{center} > \htmladdnormallink{\ANZIAMlogo[align=RIGHT]}{\ANZIAMurl} > \htmladdnormallink{\CMISlogo[align=RIGHT]}{\CMISurl} > > Support the \htmlref{Sponsors}{Sponsors}: > > \end{center} > \htmladdnormallink{\AustMSlogo[align=LEFT]}{\AustMSurl} > \HTMLsetenv{target}{} > > would use the '_sponsors' frame for the "centered" links, > but *not* for the 3rd link coming outside the environment. > This is because the last \HTMLsetenv{target}{} is actually > evaluated *before* the \htmladdnormallink on the line preceding it. > > LaTeX2HTML evaluates all complete environments and {...} groupings > before (i.e. unwrapped, or order-insensitive) bare commands. > In these terms, \HTMLset and \htmladdnormallink are order-insensitive, > whereas \HTMLsetenv is order-sensitive. > > > THis presupposes that you are using the frame.pl extension, > that redefines how hyperlinks are generated, to include the $target > variable. > > If you want this feature *without* using frames, > then copy the appropriate code-blocks from frame.pl > into the .latex2html-init file, and emulate the rebinding > that allows this code block to do it's thing. > (It's quite elementary Perl programming. :-) From Arne Battermann Sat Oct 21 11:25:32 2000 From: Arne Battermann (Arne Battermann) Date: Sat, 21 Oct 2000 12:25:32 +0200 Subject: [l2h] Converting a text with many formulars? Message-ID: <00102112270400.00885@batman> Hey Do I have an opportunity to convert a tex-file with many formulars to html, without getting thousands of images? Especially in cases with formulars in many rows of the tex-document, it would be great to put all the formulars between rows of plain text into one picture. Up to now latex2html produces many pictures and that takes really much time. I hope somebody can give me a hint. Arne _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From uliw@erdw.ethz.ch (Ulrich G. Wortmann) Sun Oct 22 10:25:20 2000 From: uliw@erdw.ethz.ch (Ulrich G. Wortmann) (Ulrich G. Wortmann) Date: 22 Oct 2000 11:25:20 +0200 Subject: [l2h] Links with explicit TARGET attributes In-Reply-To: Steffen Klupsch's message of "Fri, 20 Oct 2000 15:05:55 +0200" References: <39F04333.57080451@iss.tu-darmstadt.de> Message-ID: Hey Ross & Steffen > > > > > > > Steffen Klupsch wrote: > > > > > \HTMLcode[href=www.vlsi.informatik.tu-darmstadt.de/~steffen/, > > > > > target=\_blank]{A}{You may click to see my homepage. } > > There is another way to get the target attribute set. > If you are using the 'frame' extension; e.g. > > latex2html -html_version 4.0,frame myfile.tex > > then support for the target is built-in. Hey, thats great news! Which version itroduced this? Thanks Uli -- Uli Wortmann Dept. of Geology Fax (Switzerland) (1) 632 1030 ETH-Zuerich Fon 3694 Visit the SPOC-team at http://www.spoc.ethz.ch