debian/0000755000000000000000000000000012162374560007174 5ustar debian/latex2html.patch0000644000000000000000000000376211420614111012272 0ustar This patch disables the following exploit, described by Joey Hess : Here's the scenario where latex2html's undocumented --test_mode switch could be used by a lucky attacker to take over another user account. Let's assume that the target machine uses /home/users/ as its home directory, or alternatively, that someone has NMUed latext2html. As a first step, the attacker must convince the admin to give them an account on the machine, with a username of "aure" (or, if it's been NMUed, "joey" or the like). "Hi Bob, this is John over in tech support. I wonder if I could have a second username on the Debian server -- I'm playing some MUD games after work (company policy says it's ok), and I don't want to telnet in from my official work account. My user name on the MUD is 'aure'. No, I'm not playing a girl. :-P Thanks and I'll tell you all about this MUD thing at the barbeque on Friday!" Next, the attacker has to set up Projets/debian/latex2html-2000-beta1/texexpand, which is the program that will be executed by perl, and some of the other files referred to around line 429 of /usr/bin/latex2html. The dummy texexpand can do something like set up a suid shell for him to use later. Then it can go do something interesting to cover its tracks. In this case, it finds the user's tty and runs the bb demo on it, and then logs the user out. Now he has one more social hack to pull off. "Hi Mary, this is John.. How're the kids? I know you don't do much with the Debian server except that accounting stuff but Bob told me about a cute animation on the server. Something about "dynamically generated latext html animations", it went over my head but it sure is purty. The command to run to see it is "latex2html --text_mode". Neat eh?" --- latex2html.orig 2003-10-16 23:14:15.000000000 +0200 +++ latex2html 2003-10-16 23:17:22.000000000 +0200 @@ -442,2 +442,3 @@ if ($opt{test_mode}) { + return; # make /usr/bin/latex2html non-exploitable $TITLE = 'LaTeX2HTML Test Document'; debian/control0000644000000000000000000000363512144763725010613 0ustar Source: latex2html Section: tex Priority: optional Maintainer: Roland Stigge Build-Depends-Indep: perl, perl-doc, netpbm (>= 2:9.20), texlive-base-bin, ghostscript-x, texlive-latex-recommended, texlive-latex-extra, patch, debhelper (>= 9), tex-common Standards-Version: 3.9.4 Hompage: http://www.latex2html.org/ Package: latex2html Architecture: all Depends: ${misc:Depends}, perl, netpbm (>= 2:9.20), ghostscript-x, texlive-base-bin, texlive-latex-recommended, texlive-fonts-recommended, texlive-latex-extra, perl-doc Description: LaTeX to HTML translator LaTeX2HTML is a conversion tool that converts documents written in LaTeX to HTML format. In addition, it offers an easy migration path towards authoring complex hypermedia documents using familiar word-processing concepts. . LaTeX2HTML replicates the basic structure of a LaTeX document as a set of interconnected HTML files which can be explored using automatically generated navigation panels. The cross-references, citations, footnotes, the table of contents and the lists of figures and tables, are also translated into hypertext links. Formatting information which has equivalent ``tags'' in HTML (lists, quotes, paragraph breaks, type styles, etc.) is also converted appropriately. The remaining heavily formatted items such as mathematical equations, pictures or tables are converted to images which are placed automatically at the correct positions in the final HTML document. . LaTeX2HTML extends LaTeX by supporting arbitrary hypertext links and symbolic cross-references between evolving remote documents. It also allows the specification of conditional text and the inclusion of raw HTML commands. These hypermedia extensions to LaTeX are available as new commands and environments from within a LaTeX document. . Pstoimg, the part of latex2html that produces bitmap images from the LaTeX source, can support both GIF and PNG format. debian/changelog0000644000000000000000000006537012162370533011055 0ustar latex2html (2008-debian1-10) unstable; urgency=low * Use DEP5 for debian/copyright, adjust license for L2hos/ (Closes: #713855) Thanks to Sam Geeraerts -- Roland Stigge Tue, 25 Jun 2013 21:35:18 +0200 latex2html (2008-debian1-9) unstable; urgency=low * debian/control: Standards-Version: 3.9.4 -- Roland Stigge Wed, 15 May 2013 21:54:03 +0200 latex2html (2008-debian1-8) experimental; urgency=low * debian/control: Move Homepage from Description to own Source field (Closes: #700452) -- Roland Stigge Sat, 23 Feb 2013 16:03:31 +0100 latex2html (2008-debian1-7) unstable; urgency=low * Use dh_installtex instead of texhash (Closes: #669383) -- Roland Stigge Thu, 19 Apr 2012 17:15:40 +0200 latex2html (2008-debian1-6) unstable; urgency=low * prerm: Check for /var/www/usr/share/latex2html/icons before removing files (Closes: #666128) * debian/control: Standards-Version: 3.9.3 * debian/compat: 9 * debian/rules: dh style rules * Added patch to prevent perl warnings about deprecated "defined(%hash)" -- Roland Stigge Sun, 08 Apr 2012 13:19:06 +0200 latex2html (2008-debian1-5) unstable; urgency=low * Fixed download location in debian/copyright, thanks to Adrian Bunk (Closes: #591047) * debian/control: Standards-Version: 3.9.1 * Added debian/watch * Added lintian override to state that repackaged version is just an exception -- Roland Stigge Sat, 31 Jul 2010 19:29:44 +0200 latex2html (2008-debian1-4) unstable; urgency=low * Added eurosym support, thanks to Jorgen Schaefer (Closes: #163479) * Added README.Debian to document the hyperref package being missing-by-design (Closes: #542096) * Added patch to replace multiline matching option $* with "m" option on matching because latest perl gave warnings on latex2html startup -- Roland Stigge Sat, 24 Jul 2010 19:09:16 +0200 latex2html (2008-debian1-3) unstable; urgency=low * Removed url.sty from binary package (Closes: #589702) * Separated patches in debian/patches/ -- Roland Stigge Wed, 21 Jul 2010 20:49:47 +0200 latex2html (2008-debian1-2) unstable; urgency=low * Moved to new source format 3.0 (quilt), separated and documented patches * debian/control: Standards-Version: 3.9.0 * Added pstoimg.1 via pod2man * Added patch to pod2man to fix gray background detection in pstoimg, thanks to Diab Jerius (Closes: #291420) * Added patch to support spaces in filenames, thanks to Mazen NEIFER (Closes: #234879) -- Roland Stigge Sun, 18 Jul 2010 18:48:39 +0200 latex2html (2008-debian1-1) unstable; urgency=low * Repackaged upstream: Upstream Ross Moore didn't make a new release but instructed me how to remove certain files so that we can comply with Debian licensing standards: - Removed cweb2html/ - Removed docs/changebar* * debian/control: - Moved to main - Standards-Version: 3.8.3 - Depends and Build-Depends: texlive-latex-extra (for changebar.sty) -- Roland Stigge Sun, 17 Jan 2010 15:49:40 +0100 latex2html (2008-3) unstable; urgency=low * Extended debian/copyright to address ftpmaster's licensing concerns -- Roland Stigge Sun, 17 Jan 2010 15:24:20 +0100 latex2html (2008-2) unstable; urgency=low * New build environment includes pstoimg (Closes: #540310) * Also, @IMAGE_TYPES is set to "png,gif" now (Closes: #540197) -- Roland Stigge Mon, 10 Aug 2009 21:56:41 +0200 latex2html (2008-1) unstable; urgency=low * New upstream release - New version is licensed under GPLv2 (Closes: #221703, #521940) - debian/control: Standards-Version: 3.8.2 - debian/control: Section: tex (moving from non-free) -- Roland Stigge Wed, 01 Jul 2009 20:00:11 +0200 latex2html (2002-2-1-20050114-6) unstable; urgency=low * versions/math.pl: $mathend_mark = ""; (Closes: #424897) * debian/control: - Moved from tetex to texlive, removing all references to tetex (Closes: #349666) - Fixed description ("that that") (Closes: #442521) - Standards-Version: 3.7.2 * latex2html.1: Typo fixes (Closes: #412621) * styles/abnt.perl: Added abntex style (Closes: #367114) * pstoimg.pin: Prevent pnmtoimg from using rgb.txt (Closes: #368693) -- Roland Stigge Wed, 03 Oct 2007 23:02:54 +0200 latex2html (2002-2-1-20050114-5) unstable; urgency=low * debian/rules: Moved files from /usr/share/texmf-tetex/ to .../texmf/ (Closes: #346571) * debian/control: - Moved from Suggests: to Depends: perl-doc (Closes: #361901) - Added dependency alternatives to texlive (Closes: #349666) - Added homepage link (Closes: #355714) * latex2html.pin: Removed Nikos Drakos' homepage link (Closes: #361901) -- Roland Stigge Sun, 16 Apr 2006 14:01:44 +0200 latex2html (2002-2-1-20050114-4) unstable; urgency=low * pstoimg.pin: Corrected "Ghostscipt" typos (Closes: #345357) -- Roland Stigge Mon, 2 Jan 2006 15:12:02 +0100 latex2html (2002-2-1-20050114-3) unstable; urgency=low * debian/{postinst,prerm}: Removed all /usr/doc handling (Closes: #322832) -- Roland Stigge Sat, 27 Aug 2005 15:17:47 +0200 latex2html (2002-2-1-20050114-2) unstable; urgency=low * Upload of newer upstream version from experimental to sid * texinputs/html.sty and config/config.pl: Applied patches for compatibility with tetex 3.0 (Closes: #320187) * debian/control: Standards-Version: 3.6.2 * debian/copyright: Updated download location(s) * latex2html.1: Fixed groff_man syntax error * debian/postinst: Fixed bashism -- Roland Stigge Wed, 10 Aug 2005 21:30:34 +0200 latex2html (2002-2-1-20050114-1) experimental; urgency=low * New upstream release: Current version from CVS -- Roland Stigge Sat, 28 May 2005 10:26:18 +0200 latex2html (2002-2-1-10) unstable; urgency=low * Applied patch to enable multiple running instances of pstoimg thanks to Holger Ruckdeschel (Closes: #298329) -- Roland Stigge Sun, 20 Mar 2005 14:17:32 +0100 latex2html (2002-2-1-9) unstable; urgency=low * debian/{postinst,prerm}: Changed "command -v" to "which" (Closes: #292980) -- Roland Stigge Sun, 20 Feb 2005 19:10:02 +0100 latex2html (2002-2-1-8) unstable; urgency=low * debian/control: - Removed references to netpbm-nonfree because ppmtogif is in netpbm now - Fixed Description: describing GIF support as disabled (which was wrong), thanks to Jonas Meurer (Closes: #269447) -- Roland Stigge Wed, 1 Sep 2004 20:37:05 +0200 latex2html (2002-2-1-7) unstable; urgency=low * debian/control: Added Depends: tetex-bin (>= 1.0.7+20001218), tetex-extra to ensure presence of working dvips (Closes: #245376) * debian/copyright: Refined copyright notice * debian/README.debian: Renamed to README.Debian -- Roland Stigge Fri, 23 Apr 2004 14:02:44 +0200 latex2html (2002-2-1-6) unstable; urgency=low * Removed url.sty from binary package; upstream will do it as well (Closes: #231796) -- Roland Stigge Sat, 20 Mar 2004 17:44:51 +0100 latex2html (2002-2-1-5) unstable; urgency=low * Improved POSIX compatibility in postinst and prerm (Closes: #237958) -- Roland Stigge Mon, 15 Mar 2004 18:29:07 +0100 latex2html (2002-2-1-4) unstable; urgency=low * Removed superfluous menu entry (Closes: #227182) -- Roland Stigge Mon, 12 Jan 2004 11:42:49 +0100 latex2html (2002-2-1-3) unstable; urgency=low * l2hconf.pin: Set HTML_VERSION to 4.0 as default (Closes: #223436) * debian/rules: Removed --disable-gif from ./configure call * Added netpbm-nonfree to Build-Depends-Indep and Suggests -- Roland Stigge Tue, 9 Dec 2003 19:00:51 +0100 latex2html (2002-2-1-2) unstable; urgency=low * debian/docentry: Changed index.html to manual.html (Closes: #221769) -- Roland Stigge Thu, 20 Nov 2003 17:24:40 +0100 latex2html (2002-2-1-1) unstable; urgency=low * New upstream release (Closes: #177379) * New maintainer (Closes: #212000) * Moved latex2html to non-free according to the consensus at debian-legal and debian-devel (the "main" license of latex2html violates DFSG.1), resolved licensing issues in floatflt.ins (Closes: #204684) * Adjusted debian/control: Description, Depends (removed "fileutils | coreutils") * Adjusted manpage * Disabled undocumented test_mode in /usr/bin/latex2html (Closes: #206904) * Standards-Version: 3.6.1 -- Roland Stigge Thu, 16 Oct 2003 18:05:51 +0200 latex2html (2000-beta1-8) unstable; urgency=low * Added patch from Daniel Schepler (closes: #148958). -- Aurelien Beaujean Thu, 3 Apr 2003 11:36:17 +0200 latex2html (2000-beta1-7) unstable; urgency=low * Makes latex2html depends on coreutils. (closes: #165546, #175699) -- Aurelien Beaujean Tue, 7 Jan 2003 22:09:00 +0100 latex2html (2000-beta1-6) unstable; urgency=low * Adopting latex2html package. (closes: #158472) -- Aurelien Beaujean Thu, 29 Aug 2002 10:51:23 +0200 latex2html (2000-beta1-5) unstable; urgency=low * After a few days of consideration, upgrade "gs" from Recommends to Depends. There are a lot of documents that need pstoimg. (closes: #122501) * Fix rendering problem accodding to bug report. (closes: #122837) -- Chanop Silpa-Anan Sun, 9 Dec 2001 21:14:19 +1100 latex2html (2000-beta1-4) unstable; urgency=low * Fix romanian language styles. Thank Ionel. (closes: #119530) * Fix typo in graphicx.perl. Thank Rainer. (closes: #115977) * Use DVIPS_SAFE=1 for latex2html. I beleive the current version of dvips (tetexbin 1.0.7+20001218-7) in debian sid is working fine. (closes: #118095, #114807) * Downgrade perl-doc to Suggests. (closes: #112346) * Change the default /etc/latex2html.config to /etc/latex2html.conf . (closes: #88666) * User have option -mkdir to create new directory. (closes: #66046) * Fix black border problem. Thank Thomas. (closes: #95980, #110654) -- Chanop Silpa-Anan Tue, 27 Nov 2001 11:31:36 +1100 latex2html (2000-beta1-3.1) unstable; urgency=low * Downgrade perl-doc from Depends to Recommends. (closes: #110518) You only need this package when calling latex2html with --help. * Remove pnmtopng from Build-Depends and Depends lists. It is provided by netpbm which exists in boths lists. -- Chanop Silpa-Anan Wed, 29 Aug 2001 22:19:10 +1000 latex2html (2000-beta1-3) unstable; urgency=low * New Maintainer. (closes: #100373) * With permission from Adrian Bunk. * Change Depends from perl5 to perl. (closes: #93487) * Add perl-doc to Depends. (closes: #99484) -- Chanop Silpa-Anan Tue, 28 Aug 2001 07:44:06 +1000 latex2html (2000-beta1-2) unstable; urgency=low * Remove the files in /var/www/usr/share/latex2html/icons in a correct way. (closes: #85323) * Don't create a .deleteme in debian/rules. * Added a link to the texinputs directory in /usr/share/texmf/tex/latex. * Added links to texinputs/*.sty in docs/ . -- Adrian Bunk Wed, 21 Feb 2001 00:16:09 +0100 latex2html (2000-beta1-1) unstable; urgency=low * New upstream release. * This version fixes a bug with the output of equations. (closes: #80912) * This version fixes a bug where the wrong option was given to texexpand. (closes: #80931) * Delete /var/www/usr/share/latex2html when purging the package. (closes: #82312) * Added build dependencies. * Standards-Version: 3.5.0 -- Adrian Bunk Fri, 2 Feb 2001 18:22:00 +0100 latex2html (99.1-pre2-b8-2) unstable; urgency=low * New maintainer. (closes: #77659) * Configured with "--disable-gif" in debian/rules. -- Adrian Bunk Sat, 9 Dec 2000 22:00:29 +0100 latex2html (99.1-pre2-b8-1) unstable; urgency=low * New upstream version * Fixed the new location of the sources in several locations. This closes: Bug#67292 -- Manoj Srivastava Mon, 14 Aug 2000 21:26:18 -0500 latex2html (99.1-pre2-b6-11) frozen unstable; urgency=low * Added missing dependency on netpbm to pull in pnmcrop. This fixes a grave bug. closes: Bug#63191 -- Manoj Srivastava Sat, 29 Apr 2000 01:07:16 -0500 latex2html (99.1-pre2-b6-10) frozen unstable; urgency=low * Failed to config with old fileutils (3.16-5.3). Upgrading to a newer version of file ustils makes this work. The only change ahs been a dependency on the new fileutils version. This closes an important bug. closes: Bug#60739 -- Manoj Srivastava Tue, 21 Mar 2000 02:34:04 -0600 latex2html (99.1-pre2-b6-9) unstable; urgency=low * Fixed a typo in the description. closes: Bug#60046 * Use absolute links when related links would not work, for the /usr/doc/latex2tml symlink. -- Manoj Srivastava Tue, 14 Mar 2000 14:08:06 -0600 latex2html (99.1-pre2-b6-8) frozen unstable; urgency=low * Add a README.Debian to the foilhtml files, so that people are aware of the problem with landsacpe mode. Since the foilhtml files are not installed by default, this should be enough for an interim solution. I have apprised upstream about this as well. This is in relation to Bug#58371 * Fixed an upgrade bug when /usr/doc happens to be a symlink, and does not point to /usr/share/doc. A couple of people were bitten by this. * Added a huge man page for LaTeX2HTML, based on the TeX documentation. Mentioned that man page may be out of date, end refer people to the canonical documentation. closes: Bug#58876 -- Manoj Srivastava Sat, 4 Mar 2000 01:54:06 -0600 latex2html (99.1-pre2-b6-7) frozen unstable; urgency=low * Make sure the documents were not included twice. closes: Bug#57668 * It already fixes this bug. closes: Bug#57649 -- Manoj Srivastava Wed, 9 Feb 2000 18:58:59 -0600 latex2html (99.1-pre2-b6-6) frozen unstable; urgency=low * Make sure texhash is run even when we purge, rather than just remove. This closes: Bug#57346 * Allow package to allow gif creation (as long as the user has installed netpbm-nonfree). closes: Bug#57357 -- Manoj Srivastava Wed, 9 Feb 2000 09:35:52 -0600 latex2html (99.1-pre2-b6-5) frozen unstable; urgency=low * The postinst was vulnerable to being affected by symlinks (if, for some reason, the prerm failed). This has happended for latex2html; and created a grave bug. * There was a bug in the postinst in a case statement, that caused installation to fail for certain situations. * Also fixed an lintian warning -- Manoj Srivastava Tue, 8 Feb 2000 19:34:00 -0600 latex2html (99.1-pre2-b6-4) frozen unstable; urgency=low * Buggy prerm did not remove the /usr/doc/latex2html symlink. This caused upgrades from recent versions to fail. closes: Bug#57127, Bug#56939 * Made postinst not warn about cp -- Manoj Srivastava Mon, 7 Feb 2000 01:47:50 -0600 latex2html (99.1-pre2-b6-3) frozen unstable; urgency=low * Handle lone .dhelp files in dpc/latex2html/html as well. Also, correct and update invocation of cp. closes: Bug#57061 -- Manoj Srivastava Fri, 4 Feb 2000 23:09:14 -0600 latex2html (99.1-pre2-b6-2) frozen unstable; urgency=medium * Make sure the icons in /var/ww/usr/share/latex2html/icons/ are not removed when the package is removed (they are removed, though, when the package is purged). This is an important fix, since otherwise removing the package would break generated pages. -- Manoj Srivastava Wed, 2 Feb 2000 00:20:26 -0600 latex2html (99.1-pre2-b6-1) frozen unstable; urgency=low * A major bug fix release. I understand the bit about no new code, but this has been a major improvement since 99.1 (which was not a released version either). * Made sure that the old directory /var/www/usr/lib/latex2html is removed in the preinst, to make sure the symlink is created during install (else we were left with no symlink and an empty real dir) closes: Bug#49746 * Updated the new location of sources and the licence terms. This closes: Bug#46114 * Newer upstream fixed important bugs. closes: Bug#50653, Bug#45066, Bug#48658 -- Manoj Srivastava Sat, 29 Jan 2000 14:43:32 -0600 latex2html (99.1-3) unstable; urgency=low * Added a pointer to local copy of the documentation. closes: Bug#42017 -- Manoj Srivastava Thu, 19 Aug 1999 02:42:44 -0500 latex2html (99.1-2) unstable; urgency=low * Moved partially to debian-policy 3.0.0 (no /usr/doc move yet) * Moved to the new perl policy. closes: Bug#41293 -- Manoj Srivastava Thu, 15 Jul 1999 13:44:52 -0500 latex2html (99.1-1) unstable; urgency=low * The new upstream version has the newer url.sty (same version as in tetex-extra). closes: Bug#35957 * Fixed location of HTML docs in the docbase and menu entry files. closes: BUG#35204 * In potato, texmf has moved to /usr/share/texmf. Use that, and conflict with older tetex-base packages. This closes a grave bug. I shan't be moving from /usr/lib/latex2html until we adopt FHS, and decide to move. closes: Bug#35837 -- Manoj Srivastava Thu, 13 May 1999 22:50:15 -0500 latex2html (98.1-pre2-b8-4) unstable; urgency=low * use the nopipes version of pstoimg, since that solves image generation problems for some people. -- Manoj Srivastava Tue, 2 Mar 1999 09:51:25 -0600 latex2html (98.1-pre2-b8-3) unstable; urgency=low * Added doc-base support -- Manoj Srivastava Sun, 28 Feb 1999 00:28:36 -0600 latex2html (98.1-pre2-b8-2) unstable; urgency=low * Ensuer that icons are available under old names as well. fixes: BUG#32557 -- Manoj Srivastava Fri, 29 Jan 1999 02:21:08 -0600 latex2html (98.1-pre2-b8-1) unstable; urgency=low * More upstream bug fixes, * Ensure that the icons are avalable, even when looking under icons.png -- Manoj Srivastava Wed, 27 Jan 1999 01:21:19 -0600 latex2html (98.1-pre2-b6-2) unstable; urgency=low * Removed prompting from the postinst, since the package now comes configured for PNG. closes: Bug#27610 * Removed icon=none from the menuentry. This silences lintian. -- Manoj Srivastava Tue, 13 Oct 1998 11:50:34 -0500 latex2html (98.1-pre2-b4-1) unstable; urgency=low * New upstream pre-release (should be better than the last Debian version). * Now shipped with png support. This required changes to configuration files in /etc. closes: BUG#21127 * Now can find Override.pm. close: BUG#24768 -- Manoj Srivastava Fri, 24 Jul 1998 13:11:01 -0500 latex2html (98.1p5-1) unstable; urgency=low * New upstream bug fixing version. * Additiojnal work done on converting the manual. This should fix all known problems with it -- closes: Bug#20005 -- Manoj Srivastava Mon, 8 Jun 1998 15:56:40 -0500 latex2html (98.1p1-5) frozen unstable; urgency=low * This fixes a critical problem with LaTeX2HTML going into an infinite loop, rendering the program useless for people. The change involved is a single line; we just close an open stream in the child of a fork. For some reason, having the stream open in both the parent and the child was the source of the problem. This is critical enough to break the hard freeze. -- Manoj Srivastava Thu, 4 Jun 1998 11:44:54 -0500 latex2html (98.1p1-4) frozen unstable; urgency=low * Added to the extended documentation. Tried to clarify that if the recommended netpbm-non-free is not installed, some images shall not be converted. Also added that to README.debian * Tried to make sure that the LaTeX2HTML manual is really built correctly. * There was an old version of html.sty in the docs directory gumming up the works * Added a symlink from Chnages.gz to changelog.gz, satisfies lintian. * Added a crude hack to enable LaTeX2HTML from hanging while converting problems.tex in the manual (this is a major problem with the package that has been reported upstream). I think it is important to get this version with the manual in frozen despite a (pretty rare) bug. -- Manoj Srivastava Wed, 15 Apr 1998 03:17:45 -0500 latex2html (98.1p1-3) frozen unstable; urgency=high * Bug in TMP dir would wipe out the newly created HTML files in same circumstances. -- Manoj Srivastava Tue, 24 Mar 1998 12:45:12 -0600 latex2html (98.1p1-2) frozen unstable; urgency=low * Made configure-pstoimg write out to the /etc directory, and some minor cosmetic changes for readability. This is a major bug: it should not have been writing to /usr/lib * Added manual pages for configure-pstoimg and configure-latex2html * Added /etc/l2hpstoimg.cfg as a conffile. This is a bug: user changes need to be respected. * Upgraded to Standards Version 2.4.0.0 (no additional changes) * Do not generate a ps file, since the resolution of the printer is unknown. Leave the dvi file in so that peopel may generate the ps file at will. * closes: Bug#20005 -- Manoj Srivastava Fri, 20 Mar 1998 23:56:21 -0600 latex2html (98.1p1-1) unstable; urgency=low * New upstream bug fix version, with docs (used cvs-upgrade to upgrade) -- Manoj Srivastava Fri, 6 Mar 1998 02:04:07 -0600 latex2html (98.1-2) unstable; urgency=low * New dependency on netpbm-nonfree, since we need stuff to generate gif files. -- Manoj Srivastava Wed, 25 Feb 1998 15:35:43 -0600 latex2html (98.1-1) unstable; urgency=low * The beta versions were never released. This is the new upstream release, but there were enoufh source changes to restart a new CVS tree. * much faster, and generates much better output. * This parses everything I could throw at it (a few glitches exist, but lots better than before). * Moved to contrib cause it depends on netpbm, and generates GIF images. * The default image type is set to GIF. Can be changed to PNG by running configure-pstoimg. (needs pnmtopng to use PGN as default format). * closes: Bug#15663 -- Manoj Srivastava Wed, 25 Feb 1998 03:37:20 -0600 latex2html (98.1b-2) unstable; urgency=low * A new (beta) version that is much faster and look quite promising. However, they moved icons around internally, to make png icons available too, and this messed up the -1 version. -- Manoj Srivastava Thu, 22 Jan 1998 20:37:42 -0600 latex2html (98.1b-1) unstable; urgency=low * A new (beta) version that is much faster and look quite promising. -- Manoj Srivastava Thu, 22 Jan 1998 18:42:43 -0600 latex2html (96.1.h-9) unstable; urgency=low * Renamed the hacked verbatim.sty to not clash with the file by the same name in the tools of the base LaTeX distribution. closes:Bug#15244 * Commented out non-LaTeX text at the start of verbatim.sty -- Manoj Srivastava Mon, 1 Dec 1997 17:37:03 -0600 latex2html (96.1.h-8) unstable; urgency=low * Make sure the copyright is not compressed. closes:Bug#14417 -- Manoj Srivastava Tue, 11 Nov 1997 18:35:38 -0600 latex2html (96.1.h-7) unstable; urgency=low * Fixed empty section in menuentry that was causing problems with menu. This fixes BUG#10773. -- Manoj Srivastava Tue, 24 Jun 1997 16:17:14 -0500 latex2html (96.1.h-6) unstable; urgency=low * Reverted to HTML version 2.0 in the default latex2html.config file, sice there have been cases where setting the version 3.1 and using math mode lost in a big way; failing to recognize mathrm and other environments. * Install the LaTeX styles files in the proper location in the TDS (namely /usr/lib/texmf/tex/latex/latex2html). * Added commads to postinst and postrm to run texhash if appropiate. * This fixes BUG#9918. * This is the first version to be constructed with cvs-buildpackage, in fact, we are really useing the pre-release version. -- Manoj Srivastava Wed, 28 May 1997 22:26:15 -0500 latex2html (96.1.h-5) unstable; urgency=low * Fixed icon locations for the HTML files generated. * Added menu entry for the HTML documentation. -- Manoj Srivastava Wed, 7 May 1997 23:30:41 -0501 latex2html (96.1.h-4) unstable; urgency=low * Edited the documentation to reflect the fact that the cnverted files will work just fine when published on a HTTP server using the standard Document Root /var/www, but additional installation may be required if a non-standard Document Root is being used. * Changed HTML_VERSION in latex2html.config to 3.1 to support HTML tables and Font size changes by default. * Added symlinks to icons under /var/www so that the files converted by LaTeX2HTML can be viewd directly using a HTML browser, or put in a directory visible from the local HTTP server and viewd through the HTTP server. The solution is ugly, but it works, and should fix BUG#8536 * Changed maintaner name in control file as well -- Manoj Srivastava Thu, 1 May 1997 14:00:13 -0500 latex2html (96.1.h-3) frozen unstable; urgency=low * The following fix BUG#8536 and BUG#8537 * Added the file README.debian. * Removed debstd from the rules file * Expanded the manual page to actually describe the options * Expanded the manual page to talk about iconserver locations * Expanded README to insert a table to help decide icon server values * The install test now edits the executable after asking the user, unless the force option has been used. * The install test now edits the executable script only when necesary * install-test now works for Debian. * New maintainer -- Manoj Srivastava Tue, 8 Apr 1997 14:33:29 -0500 latex2html (96.1.h-2) frozen unstable; urgency=medium * Replaced dependency on obsolete packages with tetex-bin. * Removed empty README.debian file. -- Herbert Xu Wed, 26 Mar 1997 16:51:56 +1100 latex2html (96.1.h-1) unstable; urgency=low * Initial Release. -- Herbert Xu Sat, 8 Feb 1997 14:32:25 +1100 Local variables: mode: debian-changelog End: debian/watch0000644000000000000000000000012211425056456010222 0ustar version=3 http://ftp.gwdg.de/pub/ctan/support/latex2html/latex2html-(.*)\.tar\.gz debian/source.lintian-overrides0000644000000000000000000000030511740575005014050 0ustar # We sometimes have a repackaged version, but not generally and the (repackaged # and original) version numbers should be in order latex2html source: debian-watch-file-should-mangle-version line 2 debian/rules0000755000000000000000000000304711744063171010256 0ustar #!/usr/bin/make -f LIBDIR := /usr/share/latex2html TEXPATH := /usr/share/texmf/tex/latex/html TMPTOP := $(CURDIR)/debian/latex2html DOCDIR := $(TMPTOP)/usr/share/doc/latex2html CONVERT_CMD := '../latex2html -test_mode -no_math -html_version 4.0,math,frame -accent_images textrm -scalable_fonts' %: dh $@ --with tex override_dh_auto_configure: ./configure --verbose --prefix=/usr \ --shlibdir=$(LIBDIR) \ --libdir=$(LIBDIR) \ --with-perl=/usr/bin/perl \ --with-iconpath=/usr/share/latex2html/icons \ --with-texpath=$(TEXPATH) override_dh_auto_build: cd docs && ln -sf ../texinputs/html*.sty . $(MAKE) mkdir -p docs/manual $(MAKE) -C docs -f Makefile.frames L2H=$(CONVERT_CMD) \ LATEX2HTMLDIR=$(CURDIR) manual.dvi manual.ps manual.html override_dh_auto_clean: dh_auto_clean $(MAKE) -C docs clean rm -rf docs/manual override_dh_auto_install: $(MAKE) install DESTDIR=$(TMPTOP) INSTALLING_DEBIAN=1 (cd $(TMPTOP)/$(LIBDIR); \ mv l2hconf.pm $(TMPTOP)/etc/latex2html.conf; \ ln -s /etc/latex2html.conf l2hconf.pm ) pod2man pstoimg > $(TMPTOP)/usr/share/man/man1/pstoimg.1 rm $(TMPTOP)/$(TEXPATH)/url.sty (cd docs/manual/; tar cf - *.html *.png *.css) | \ (cd $(DOCDIR)/html; tar xf -) rm -rf $(TMPTOP)/$(LIBDIR)/docs patch $(TMPTOP)/usr/bin/latex2html debian/latex2html.patch chmod a+x $(TMPTOP)/$(LIBDIR)/makemap chmod a+x $(TMPTOP)/$(LIBDIR)/makeseg/makeseg debian/patches/0000755000000000000000000000000011740600014010606 5ustar debian/patches/l2hconf-fix-shebang.patch0000644000000000000000000000053111420664207015363 0ustar Description: Fixes bad #!/perl in l2hconf.pin This patch removes the first line "#!/perl" from l2hconf.pin Author: Roland Stigge --- latex2html-2008-debian1.orig/l2hconf.pin +++ latex2html-2008-debian1/l2hconf.pin @@ -1,4 +1,3 @@ -#!/perl # LaTeX2HTML l2hconf.pm # $Id: l2hconf.pin,v 1.17 2002/06/15 22:46:36 RRM Exp $ debian/patches/latex2html-fix-authoraddress.patch0000644000000000000000000000145611420665062017364 0ustar Description: Remove Nikos Drakos' address from documentation In some early Debian revision already, Nikos Drakos' old web address (_not_ the name) was removed from the documentation in favour of Ross Moore's one. Author: Roland Stigge --- latex2html-2008-debian1.orig/latex2html.pin +++ latex2html-2008-debian1/latex2html.pin @@ -14071,7 +14071,7 @@ sub default_textohtmlinfopage { , "LaTeX2HTML" , " translator Version $TEX2HTMLVERSION\n" , "

Copyright © 1993, 1994, 1995, 1996,\n" - , "Nikos Drakos, \n" + , "Nikos Drakos, \n" , "Computer Based Learning Unit, University of Leeds.\n" , "
Copyright © 1997, 1998, 1999,\n" , "Ross Moore, \n" debian/patches/add-floatflt-ins.patch0000644000000000000000000000644511421644145015001 0ustar Description: Add floatflt.ins to latex2html This patch adds floatflt.ins to latex2html. Regarding the license issue - the author Mats Dahlgren authorized Debian to redistribute the file under the LPPL. Author: Mats Dahlgren Bug-Debian: http://bugs.debian.org/204684 --- /dev/null +++ latex2html-2008-debian1/texinputs/floatflt.ins @@ -0,0 +1,73 @@ +% +% This is file `floatflt.ins', the installation file for the +% `floatflt' package. Last revised 1998/06/05. +% +% Copyright (c) 1994-1998 by Mats Dahlgren , +% http://www.homenet.se/matsd/ . All rights reserved. +% +% You may use the `floatflt' package freely, but at your own +% risk. The authors of floatflt.dtx and floatflt.ins (the +% complete `floatflt' package distribution) can not be held +% responsible for any consequence of your using any of these +% files, or files created from these, including hardware, +% software, and data damage. You may not make any changes to +% the files floatflt.dtx or floatflt.ins. You are allowed to make +% changes to the `\documentclass' and/or `\usepackage' commands +% of the file `floatexm.tex'. You may incorporate +% the code from these files in other files under different +% names, provided the original authors are given full credit for +% their work and that you yourself take the complaints from the +% user(s) of your file(s). You may freely distribute the +% files floatflt.dtx and floatflt.ins, provided: 1. You do not +% take money for the distribution or use of these files except +% for a nominal charge for diskettes and postage; and 2. You +% always distribute `floatflt.dtx' and `floatflt.ins' together +% at the same time. +% +% Additionally, Mats Dahlgren allowed us (Debian) +% to distribute this file under the LPPL license: +% +% Date: Mon, 13 Oct 2003 22:31:56 +0200 +% To: Roland Stigge +% From: Mats Dahlgren +% +% [...] +% i don't mind letting you distribute 'floatflt', or any +% package derived from that package, under the LPPL license. +% [...] +% +\NeedsTeXFormat{LaTeX2e}[1996/12/01] +\def\batchfile{floatflt.ins} +\input docstrip.tex + +\keepsilent +\preamble + +Copyright (c) 1994-1998 by Mats Dahlgren . +All rights reserved. See the file `floatflt.ins' for information +on how you may (re-)distribute the `floatflt' package files. +You are not allowed to make any changes to this file without +explicit permission from the author. + +\endpreamble + +\generate{\file{floatflt.sty}{\from{floatflt.dtx}{paketkod}}% + \file{floatexm.tex}{\from{floatflt.dtx}{exempelkod}}% + \file{floatfge.tex}{\from{floatflt.dtx}{gammalkod}}% +} + +\Msg{**************************************************************} +\Msg{ } +\Msg{ To finish the installation you have to move the file} +\Msg{ `floatflt.sty' into a directory searched by TeX.} +\Msg{ } +\Msg{ To type-set the documentation, run the file `floatflt.dtx'} +\Msg{ twice through LaTeX. The original `floatfig' documentation} +\Msg{ can be type-set by running the file `floatfge.tex' through } +\Msg{ LaTeX. To get an example file, run the file `floatexm.tex'} +\Msg{ through LaTeX.} +\Msg{ } +\Msg{*************************************************************} +%% +%% end of file floatflt.ins +%% debian/patches/fix-pdfoutput.patch0000644000000000000000000000131011421645167014456 0ustar Description: Fix pdfoutput in latex2html This patch fixes pdf output in latex2html. Author: Giuseppe Ghibò Bug: http://www.mail-archive.com/latex2html@tug.org/msg02757.html Bug-Debian: http://bugs.debian.org/320187 --- latex2html-2008-debian1.orig/texinputs/html.sty +++ latex2html-2008-debian1/texinputs/html.sty @@ -36,7 +36,12 @@ \ifx\pdfoutput\relax \let\pdfunknown\relax \RequirePackage{hyperref}\let\html@new=\renewcommand \else - \RequirePackage{hyperref}\let\html@new=\newcommand + \ifcase\pdfoutput + \let\pdfunknown\relax \let\html@new=\newcommand + \else + \RequirePackage[pdftex]{hyperref}\let\html@new=\newcommand + \fi + \fi \fi \else debian/patches/series0000644000000000000000000000111611740577052012041 0ustar add-url.patch pstoimg-dont-use-rgb-txt.patch pstoimg-fix-borders.patch pstoimg-fix-file-pattern.patch fix-typos.patch html-version-4.patch l2hconf-fix-shebang.patch latex2html-fix-authoraddress.patch override-dvips-dot-in-filename-problem.patch manual-fix-address.patch makefiles-fixes.patch fix-image-types.patch add-abnt.patch fix-romanian.patch fix-mathend-mark.patch add-floatflt-ins.patch fix-pdfoutput.patch fix-gs-stderr.patch debian-install.patch pstoimg-match-gray.patch fix-spaces-in-filenames.patch manpages.patch eurosym.patch match-multiline.patch latex2html-fix-defined.patch debian/patches/fix-typos.patch0000644000000000000000000000251111420650635013601 0ustar Description: Fix several typos This patch fixes several typos in the manual of pstoimg Author: Roland Stigge Bug-Debian: http://bugs.debian.org/345357 --- latex2html-2008-debian1.orig/pstoimg.pin +++ latex2html-2008-debian1/pstoimg.pin @@ -446,13 +446,13 @@ banner() unless($opt{quiet}); Use Ghostscript's anti-aliasing feature for rendering "softer" images. This applies to lines and edges of polygonal and oval or circular shapes. -Only valid if Ghostscipt 4.03 or higher is installed. +Only valid if Ghostscript 4.03 or higher is installed. =item B<-aaliastext> Use Ghostscript's anti-aliasing feature for "smoother" font characters, without the jagged edges. Similar to B<-antialias> for graphic components. -Only valid if Ghostscipt 4.03 or higher is installed. +Only valid if Ghostscript 4.03 or higher is installed. =item B<-center> I @@ -906,7 +906,7 @@ my $Brx = '-?\d+(?:\.\d*|)'; =head1 DESCRIPTION B iterates over the given input files and runs them through -Ghostscipt. The resulting pnm (portable anymap files) are processed +Ghostscript. The resulting pnm (portable anymap files) are processed with different Netpbm tools (cropping, color mapping, aligning, ...) and finally converted into (currently) either GIF or PNG format. The bitmaps can now be included e.g. in WWW pages. debian/patches/pstoimg-fix-borders.patch0000644000000000000000000000133111420646564015550 0ustar Description: Fix borders in pstoimg This patch fixes the borders of images in pstoimg. The origin of this patch is actually unknown. Feel free to tell me and I'll include it. Author: Roland Stigge --- latex2html-2008-debian1.orig/pstoimg.pin +++ latex2html-2008-debian1/pstoimg.pin @@ -1289,9 +1289,9 @@ sub crop_scale_etc { my $edge = $1; my $croparg = ''; if($edge =~ /b/i) { - $croparg = "-bot $PNMCROPOPT "; + $croparg = "-bot -sides $PNMCROPOPT "; } elsif($edge =~ /[tlr]/i) { - $croparg = "-$edge $PNMCROPOPT "; + $croparg = "-$edge -sides $PNMCROPOPT "; } elsif($edge =~ /s/i) { #RRM: shave at most 1-2 rows of white from the bottom #if @pipes@ debian/patches/pstoimg-fix-file-pattern.patch0000644000000000000000000000113511420646767016511 0ustar Description: Fix file pattern in pstoimg This patch fixes the file pattern in pstoimg to collect the files created by ghostscript. Author: Holger Ruckdeschel Bug-Debian: http://bugs.debian.org/298329 --- latex2html-2008-debian1.orig/pstoimg.pin +++ latex2html-2008-debian1/pstoimg.pin @@ -1006,7 +1006,7 @@ sub pstoimg { print qq{$prompt: Error: Could not open directory "$pnmdir": $!\n}; return 0; } - my @list = grep(/^\d+_\w*\./,readdir(DIR)); + my @list = grep(/^\d+_${pnmbase}\.pnm/,readdir(DIR)); closedir(DIR); if(@list) { my $i; debian/patches/match-multiline.patch0000644000000000000000000013220511422646673014750 0ustar Description: Replace $* with "m" matching option This patch replaces the $* flag with the matching option "m" for multiline matching since the former one isn't supported by latest perl. Author: Roland Stigge --- latex2html-2008-debian1.orig/latex2html.pin +++ latex2html-2008-debian1/latex2html.pin @@ -10618,19 +10618,17 @@ sub do_rightquotes { (($HTML_VERSION < 5 sub do_cmd_parbox { local($_) = @_; local($args, $contents, $dum, $pat); - $* = 1; # Multiline matching ON ($dum,$pat) = &get_next_optional_argument; # discard this ($dum,$pat) = &get_next_optional_argument; # discard this ($dum,$pat) = &get_next_optional_argument; # discard this $args .= $pat if ($pat); $pat = &missing_braces unless ( - (s/$next_pair_pr_rx/$pat=$2;''/eo) - ||(s/$next_pair_rx/$pat=$2;''/eo)); + (s/$next_pair_pr_rx/$pat=$2;''/eom) + ||(s/$next_pair_rx/$pat=$2;''/eom)); $args .= "{".$`.$pat."}"; $contents = &missing_braces unless ( - (s/$next_pair_pr_rx/$contents=$2;''/eo) - ||(s/$next_pair_rx/$contents=$2;''/eo)); - $* = 0; # Multiline matching OFF + (s/$next_pair_pr_rx/$contents=$2;''/eom) + ||(s/$next_pair_rx/$contents=$2;''/eom)); $args .= "{".$`.$contents."}"; if ($NO_PARBOX_IMAGES) { $contents = join ('', &do_cmd_par(), $contents, '

' ); @@ -11445,7 +11443,6 @@ sub list_helper { # $/ = $savedRS; # - $* = 1; # Multiline matching ON if (($tag =~ /DL/)&&$labels) { local($label,$aft,$br_id); s/\\item\b[\s\r]*([^\[])/do { @@ -11454,9 +11451,8 @@ sub list_helper { $label = &translate_environments( "$O$br_id$C$label$O$br_id$C"); join('',"\\item\[" , $label, "\]$aft" ); - }/eg; + }/egm; } - $* = 0; # Multiline matching OFF # This deals with \item[xxx] ... if ($tag =~ /DL/) { @@ -13173,9 +13169,7 @@ sub wrap_raw_arg_cmds { my $padding = ($after =~ /^[a-zA-Z]/s)? ($cmd =~ /\W$/ ? '':' '):''; if ($raw_arg_cmds{$cmd} && defined &$wrapper) { - $* = 1; ($wrap, $_) = &$wrapper("\\$cmd$star", $padding . $after); - $* = 0; # ...but don't leave an unwanted space at the beginning $_ =~ s/^ //s if($padding && $wrap !~ /\w$/m && (length($_) == length($after)+1) ); --- latex2html-2008-debian1.orig/styles/natbib.perl +++ latex2html-2008-debian1/styles/natbib.perl @@ -1385,12 +1385,10 @@ sub do_env_thebibliography { $citefile = $CURRENT_FILE; $citefiles{$bbl_nr} = $citefile; s/$next_pair_rx//o; - $* = 1; # Multiline matching ON # s/^\s*$//g; # Remove empty lines (otherwise will have paragraphs!) # s/\n//g; # Remove all \n s --- we format the HTML file ourselves. # $* = 0; # Multiline matching OFF - s/\\newblock/\/g; # break at each \newblock - $* = 0; # Multiline matching OFF + s/\\newblock/\/gm; # break at each \newblock s/\\penalty\d+//mg; # Remove \penalty declarations local($this_item,$this_kind, $title); --- latex2html-2008-debian1.orig/styles/color.perl +++ latex2html-2008-debian1/styles/color.perl @@ -145,7 +145,6 @@ $BKGSTRING = "bgcolor"; sub read_rgb_colors { local($base_file) = @_; local($file) = $base_file; - local($prev) = $*; local($r,$g,$b,$name,$dir); foreach $dir (split(/$envkey/,$LATEX2HTMLSTYLES)) { $file = "$dir$dd$base_file" @@ -154,7 +153,6 @@ sub read_rgb_colors { if (-f $file) { if (open(COLORFILE,"<$file")) { print STDOUT "\n(reading colors from $file" if $DEBUG; - $* = 0; # Multiline matching OFF while () { s/^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\w+(\s\w+)*)\s*/ ($r,$g,$b,$name)=($1,$2,$3,$4); @@ -170,14 +168,12 @@ sub read_rgb_colors { } } } - $* = $prev; # Restore Multiline matching $_[0]; } sub read_cmyk_colors { local($base_file) = @_; local($file) = $base_file; - local($prev) = $*; local($c,$m,$y,$k,$name,$dir,@colors); local($num_rx) = "(\\d|\\d\\.\\d*)"; foreach $dir (split(/$envkey/,$LATEX2HTMLSTYLES)) { @@ -187,7 +183,6 @@ sub read_cmyk_colors { if (-f $file) { if (open(COLORFILE,"<$file")) { print STDOUT "\n(reading colors from $file"; - $* = 0; # Multiline matching OFF @colors = (); foreach (@colors) { next if (/^\s*$/); @@ -211,7 +206,6 @@ sub read_cmyk_colors { } } } - $* = $prev; # Restore Multiline matching $_[0]; } --- latex2html-2008-debian1.orig/styles/htmllist.perl +++ latex2html-2008-debian1/styles/htmllist.perl @@ -96,7 +96,6 @@ sub do_env_htmllist{ local($imagemark,$mark,$item_len,$desc_len,$mark_len,$mark_size); $imagemark = &set_htmllist_marker($bullet) if ($bullet); - $* = 1; local($Maxlength) = 99999; local($i,@items_done); print "["; @@ -114,8 +113,8 @@ sub do_env_htmllist{ $_ = $&.$'; push(@items_done,&translate_commands($`)); $mark = &missing_braces unless ( - (s/\\htmlitemmark$any_next_pair_pr_rx/$mark=$2;''/eo) - ||(s/\\htmlitemmark$any_next_pair_rx/$mark=$2;''/eo)); + (s/\\htmlitemmark$any_next_pair_pr_rx/$mark=$2;''/eom) + ||(s/\\htmlitemmark$any_next_pair_rx/$mark=$2;''/eom)); $imagemark = &set_htmllist_marker($mark) if ($mark); # $mark_size = $ImageSizeMarks{$mark}; # $mark = "$ICONSERVER/$ImageMarks{$2}.gif" if ($ImageMarks{$2}); @@ -136,7 +135,6 @@ sub do_env_htmllist{ $_=$'; } } - $* = 0; $_ = join('',@items_done, $_); undef @items_done; #RRM: cannot have anything before the first
  • @@ -148,7 +146,7 @@ sub do_env_htmllist{ $preitems =~ s/]*)?>//g; $preitems = "\n".$preitems if $preitems; } - $/ = $savedRS; $* = 0; # Multiline matching OFF + $/ = $savedRS; $_ = '
    '.$_ unless (/^\s* -1) { # $colspec[$#colspec] .= join('', "",$celldata,''); @@ -794,9 +792,7 @@ sub translate_colspec { } $celldata .= ' ' if ($celldata =~ /\\\w+$/); - $* = 1; # multiline matching ON - $celldata =~ s/$wrap_parbox_rx/$6/g; - $* = 0; # multiline matching OFF + $celldata =~ s/$wrap_parbox_rx/$6/gm; $at_text .= $celldata; } elsif ( $char =~ /;|\&/ ) { @@ -965,9 +961,7 @@ sub process_tabular { while (/\\parbox/) { local($parlength) = length($_); - $* = 1; # multiline matching ON - s/$wrap_parbox_rx/&convert_parbox_newlines($6)/eg; - $* = 0; # multiline matching OFF + s/$wrap_parbox_rx/&convert_parbox_newlines($6)/egm; if ($parlength == length($_)) { print "\n*** \\parbox's remain in table!!\n"; @@ -1196,9 +1190,7 @@ sub process_tabular { } $colspec = &translate_environments("$OP$tmp$CP$colspec$OP$tmp$CP"); $colspec = &translate_commands($colspec); - $* = 1; - while ($colspec =~ s/<(\w+)>\s*<\/\1>//g) {}; - $* = 0; + while ($colspec =~ s/<(\w+)>\s*<\/\1>//gm) {}; $colspec = ';SPMnbsp;' if ($colspec =~ /^\s*$/); $colspec = join('', $reopens, $colspec , (@$open_tags_R ? &close_all_tags() : '') @@ -1338,7 +1330,7 @@ sub make_math_comment{ $ecomm = "\n\\end{$env}"; } unless ($env =~/tex2html/); $_ = &revert_to_raw_tex; - $* = 1; s/^\s+//s; s/\s+$//s; $* = 0; + s/^\s+//s; s/\s+$//sm; $_ = $scomm . $_ . $ecomm; return() if (length($_) < 16); $global{'verbatim_counter'}++; @@ -1440,20 +1432,19 @@ sub do_env_equation { local($seqno) = join('',"\n\n"); - $* = 1; do { # get the equation number $global{'eqn_number'}++; $eqno = &translate_commands('\theequation'); - } unless ((s/(\\nonumber|\\notag)//g)||(/\\tag/)); + } unless ((s/(\\nonumber|\\notag)//gm)||(/\\tag/)); if (/\\tag(\*)?/){ # AmS-TEX line-number tags. if (defined &get_eqn_number ) { ($eqno, $_) = &get_eqn_number(1,$_); } else { - s/\\tag(\*)?//; + s/\\tag(\*)?//m; local($nobrack,$before) = ($1,$`); $_ = $'; - s/next_pair_pr_rx//o; + s/next_pair_pr_rx//om; if ($nobrack) { $eqno = $2; } else { $eqno = join('',$EQNO_START, $2, $EQNO_END) }; $_ = $before; @@ -1461,7 +1452,6 @@ sub do_env_equation { } elsif ($eqno) { $eqno = join('',$EQNO_START, $eqno, $EQNO_END) } else { $eqno = ' ' } # spacer, when no numbering - $* = 0; # include the equation-number, using a local($halign) = " ALIGN=\"CENTER\"" unless $FLUSH_EQN; @@ -1641,7 +1631,7 @@ sub do_env_eqnarray { # if (s/\\lefteqn$OP(\d+)$CP(.*)$OP\1$CP/ $2 /) { if (s/\\lefteqn//) { $return .= "\"LEFT\" COLSPAN=\"3\">"; - $* =1; s/(^\s*|$html_specials{'&'}|\s*$)//g; $*=0; + s/(^\s*|$html_specials{'&'}|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $_ = (($_)? &process_math_in_latex( "indisplay" , '', '', $doimage.$_ ):''); @@ -1666,7 +1656,7 @@ sub do_env_eqnarray { # left column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1686,7 +1676,7 @@ sub do_env_eqnarray { # center column, set using \textstyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , 'text', '', $doimage.$thismath ):''); @@ -1706,7 +1696,7 @@ sub do_env_eqnarray { # right column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); --- latex2html-2008-debian1.orig/versions/html4_01.pl +++ latex2html-2008-debian1/versions/html4_01.pl @@ -766,9 +766,7 @@ sub translate_colspec { } $celldata .= ' ' if ($celldata =~ /\\\w+$/); - $* = 1; # multiline matching ON - $celldata =~ s/$wrap_parbox_rx/$6/g; - $* = 0; # multiline matching OFF + $celldata =~ s/$wrap_parbox_rx/$6/gm; # $at_text .= $celldata; # if ( $#colspec > -1) { # $colspec[$#colspec] .= join('', "'); @@ -794,9 +792,7 @@ sub translate_colspec { } $celldata .= ' ' if ($celldata =~ /\\\w+$/); - $* = 1; # multiline matching ON - $celldata =~ s/$wrap_parbox_rx/$6/g; - $* = 0; # multiline matching OFF + $celldata =~ s/$wrap_parbox_rx/$6/gm; $at_text .= $celldata; } elsif ( $char =~ /;|\&/ ) { @@ -965,9 +961,7 @@ sub process_tabular { while (/\\parbox/) { local($parlength) = length($_); - $* = 1; # multiline matching ON - s/$wrap_parbox_rx/&convert_parbox_newlines($6)/eg; - $* = 0; # multiline matching OFF + s/$wrap_parbox_rx/&convert_parbox_newlines($6)/egm; if ($parlength == length($_)) { print "\n*** \\parbox's remain in table!!\n"; @@ -1196,9 +1190,7 @@ sub process_tabular { } $colspec = &translate_environments("$OP$tmp$CP$colspec$OP$tmp$CP"); $colspec = &translate_commands($colspec); - $* = 1; - while ($colspec =~ s/<(\w+)>\s*<\/\1>//g) {}; - $* = 0; + while ($colspec =~ s/<(\w+)>\s*<\/\1>//gm) {}; $colspec = ';SPMnbsp;' if ($colspec =~ /^\s*$/); $colspec = join('', $reopens, $colspec , (@$open_tags_R ? &close_all_tags() : '') @@ -1338,7 +1330,7 @@ sub make_math_comment{ $ecomm = "\n\\end{$env}"; } unless ($env =~/tex2html/); $_ = &revert_to_raw_tex; - $* = 1; s/^\s+//s; s/\s+$//s; $* = 0; + s/^\s+//s; s/\s+$//sm; $_ = $scomm . $_ . $ecomm; return() if (length($_) < 16); $global{'verbatim_counter'}++; @@ -1440,20 +1432,19 @@ sub do_env_equation { local($seqno) = join('',"\n\n"); - $* = 1; do { # get the equation number $global{'eqn_number'}++; $eqno = &translate_commands('\theequation'); - } unless ((s/(\\nonumber|\\notag)//g)||(/\\tag/)); + } unless ((s/(\\nonumber|\\notag)//gm)||(/\\tag/)); if (/\\tag(\*)?/){ # AmS-TEX line-number tags. if (defined &get_eqn_number ) { ($eqno, $_) = &get_eqn_number(1,$_); } else { - s/\\tag(\*)?//; + s/\\tag(\*)?//m; local($nobrack,$before) = ($1,$`); $_ = $'; - s/next_pair_pr_rx//o; + s/next_pair_pr_rx//om; if ($nobrack) { $eqno = $2; } else { $eqno = join('',$EQNO_START, $2, $EQNO_END) }; $_ = $before; @@ -1461,7 +1452,6 @@ sub do_env_equation { } elsif ($eqno) { $eqno = join('',$EQNO_START, $eqno, $EQNO_END) } else { $eqno = ' ' } # spacer, when no numbering - $* = 0; # include the equation-number, using a
    ",$celldata,'
    local($halign) = " ALIGN=\"CENTER\"" unless $FLUSH_EQN; @@ -1641,7 +1631,7 @@ sub do_env_eqnarray { # if (s/\\lefteqn$OP(\d+)$CP(.*)$OP\1$CP/ $2 /) { if (s/\\lefteqn//) { $return .= "\"LEFT\" COLSPAN=\"3\">"; - $* =1; s/(^\s*|$html_specials{'&'}|\s*$)//g; $*=0; + s/(^\s*|$html_specials{'&'}|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $_ = (($_)? &process_math_in_latex( "indisplay" , '', '', $doimage.$_ ):''); @@ -1666,7 +1656,7 @@ sub do_env_eqnarray { # left column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1686,7 +1676,7 @@ sub do_env_eqnarray { # center column, set using \textstyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , 'text', '', $doimage.$thismath ):''); @@ -1706,7 +1696,7 @@ sub do_env_eqnarray { # right column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); --- latex2html-2008-debian1.orig/versions/html3_2.pl +++ latex2html-2008-debian1/versions/html3_2.pl @@ -406,9 +406,7 @@ sub translate_colspec { } $celldata .= ' ' if ($celldata =~ /\\\w+$/); - $* = 1; # multiline matching ON - $celldata =~ s/$wrap_parbox_rx/$6/g; - $* = 0; # multiline matching OFF + $celldata =~ s/$wrap_parbox_rx/$6/gm; # $at_text .= $celldata; # if ( $#colspec > -1) { # $colspec[$#colspec] .= join('', "'); @@ -434,9 +432,7 @@ sub translate_colspec { } $celldata .= ' ' if ($celldata =~ /\\\w+$/); - $* = 1; # multiline matching ON - $celldata =~ s/$wrap_parbox_rx/$6/g; - $* = 0; # multiline matching OFF + $celldata =~ s/$wrap_parbox_rx/$6/gm; $at_text .= $celldata; } elsif ( $char =~ /;|\&/ ) { @@ -596,9 +592,7 @@ sub process_tabular { while (/\\parbox/) { local($parlength) = length($_); - $* = 1; # multiline matching ON - s/$wrap_parbox_rx/&convert_parbox_newlines($6)/eg; - $* = 0; # multiline matching OFF + s/$wrap_parbox_rx/&convert_parbox_newlines($6)/egm; if ($parlength == length($_)) { print "\n*** \\parbox's remain in table!!\n"; @@ -823,9 +817,7 @@ sub process_tabular { } $colspec = &translate_environments("$OP$tmp$CP$colspec$OP$tmp$CP"); $colspec = &translate_commands($colspec); - $* = 1; - while ($colspec =~ s/<(\w+)>\s*<\/\1>//g) {}; - $* = 0; + while ($colspec =~ s/<(\w+)>\s*<\/\1>//gm) {}; $colspec = ';SPMnbsp;' if ($colspec =~ /^\s*$/); $colspec = join('', $reopens, $colspec , (@$open_tags_R ? &close_all_tags() : '') @@ -966,7 +958,7 @@ sub make_math_comment{ $ecomm = "\n\\end{$env}"; } unless ($env =~/tex2html/); $_ = &revert_to_raw_tex; - $* = 1; s/^\s+//s; s/\s+$//s; $* = 0; + s/^\s+//s; s/\s+$//sm; $_ = $scomm . $_ . $ecomm; return() if (length($_) < 16); $global{'verbatim_counter'}++; @@ -1057,20 +1049,19 @@ sub do_env_equation { local($seqno) = join('',"\n\n"); - $* = 1; do { # get the equation number $global{'eqn_number'}++; $eqno = &translate_commands('\theequation'); - } unless ((s/(\\nonumber|\\notag)//g)||(/\\tag/)); + } unless ((s/(\\nonumber|\\notag)//gm)||(/\\tag/)); if (/\\tag(\*)?/){ # AmS-TEX line-number tags. if (defined &get_eqn_number ) { ($eqno, $_) = &get_eqn_number(1,$_); } else { - s/\\tag(\*)?//; + s/\\tag(\*)?//m; local($nobrack,$before) = ($1,$`); $_ = $'; - s/next_pair_pr_rx//o; + s/next_pair_pr_rx//om; if ($nobrack) { $eqno = $2; } else { $eqno = join('',$EQNO_START, $2, $EQNO_END) }; $_ = $before; @@ -1078,7 +1069,6 @@ sub do_env_equation { } elsif ($eqno) { $eqno = join('',$EQNO_START, $eqno, $EQNO_END) } else { $eqno = ' ' } # spacer, when no numbering - $* = 0; # include the equation-number, using a
    ",$celldata,'
    local($halign) = $math_class unless $FLUSH_EQN; @@ -1255,7 +1245,7 @@ sub do_env_eqnarray { # if (s/\\lefteqn$OP(\d+)$CP(.*)$OP\1$CP/ $2 /) { if (s/\\lefteqn//) { $return .= "\"LEFT\" COLSPAN=\"3\">"; - $* =1; s/(^\s*|$html_specials{'&'}|\s*$)//g; $*=0; + s/(^\s*|$html_specials{'&'}|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $_ = (($_)? &process_math_in_latex( "indisplay" , '', '', $doimage.$_ ):''); @@ -1280,7 +1270,7 @@ sub do_env_eqnarray { # left column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1300,7 +1290,7 @@ sub do_env_eqnarray { # center column, set using \textstyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , 'text', '', $doimage.$thismath ):''); @@ -1320,7 +1310,7 @@ sub do_env_eqnarray { # right column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); --- latex2html-2008-debian1.orig/versions/html4_0.pl +++ latex2html-2008-debian1/versions/html4_0.pl @@ -745,9 +745,7 @@ sub translate_colspec { } $celldata .= ' ' if ($celldata =~ /\\\w+$/); - $* = 1; # multiline matching ON - $celldata =~ s/$wrap_parbox_rx/$6/g; - $* = 0; # multiline matching OFF + $celldata =~ s/$wrap_parbox_rx/$6/gm; # $at_text .= $celldata; # if ( $#colspec > -1) { # $colspec[$#colspec] .= join('', "'); @@ -773,9 +771,7 @@ sub translate_colspec { } $celldata .= ' ' if ($celldata =~ /\\\w+$/); - $* = 1; # multiline matching ON - $celldata =~ s/$wrap_parbox_rx/$6/g; - $* = 0; # multiline matching OFF + $celldata =~ s/$wrap_parbox_rx/$6/gm; $at_text .= $celldata; } elsif ( $char =~ /;|\&/ ) { @@ -944,9 +940,7 @@ sub process_tabular { while (/\\parbox/) { local($parlength) = length($_); - $* = 1; # multiline matching ON - s/$wrap_parbox_rx/&convert_parbox_newlines($6)/eg; - $* = 0; # multiline matching OFF + s/$wrap_parbox_rx/&convert_parbox_newlines($6)/egm; if ($parlength == length($_)) { print "\n*** \\parbox's remain in table!!\n"; @@ -1175,9 +1169,7 @@ sub process_tabular { } $colspec = &translate_environments("$OP$tmp$CP$colspec$OP$tmp$CP"); $colspec = &translate_commands($colspec); - $* = 1; - while ($colspec =~ s/<(\w+)>\s*<\/\1>//g) {}; - $* = 0; + while ($colspec =~ s/<(\w+)>\s*<\/\1>//gm) {}; $colspec = ';SPMnbsp;' if ($colspec =~ /^\s*$/); $colspec = join('', $reopens, $colspec , (@$open_tags_R ? &close_all_tags() : '') @@ -1317,7 +1309,7 @@ sub make_math_comment{ $ecomm = "\n\\end{$env}"; } unless ($env =~/tex2html/); $_ = &revert_to_raw_tex; - $* = 1; s/^\s+//s; s/\s+$//s; $* = 0; + s/^\s+//s; s/\s+$//sm; $_ = $scomm . $_ . $ecomm; return() if (length($_) < 16); $global{'verbatim_counter'}++; @@ -1419,20 +1411,19 @@ sub do_env_equation { local($seqno) = join('',"\n\n"); - $* = 1; do { # get the equation number $global{'eqn_number'}++; $eqno = &translate_commands('\theequation'); - } unless ((s/(\\nonumber|\\notag)//g)||(/\\tag/)); + } unless ((s/(\\nonumber|\\notag)//gm)||(/\\tag/)); if (/\\tag(\*)?/){ # AmS-TEX line-number tags. if (defined &get_eqn_number ) { ($eqno, $_) = &get_eqn_number(1,$_); } else { - s/\\tag(\*)?//; + s/\\tag(\*)?//m; local($nobrack,$before) = ($1,$`); $_ = $'; - s/next_pair_pr_rx//o; + s/next_pair_pr_rx//om; if ($nobrack) { $eqno = $2; } else { $eqno = join('',$EQNO_START, $2, $EQNO_END) }; $_ = $before; @@ -1440,7 +1431,6 @@ sub do_env_equation { } elsif ($eqno) { $eqno = join('',$EQNO_START, $eqno, $EQNO_END) } else { $eqno = ' ' } # spacer, when no numbering - $* = 0; # include the equation-number, using a
    ",$celldata,'
    local($halign) = " ALIGN=\"CENTER\"" unless $FLUSH_EQN; @@ -1620,7 +1610,7 @@ sub do_env_eqnarray { # if (s/\\lefteqn$OP(\d+)$CP(.*)$OP\1$CP/ $2 /) { if (s/\\lefteqn//) { $return .= "\"LEFT\" COLSPAN=\"3\">"; - $* =1; s/(^\s*|$html_specials{'&'}|\s*$)//g; $*=0; + s/(^\s*|$html_specials{'&'}|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $_ = (($_)? &process_math_in_latex( "indisplay" , '', '', $doimage.$_ ):''); @@ -1645,7 +1635,7 @@ sub do_env_eqnarray { # left column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1665,7 +1655,7 @@ sub do_env_eqnarray { # center column, set using \textstyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , 'text', '', $doimage.$thismath ):''); @@ -1685,7 +1675,7 @@ sub do_env_eqnarray { # right column, set using \displaystyle $thismath = shift(@cols); $failed = 0; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($NO_SIMPLE_MATH)||($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); --- latex2html-2008-debian1.orig/IndicTeX-HTML/itrans.perl +++ latex2html-2008-debian1/IndicTeX-HTML/itrans.perl @@ -405,13 +405,13 @@ sub do_env_pre_itrans { } else { if ($this_par =~ /^\\/) { #catch 'paragraphs' that are just TeX macros - local($savedRS) = $/; $/ = ''; $* = 1; - if ($this_par =~ /^(\s*\\\w+)+$/s ) { + local($savedRS) = $/; $/ = ''; + if ($this_par =~ /^(\s*\\\w+)+$/sm ) { # save them for the next paragraph $saved_par .= $this_par."\n\n"; - $/ = $savedRS; $* = 0; next; + $/ = $savedRS; next; } - $/ = $savedRS; $* = 0; + $/ = $savedRS; } if ($saved_par) { #include any saved macros --- latex2html-2008-debian1.orig/styles/html.perl +++ latex2html-2008-debian1/styles/html.perl @@ -236,7 +236,7 @@ sub do_cmd_htmladdnormallink{ $url = &missing_braces unless ((s/$next_pair_pr_rx/$url = $2; ''/eo) ||(s/$next_pair_rx/$url = $2; ''/eo)); - $*=1; s/^\s+/\n/; $*=0; + s/^\s+/\n/m; if ($name) { $href = &make_named_href($name,$url,$text) } else { $href = &make_href($url,$text) } print "\nHREF:$href" if ($VERBOSITY > 3); --- latex2html-2008-debian1.orig/styles/more_amsmath.perl +++ latex2html-2008-debian1/styles/more_amsmath.perl @@ -94,7 +94,6 @@ sub get_eqn_number { , $EQNO_END); } } else { $tag = ';SPMnbsp;;SPMnbsp;;SPMnbsp;' } - $*=0; if ($labels) { $labels =~ s/$anchor_mark/$tag/o; ($labels , $scan); @@ -285,7 +284,7 @@ sub process_env_equation { } else { $return .= join('', $mspace , $ecell, $erow); } } else { $thismath = $_; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = &process_math_in_latex("indisplay",'','' , $doimage.$thismath ) unless ($thismath eq '' ); @@ -430,7 +429,7 @@ sub process_env_multline { # columns to be set using \displaystyle $thismath = $_; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = &process_math_in_latex("indisplay",'','' , $doimage.$thismath ) unless ($thismath eq '' ); @@ -767,7 +766,7 @@ sub process_env_align{ # alternating right/left aligned $scell = (($scell eq $slcell)? $srcell : $slcell) if ($col_cnt); $thismath = $_; $col_cnt++; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = &process_math_in_latex("indisplay",'','' , $doimage.$thismath ) unless ($thismath eq '' ); @@ -923,7 +922,7 @@ sub do_env_split { @cols = split(/$mdlim/o); # left column, set using \displaystyle $thismath = shift(@cols); - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = &process_math_in_latex("indisplay",'','' , $doimage.$thismath ) unless ($thismath eq '' ); @@ -940,7 +939,7 @@ sub do_env_split { # right column, set using \displaystyle $thismath = shift(@cols); - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = &process_math_in_latex("indisplay",'','' , $doimage.$thismath ) unless ($thismath eq '' ); --- latex2html-2008-debian1.orig/styles/changebar.perl +++ latex2html-2008-debian1/styles/changebar.perl @@ -126,11 +126,11 @@ sub do_env_changebar { $_ = &translate_environments($_); # multiple ends of change-bars have icons on the same line. - $* = 1; local($saveRS) = $/; undef $/; + local($saveRS) = $/; undef $/; s/(($endstr[^<]*<\/$cbstyle>)\s*
    (<<\d+>>($cbversion_rx)?)?\s*$)/ - if ($`) {$1} else { $endcb = 0; $2.$3 }/eg; - s/($cbend_rx\s*$)/ if ($`) { $1 } else { $endcb = 0; $2.$4 }/eg; - $* = 0; $/ = $saveRS; + if ($`) {$1} else { $endcb = 0; $2.$3 }/egm; + s/($cbend_rx\s*$)/ if ($`) { $1 } else { $endcb = 0; $2.$4 }/egm; + $/ = $saveRS; if ($this_version) { --- latex2html-2008-debian1.orig/styles/alltt.perl +++ latex2html-2008-debian1/styles/alltt.perl @@ -50,15 +50,15 @@ sub preprocess_alltt { local ($before, $after, $alltt, $alltt_env); local ($alltt_begin) = ""; local ($alltt_end) = ""; - local($saveRS) = $/; $*=1;undef $/; + local($saveRS) = $/; undef $/; while (/\\begin\s*{($alltt_rx)}([ \t]*\n)?/m) { $alltt_env = $1; $alltt = ""; ($before, $after) = ($`, $'); - if ($after =~ /\\end\s*{($alltt_rx)}/s) { + if ($after =~ /\\end\s*{($alltt_rx)}/sm) { ($alltt, $after) = ($`, $'); local(@check) = split("\n",$before); - local($lastline) = pop @check unless ($before =~ s/\n$//s); + local($lastline) = pop @check unless ($before =~ s/\n$//sm); $alltt = &alltt_helper($alltt) # shield special chars unless ($lastline =~ /(^|[^\\])(\\\\)*%.*$/m); # unless commented out undef @check; undef $lastline; @@ -67,8 +67,8 @@ sub preprocess_alltt { , $alltt, $alltt_end, "{$alltt_env}", $after); } $/ = $saveRS; - s/$alltt_begin\{([^\}]*)\}/\\begin{$1}/gos; - s/$alltt_end\{([^\}]*)\}/\\end{$1}/gos; + s/$alltt_begin\{([^\}]*)\}/\\begin{$1}/gosm; + s/$alltt_end\{([^\}]*)\}/\\end{$1}/gosm; } sub alltt_helper { --- latex2html-2008-debian1.orig/styles/amstex.perl +++ latex2html-2008-debian1/styles/amstex.perl @@ -404,7 +404,6 @@ sub get_eqn_number { , $EQNO_END); } } else { $tag = ';SPMnbsp;' } - $*=0; if ($labels) { $labels =~ s/$anchor_mark/$tag/o; ($labels , $scan); --- latex2html-2008-debian1.orig/styles/makeidx.perl +++ latex2html-2008-debian1/styles/makeidx.perl @@ -189,7 +189,7 @@ sub named_index_entry { # ! -> \001 # @ -> \002 # | -> \003 - $* = 1; $str =~ s/\n\s*/ /g; $* = 0; # remove any newlines + $str =~ s/\n\s*/ /gm; # remove any newlines # protect \001 occurring with images $str =~ s/\001/\016/g; --- latex2html-2008-debian1.orig/styles/webtex.perl +++ latex2html-2008-debian1/styles/webtex.perl @@ -121,29 +121,29 @@ sub convert_to_webtex { if($WEBEQ_IMG_ONLY) { return (1,$no_applet) }; local($savedRS, $failed, $env_id, $_) = ($/,'','',$orig); - $/=''; $* = 1; + $/=''; if ($mode =~ /inline/) { if (/^\s*\\\(/) { $failed = 1 } else { $_ = &revert_to_raw_tex($_); - $_ =~ s/^\s*\$?/\$/s; - $_ =~ s/\$?$/\$/s; + $_ =~ s/^\s*\$?/\$/sm; + $_ =~ s/\$?$/\$/sm; $env_id .= $WEBEQ_INL if $USING_STYLES; } } elsif ($mode =~ /display/) { if (/^\s*\$\$/) { $failed = 1 } else { $_ = &revert_to_raw_tex($_); - $_ =~ s/^\s*(\\\[|\$\$)?/\\\[/s; - $_ =~ s/(\$\$|\\\])?\s*$/\\\]/s; + $_ =~ s/^\s*(\\\[|\$\$)?/\\\[/sm; + $_ =~ s/(\$\$|\\\])?\s*$/\\\]/sm; $env_id .= $WEBEQ_DIS if $USING_STYLES; } } else { print " *** Unknown WebTeX mode, no applet ***"; - $/ = $savedRS; $* = 0; + $/ = $savedRS; return (0,$no_applet) } - $/ = $savedRS; $* = 0; + $/ = $savedRS; return (0,$no_applet) if $failed; ($failed,$_) = &check_only_webtex($_); @@ -324,7 +324,7 @@ sub cleanup_mml_attribs { local($mml_code) = join('',); close MML; - local($savedRS) = $/; $*=0; $/=''; + local($savedRS) = $/; $/=''; $mml_code =~ s/^\s*

    \n?//s; $mml_code =~ s/\s*\s*/ $width=$1;$height=$2;$align=$3;''/e; --- latex2html-2008-debian1.orig/styles/amsmath.perl +++ latex2html-2008-debian1/styles/amsmath.perl @@ -458,7 +458,6 @@ sub get_eqn_number { , $EQNO_END); } } else { $tag = ';SPMnbsp;' } - $*=0; if ($labels) { $labels =~ s/$anchor_mark/$tag/o; ($labels , $scan); --- latex2html-2008-debian1.orig/versions/math.pl +++ latex2html-2008-debian1/versions/math.pl @@ -87,7 +87,7 @@ sub do_env_tex2html_wrap { local($attribs, $border); if (s/$htmlborder_rx//o) { $attribs = $2; $border = (($4)? "$4" : 1) } elsif (s/$htmlborder_pr_rx//o) { $attribs = $2; $border = (($4)? "$4" : 1) } - $* = 1; s/^\s*|\s*$//g; $*=0; + s/^\s*|\s*$//gm; local($saved) = $_; # if (s/^\\\(|^\$|^\\math|\\\)$|\$$|\\endmath//g) {} if (s/^$math_start_rx|${math_end_rx}$//g) {} @@ -174,23 +174,21 @@ sub do_env_equation { local($seqno) = join('',"\n\n"); - $* = 1; do { # include the equation number, using a
    $global{'eqn_number'}++; $eqno = join('', $EQNO_START , &simplify(&translate_commands('\theequation')) , $EQNO_END); - } unless ((s/(\\nonumber|\\notag)//g)||(/\\tag/)); - if (s/\\tag(\*)?//){ + } unless ((s/(\\nonumber|\\notag)//gm)||(/\\tag/)); + if (s/\\tag(\*)?//m){ # AmS-TEX line-number tags. local($nobrack,$before) = ($1,$`); $_ = $'; - s/next_pair_pr_rx//o; + s/next_pair_pr_rx//om; if ($nobrack) { $eqno = $2 } else { $eqno = join('',$EQNO_START, $2, $EQNO_END ) } $_ = $before; } - $* = 0; local($halign) = " ALIGN=\"CENTER\"" unless $FLUSH_EQN; if ($EQN_TAGS =~ /L/) { @@ -398,9 +396,9 @@ sub make_math { # remove white space at the extremities # do{ $*=1; s/(^\s+|\s+$)//; $*=0; } unless ($NO_SIMPLE_MATH); - $*=1; s/^\s//o;s/\s$//; $*=0; + s/^\s//o;s/\s$//m; # but not if there is a comment to finish: - $*=1; s/($comment_mark\s*\d+)$/$&\n/; $*=0; + s/($comment_mark\s*\d+)$/$&\n/m; $_; } @@ -1029,7 +1027,7 @@ sub do_env_eqnarray { if (s/\\lefteqn//) { $return .= "\"LEFT\" COLSPAN=\"3\">"; - $* =1; s/(^\s*|$html_specials{'&'}|\s*$)//g; $*=0; + s/(^\s*|$html_specials{'&'}|\s*$)//gm; if (($doimage)||($failed)) { $_ = (($_)? &process_math_in_latex( "indisplay" , '', '', $doimage.$_ ):''); @@ -1048,7 +1046,7 @@ sub do_env_eqnarray { # left column, set using \displaystyle $thismath = shift(@cols); - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1064,7 +1062,7 @@ sub do_env_eqnarray { # center column, set using \textstyle $thismath = shift(@cols); if (!($#cols < 0)) { - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , 'text', '', $doimage.$thismath ):''); @@ -1084,7 +1082,7 @@ sub do_env_eqnarray { &write_warnings($eqnarray_warning); print "\n\n *** $eqnarray_warning \n"; } - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1447,7 +1445,7 @@ sub translate_math_commands { } ($pre_text,$labels) = &extract_labels($pre_text); - local($savedRS) = $/; $/ = ''; $* = 1; + local($savedRS) = $/; $/ = ''; # if ($pre_text =~ m/^((.|\n)*)\\begin\s*(($O|$OP)\d+($C|$CP))$ams_aligned_envs_rx\3/m) { if ($pre_text =~ m/^()\\begin\s*(($O|$OP)\d+($C|$CP))$ams_aligned_envs_rx\3/m) { local($env,$star,$orig,$cnt) = ($7,$8,$pre_text.$_,1); @@ -1456,7 +1454,7 @@ sub translate_math_commands { # local($savedRS) = $/; $/ = ''; $*=1; while ( $cnt && $found ) { $found = ''; - if ($post_pre_text =~ /\\(begin|end)(($O|$OP)\d+($C|$CP))$env$star\2/s) + if ($post_pre_text =~ /\\(begin|end)(($O|$OP)\d+($C|$CP))$env$star\2/sm) { $pre_text .= $`; $found = $1; $this_env = $&; $post_pre_text = $'; } if ($found =~ /begin/) { @@ -1465,7 +1463,7 @@ sub translate_math_commands { $cnt--; $pre_text .= $this_env if ($cnt > 0) ; } } - $* = 0; $/ = $savedRS; + $/ = $savedRS; $env .= 'star' if $star; local($env_cmd) = 'do_env_'.$env; # parse it further, when possible... @@ -1504,7 +1502,7 @@ sub translate_math_commands { $pre_text = &process_math_in_latex($mode,$style,$slevel,$pre_text) if ($pre_text); } - $* = 0; $/ = $savedRS; + $/ = $savedRS; return($labels . $pre_text) unless ($_); print "\nMore math:\n$_" if ($VERBOSITY > 4); @@ -1572,7 +1570,7 @@ sub make_math_comment{ $ecomm = "\n\\end{$env}"; } unless ($env =~/tex2html/); $_ = &revert_to_raw_tex; - $* = 1; s/^\s+//; s/\s+$//; $* = 0; + s/^\s+//; s/\s+$//m; $_ = $scomm . $_ . $ecomm; return() if (length($_) < 12); $global{'verbatim_counter'}++; @@ -1715,20 +1713,18 @@ sub parse_math_toks { local ($saved) = $_; $_ = $'; # find the \end, including nested environments of same type. - $* = 1; local($cnt, $thisbit, $which) = (1,'',''); - while ( /\\(begin|end)(<#\d+#>)($env|$array_env_rx)(\*|star)?\2/s ) { + while ( /\\(begin|end)(<#\d+#>)($env|$array_env_rx)(\*|star)?\2/sm ) { $thisbit = $` . $&; $_ = $'; $which = $1; do { # mark rows/columns in nested arrays - $thisbit =~ s/;SPMamp;/$array_col_mark/g; - $thisbit =~ s/\\(\\|cr(cr)?(\b|$|\d|\W))/$array_row_mark$3/g; + $thisbit =~ s/;SPMamp;/$array_col_mark/gm; + $thisbit =~ s/\\(\\|cr(cr)?(\b|$|\d|\W))/$array_row_mark$3/gm; } if ($cnt > 1); $this .= $thisbit; if ($which =~ /begin/) {$cnt++} else {$cnt--}; last if (!$cnt); } - $* = 0; # $this =~ s/\\cr(cr)?(\b|$|\d|\\|\W)/\\\\$2/g; local($env_cmd) = "do_env_$env".(($star)? "star" : ''); @@ -1746,11 +1742,9 @@ sub parse_math_toks { $this .= $extra; $this = &process_math_in_latex($mode,$style,$slevel,$this); } else { - $*=1; - $star =~ s/\*/\\\*/o if ($star); - $this =~ s/^\\begin(<#\d+#>)$env$star\1//s; - $this =~ s/\\end(<#\d+#>)$env$star\1\s*$//s; - $*=0; + $star =~ s/\*/\\\*/om if ($star); + $this =~ s/^\\begin(<#\d+#>)$env$star\1//sm; + $this =~ s/\\end(<#\d+#>)$env$star\1\s*$//sm; do { local($in_array) = 1; local($_) = $this; @@ -2498,9 +2492,7 @@ sub get_supsub { } elsif ($5) { $supsub .= $1; $which .= (($5 =~ /b/) ? '_' : '^'); local($multisub_type) = $5; - $* = 1; - s/\\end(($O|$OP)\d+($C|$CP))$multisub_type\1/$supsub .= $`.$&;''/e; - $* = 0; + s/\\end(($O|$OP)\d+($C|$CP))$multisub_type\1/$supsub .= $`.$&;''/em; } else { $supsub .= "\{^\\prime\}" } } # include dummy sup/sub-scripts to enhance the vertical spacing --- latex2html-2008-debian1.orig/versions/html3_1.pl +++ latex2html-2008-debian1/versions/html3_1.pl @@ -78,7 +78,7 @@ sub do_env_tex2html_wrap { local($attribs, $border); if (s/$htmlborder_rx//o) { $attribs = $2; $border = (($4)? "$4" : 1) } elsif (s/$htmlborder_pr_rx//o) { $attribs = $2; $border = (($4)? "$4" : 1) } - $* = 1; s/^\s*|\s*$//g; $*=0; + s/^\s*|\s*$//gm; local($saved) = $_; # if (s/^\\\(|^\$|^\\math|\\\)$|\$$|\\endmath//g) {} if (s/^$math_start_rx|${math_end_rx}$//g) {} @@ -161,23 +161,21 @@ sub do_env_equation { local($seqno) = join('',"\n\n"); - $* = 1; do { # include the equation number, using a
    $global{'eqn_number'}++; $eqno = join('', $EQNO_START , &simplify(&translate_commands('\theequation')) , $EQNO_END); - } unless ((s/(\\nonumber|\\notag)//g)||(/\\tag/)); - if (s/\\tag(\*)?//){ + } unless ((s/(\\nonumber|\\notag)//gm)||(/\\tag/)); + if (s/\\tag(\*)?//m){ # AmS-TEX line-number tags. local($nobrack,$before) = ($1,$`); $_ = $'; - s/next_pair_pr_rx//o; + s/next_pair_pr_rx//om; if ($nobrack) { $eqno = $2 } else { $eqno = join('',$EQNO_START, $2, $EQNO_END ) } $_ = $before; } - $* = 0; local($halign) = " ALIGN=\"CENTER\"" unless $FLUSH_EQN; if ($EQN_TAGS =~ /L/) { @@ -353,7 +351,7 @@ sub make_math { # remove white space at the extremities # do{ $*=1; s/(^\s+|\s+$)//; $*=0; } unless ($NO_SIMPLE_MATH); - $*=1; s/^\s//o;s/\s$//; $*=0; + s/^\s//o;s/\s$//m; $_; } @@ -970,7 +968,7 @@ sub do_env_eqnarray { if (s/\\lefteqn//) { $return .= "\"LEFT\" COLSPAN=\"3\">"; - $* =1; s/(^\s*|$html_specials{'&'}|\s*$)//g; $*=0; + s/(^\s*|$html_specials{'&'}|\s*$)//gm; if (($doimage)||($failed)) { $_ = (($_)? &process_math_in_latex( "indisplay" , '', '', $doimage.$_ ):''); @@ -989,7 +987,7 @@ sub do_env_eqnarray { # left column, set using \displaystyle $thismath = shift(@cols); - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1006,7 +1004,7 @@ sub do_env_eqnarray { $thismath = shift(@cols); if (!($#cols < 0)) { #print "\nEQNARRAY:$#cols : $thismath"; - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , 'text', '', $doimage.$thismath ):''); @@ -1026,7 +1024,7 @@ sub do_env_eqnarray { &write_warnings($eqnarray_warning); print "\n\n *** $eqnarray_warning \n"; } - $* =1; $thismath =~ s/(^\s*|\s*$)//g; $*=0; + $thismath =~ s/(^\s*|\s*$)//gm; if (($doimage)||($failed)) { $thismath = (($thismath ne '')? &process_math_in_latex( "indisplay" , '', '', $doimage.$thismath ):''); @@ -1385,7 +1383,7 @@ sub translate_math_commands { } ($pre_text,$labels) = &extract_labels($pre_text); - local($savedRS) = $/; $/ = ''; $* = 1; + local($savedRS) = $/; $/ = ''; # if ($pre_text =~ m/^((.|\n)*)\\begin\s*(($O|$OP)\d+($C|$CP))$ams_aligned_envs_rx\3/m) { if ($pre_text =~ m/^()\\begin\s*(($O|$OP)\d+($C|$CP))$ams_aligned_envs_rx\3/m) { local($env,$star,$orig,$cnt) = ($7,$8,$pre_text.$_,1); @@ -1394,7 +1392,7 @@ sub translate_math_commands { # local($savedRS) = $/; $/ = ''; $*=1; while ( $cnt && $found ) { $found = ''; - if ($post_pre_text =~ /\\(begin|end)(($O|$OP)\d+($C|$CP))$env$star\2/s) + if ($post_pre_text =~ /\\(begin|end)(($O|$OP)\d+($C|$CP))$env$star\2/sm) { $pre_text .= $`; $found = $1; $this_env = $&; $post_pre_text = $'; } if ($found =~ /begin/) { @@ -1403,7 +1401,7 @@ sub translate_math_commands { $cnt--; $pre_text .= $this_env if ($cnt > 0) ; } } - $* = 0; $/ = $savedRS; + $/ = $savedRS; $env .= 'star' if $star; local($env_cmd) = 'do_env_'.$env; # parse it further, when possible... @@ -1430,7 +1428,7 @@ sub translate_math_commands { $pre_text = &process_math_in_latex($mode,$style,$slevel,$pre_text) if ($pre_text); } - $* = 0; $/ = $savedRS; + $/ = $savedRS; return($labels . $pre_text) unless ($_); local($post_text, $this_text, $which_text); @@ -1494,7 +1492,7 @@ sub make_math_comment{ $ecomm = "\n\\end{$env}"; } unless ($env =~/tex2html/); $_ = &revert_to_raw_tex; - $* = 1; s/^\s+//; s/\s+$//; $* = 0; + s/^\s+//; s/\s+$//m; $_ = $scomm . $_ . $ecomm; return() if (length($_) < 12); $global{'verbatim_counter'}++; @@ -1637,20 +1635,18 @@ sub parse_math_toks { local ($saved) = $_; $_ = $'; # find the \end, including nested environments of same type. - $* = 1; local($cnt, $thisbit, $which) = (1,'',''); - while ( /\\(begin|end)(<#\d+#>)($env|$array_env_rx)(\*|star)?\2/s ) { + while ( /\\(begin|end)(<#\d+#>)($env|$array_env_rx)(\*|star)?\2/sm ) { $thisbit = $` . $&; $_ = $'; $which = $1; do { # mark rows/columns in nested arrays - $thisbit =~ s/;SPMamp;/$array_col_mark/g; - $thisbit =~ s/\\(\\|cr(cr)?(\b|$|\d|\W))/$array_row_mark$3/g; + $thisbit =~ s/;SPMamp;/$array_col_mark/gm; + $thisbit =~ s/\\(\\|cr(cr)?(\b|$|\d|\W))/$array_row_mark$3/gm; } if ($cnt > 1); $this .= $thisbit; if ($which =~ /begin/) {$cnt++} else {$cnt--}; last if (!$cnt); } - $* = 0; # $this =~ s/\\cr(cr)?(\b|$|\d|\\|\W)/\\\\$2/g; local($env_cmd) = "do_env_$env".(($star)? "star" : ''); @@ -1668,11 +1664,9 @@ sub parse_math_toks { $this .= $extra; $this = &process_math_in_latex($mode,$style,$slevel,$this); } else { - $*=1; - $star =~ s/\*/\\\*/o if ($star); - $this =~ s/^\\begin(<#\d+#>)$env$star\1//; - $this =~ s/\\end(<#\d+#>)$env$star\1\s*$//; - $*=0; + $star =~ s/\*/\\\*/om if ($star); + $this =~ s/^\\begin(<#\d+#>)$env$star\1//m; + $this =~ s/\\end(<#\d+#>)$env$star\1\s*$//m; do { local($in_array) = 1; local($_) = $this; @@ -2376,9 +2370,7 @@ sub get_supsub { } elsif ($5) { $supsub .= $1; $which .= (($5 =~ /b/) ? '_' : '^'); local($multisub_type) = $5; - $* = 1; - s/\\end(($O|$OP)\d+($C|$CP))$multisub_type\1/$supsub .= $`.$&;''/e; - $* = 0; + s/\\end(($O|$OP)\d+($C|$CP))$multisub_type\1/$supsub .= $`.$&;''/em; } else { $supsub .= "\{^\\prime\}" } } # include dummy sup/sub-scripts to enhance the vertical spacing debian/patches/fix-mathend-mark.patch0000644000000000000000000000106511421643022014767 0ustar Description: Fixes $mathend_mark This patch fixes math.pl to default to empty $mathend_mark to prevent mathend000# in documents. Author: Arwin Vosselman Bug-Debian: http://bugs.debian.org/424897 --- latex2html-2008-debian1.orig/versions/math.pl +++ latex2html-2008-debian1/versions/math.pl @@ -39,7 +39,7 @@ if ($HTML_OPTIONS =~ /math/) { package main; -$mathend_mark = "\n${verbatim_mark}mathend000#"; +$mathend_mark = ""; $keepcomments_rx = "\\s*(picture|makeimage|xy|diagram|mathend)[*]?" unless ($keepcomments_rx =~ /mathend/); debian/patches/add-url.patch0000644000000000000000000000342311420666641013176 0ustar Description: Add URL to several files In README and FAQ, add the http://saftsack.fs.uni-bayreuth.de/~latex2ht/ URL Author: Roland Stigge --- latex2html-2008-debian1.orig/README +++ latex2html-2008-debian1/README @@ -170,6 +170,8 @@ Support and More Information Announcements, discussion archives, bug reporting forms and more are kept at the LaTeX2HTML home at +http://saftsack.fs.uni-bayreuth.de/~latex2ht/ +or http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html. *** this site has not been updated since November 1996. --- latex2html-2008-debian1.orig/FAQ +++ latex2html-2008-debian1/FAQ @@ -170,9 +170,9 @@ change_end 97.1 Alternatively, a compressed tar file of the source and related files - may be obtained via anonymous ftp to - http://www-dsed.llnl.gov/files/programs/unix/latex2html/sources/latex2 - html-98.1.tar.gz. + may be obtained from + http://saftsack.fs.uni-bayreuth.de/~latex2ht/ + Two other ftp -sites are http://ctan.tug.org/ctan/tex-archive/support/latex2html and @@ -191,7 +191,8 @@ change_end 97.1 Updates and patches are posted on the LATEX2HTML server at - http://www-dsed.llnl.gov/files/programs/unix/latex2html/. + http://saftsack.fs.uni-bayreuth.de/~latex2ht/ + change_end 98.1 @@ -630,8 +631,9 @@ change_end 98.1 * To join the community of LATEX2HTML users: More information on a mailing list, discussion archives, bug reporting forms and more is available at - http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.ht - ml + http://saftsack.fs.uni-bayreuth.de/~latex2ht/ + or + http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html 2.2 Getting Support and More Information debian/patches/fix-romanian.patch0000644000000000000000000000323711421642366014240 0ustar Description: Fixes to Romanian language style This patch fixes several issues in the Romanian version of latex2html. Author: Roland Stigge Bug-Debian: http://bugs.debian.org/119530 --- latex2html-2008-debian1.orig/styles/romanian.perl +++ latex2html-2008-debian1/styles/romanian.perl @@ -16,23 +16,23 @@ package main; if (defined &addto_languages) { &addto_languages('romanian') }; -&do_require_extension ('latin2'); +&do_require_extension ('latin10'); sub romanian_titles { $toc_title = "Cuprins"; - $lof_title = "Listä de figuri"; - $lot_title = "Listä de tabele"; + $lof_title = "Listg de figuri"; + $lot_title = "Listg de tabele"; $idx_title = "Glosar"; $ref_title = "Bibliografie"; $bib_title = "Bibliografie"; $abs_title = "Rezumat"; $app_title = "Anexa"; - $pre_title = "Prefaţä"; + $pre_title = "PrefaB;g"; ## $foot_title = ""; ## $thm_title = ""; $fig_name = "Figura"; $tab_name = "Tabela"; - $prf_name = "Demonstraţie"; + $prf_name = "DemonstraB;ie"; $page_name = "Pagina"; # Sectioning-level titles $part_name = "Partea"; @@ -52,7 +52,7 @@ sub romanian_titles { ## $prev_name = ""; ## $group_name = ""; # mail fields - $encl_name = "Anexä"; + $encl_name = "Anexg"; $headto_name = "Pentru"; $cc_name = "Copie"; @@ -75,7 +75,7 @@ sub romanian_today { &romanian_titles; $default_language = 'romanian'; $TITLES_LANGUAGE = 'romanian'; -$romanian_encoding = 'iso-8859-2'; +$romanian_encoding = 'is-8859-16'; # $Log: romanian.perl,v $ # Revision 1.1 1998/08/25 01:59:07 RRM debian/patches/debian-install.patch0000644000000000000000000000546111421646510014532 0ustar Description: Adjust to Debian installation This patch adjusts several files to the Debian specific installation. Author: Roland Stigge --- latex2html-2008-debian1.orig/config/install.pl +++ latex2html-2008-debian1/config/install.pl @@ -235,7 +235,7 @@ my %Install_items = ( 'styles' => 'lib,recurse', # MRO: Tests are for pre-installation testing #'tests' => 'lib,recurse', - 'texinputs' => 'lib,recurse', + #'texinputs' => 'lib,recurse', #'texlive.pm' => 'lib', 'versions' => 'lib,recurse', #'wrapper' => 'lib,recurse', @@ -372,7 +372,7 @@ foreach $item (sort keys %Install_items) if($cfg{TEXPATH}) { print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n"; - unless(mkpath($cfg{TEXPATH})) { + unless($ENV{'INSTALLING_DEBIAN'} || mkpath($cfg{TEXPATH})) { #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html #$testpath =~ s/[$dd$dd][^$dd$dd]*$//; #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) { @@ -394,7 +394,7 @@ if($cfg{TEXPATH}) { } } closedir(DIR); - if($ok && $cfg{MKTEXLSR}) { + if($ok && $cfg{MKTEXLSR} && ! $ENV{'INSTALLING_DEBIAN'}) { print "Info: Running $cfg{MKTEXLSR} to rebuild ls-R database...\n"; system($cfg{MKTEXLSR}); } --- latex2html-2008-debian1.orig/makeseg/makeseg +++ latex2html-2008-debian1/makeseg/makeseg @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # Check options and load configuration files &init; @@ -17,23 +17,23 @@ # config file settings therefore override anything set here # Location to look for L2H-supported LaTeX styles -$LATEX2HTMLSTYLES="/usr/local/lib/texmf/latex2html/styles" +$LATEX2HTMLSTYLES="/usr/share/texmf/latex2html/styles" unless $LATEX2HTMLSTYLES; # Location for TeX style files etc. # $TEXINPUTS is read from the environment if not explicitly supplied $TEXINPUTS=$ENV{'TEXINPUTS'} unless $TEXINPUTS; -$TEXINPUTS=".:/usr/local/lib/texmf/tex//" unless $TEXINPUTS; +$TEXINPUTS=".:/usr/share/texmf/tex//" unless $TEXINPUTS; # Location for BibTeX Bibliography databases # $BIBINPUTS is read from the environment if not explicitly supplied $BIBINPUTS=$ENV{'BIBINPUTS'} unless $BIBINPUTS; -$BIBINPUTS=".:/usr/local/lib/texmf/bibtex/bib/" unless $BIBINPUTS; +$BIBINPUTS=".:/usr/share/texmf/bibtex/bib/" unless $BIBINPUTS; # Location for BibTeX Bibliography styles (in addition to $TEXINPUTS) # $BSTINPUTS is read from the environment if not explicitly supplied $BSTINPUTS=$ENV{'BSTINPUTS'} unless $BSTINPUTS; -$BSTINPUTS="/usr/local/lib/texmf/bibtex/bst/" unless $BSTINPUTS; +$BSTINPUTS="/usr/share/texmf/bibtex/bst/" unless $BSTINPUTS; # The lowest sectioning command at which to create segments # corresponds to -l option debian/patches/add-abnt.patch0000644000000000000000000000155611421641742013321 0ustar Description: Add abnt style to latex2html This patch adds abnt style support to latex2html. Author: Daniel Ruoso Bug-Debian: http://bugs.debian.org/367114 --- /dev/null +++ latex2html-2008-debian1/styles/abnt.perl @@ -0,0 +1,41 @@ +package main; + +require "/usr/share/latex2html/styles/article.perl"; + +sub do_abnt_brazil { + do_babel_portuges; +} + +# capa autor anexo data local orientador citeonline titulo comentario instituicao + +sub do_cmd_orientador: { +} + +sub do_cmd_comentario { +} + +sub do_cmd_local { +} + +sub do_cmd_instituicao { +} + +sub do_cmd_citeonline { + return do_cmd_cite(@_); +} + +sub do_cmd_data { + return do_cmd_date(@_); +} + +sub do_cmd_autor { + return do_cmd_author(@_); +} + +sub do_cmd_titulo { + return do_cmd_title(@_); +} + +sub do_env_citacao { + return "
    ".$_[0]."
    "; +} debian/patches/fix-image-types.patch0000644000000000000000000000073711421641277014662 0ustar Description: Fixes IMAGE_TYPES By default, IMAGE_TYPES is empty. This patch sets the Debian default to "png gif". Author: Roland Stigge Bug-Debian: http://bugs.debian.org/540197 --- latex2html-2008-debian1.orig/docs/.latex2html-init +++ latex2html-2008-debian1/docs/.latex2html-init @@ -5,6 +5,7 @@ $INDEX_WIDTH = 250; $CONTENTS_WIDTH = 250; $HTML_VALIDATE = ''; $LOCAL_ICONS = 1; - +@IMAGE_TYPES = qw(png gif); +$IMAGE_TYPE = $IMAGE_TYPES[0]; 1; debian/patches/eurosym.patch0000644000000000000000000000067411422613726013354 0ustar Description: Support for eurosym package This patch adds support for the eurosymbol package, i.e. the \euro and \EUR{} macros. Author: Jorgen Schaefer Author: Roland Stigge Bug-Debian: http://bugs.debian.org/163479 --- /dev/null +++ latex2html-2008-debian1/styles/eurosym.perl @@ -0,0 +1,5 @@ +sub do_cmd_euro{join('', "€", $_[0]);} +sub do_cmd_EUR{join('', "€", $_[0]);} + +1; # last line + debian/patches/fix-gs-stderr.patch0000644000000000000000000000127711421645500014341 0ustar Description: Fix gs version detection in perl configuration This patch fixes the gs version detection in the latex2html perl configuration since gs outputs "gs -h" to stderr. Author: Giuseppe Ghibò Bug: http://www.mail-archive.com/latex2html@tug.org/msg02757.html Bug-Debian: http://bugs.debian.org/320187 --- latex2html-2008-debian1.orig/config/config.pl +++ latex2html-2008-debian1/config/config.pl @@ -1043,7 +1043,7 @@ if($opt{'have_pstoimg'}) { my $gs_version; my $flag = 0; - unless(open(GS,"$gs -h |")) { + unless(open(GS,"$gs -h 2>&1|")) { $opt{'have_pstoimg'} = 0; logit("Error: could not execute $gs\n"); &warn_no_images(); debian/patches/manual-fix-address.patch0000644000000000000000000000066711420762227015336 0ustar --- latex2html-2008-debian1.orig/docs/manual.tex +++ latex2html-2008-debian1/docs/manual.tex @@ -168,8 +168,7 @@ % \Glossary{latex2html}{\LaTeX2HTML}{} \title{The \LaTeX2HTML{} Translator} -\author{Nikos Drakos} -\address{Computer Based Learning Unit\\University of Leeds.} +\author{Nikos Drakos\\Computer Based Learning\\Unit University of Leeds} \date{\today} \index{Computer~Based~Learning~Unit!University of Leeds}% \maketitle debian/patches/html-version-4.patch0000644000000000000000000000062011420663466014434 0ustar Description: Use HTML 4.0 by default This patch sets HTML 4.0 by default. Author: Adrian Bunk Bug-Debian: http://bugs.debian.org/223436 --- latex2html-2008-debian1.orig/l2hconf.pin +++ latex2html-2008-debian1/l2hconf.pin @@ -590,7 +589,7 @@ $DEBUG = 0; # -html_version # The default HTML version to be produced # -$HTML_VERSION = '3.2'; +$HTML_VERSION = '4.0'; # -no_math debian/patches/override-dvips-dot-in-filename-problem.patch0000644000000000000000000000214311420666326021212 0ustar Description: Don't complain about multiple dots in filenames This patch prevents latex2html from complaining about multiple dots in filenames. Earlier versions of dvips were not able to handle this but the version on Debian is assumed to be safe. Author: "Fred L. Drake, Jr." Bug-Debian: http://bugs-debian.org/114807 Bug-Debian: http://bugs-debian.org/118095 --- latex2html-2008-debian1.orig/latex2html.pin +++ latex2html-2008-debian1/latex2html.pin @@ -524,7 +524,7 @@ $TMP_PREFIX = "l2h" unless ($TMP_PREFIX) # This can be set to 1 when using a version of dvips that is safe # from the "dot-in-name" bug. # _TODO_ this should be determined by configure -#$DVIPS_SAFE = 1; +$DVIPS_SAFE = 1; $CHARSET = $charset || 'iso-8859-1'; @@ -671,7 +671,7 @@ sub set_if_false { sub check_for_dots { local($file) = @_; - if ($file =~ /\.[^.]*\./) { + if ($file =~ /\.[^.]*\./ && !$DVIPS_SAFE) { die "\n\n\n *** Fatal Error --- but easy to fix ***\n" . "\nCannot have '.' in file-name prefix, else dvips fails on images" . "\nChange the name from $file and try again.\n\n"; debian/patches/fix-spaces-in-filenames.patch0000644000000000000000000000173011420637107016247 0ustar Description: Support for spaces in filenames This patch adds support for spaces in filenames Author: Mazen NEIFER Bug-Debian: http://bugs.debian.org/234879 --- latex2html-2008-debian1.orig/latex2html.pin +++ latex2html-2008-debian1/latex2html.pin @@ -829,11 +829,11 @@ sub driver { # die "File $TEXEXPAND does not exist or is not executable\n" # unless (-x $TEXEXPAND); L2hos->syswait("$TEXEXPAND $dbg -auto_exclude $unseg" - . "-save_styles $DESTDIR$dd$TMP_${dd}styles " - . ($TEXINPUTS ? "-texinputs $TEXINPUTS " : '' ) + . "-save_styles \"$DESTDIR$dd$TMP_${dd}styles\" " + . ($TEXINPUTS ? "-texinputs \"$TEXINPUTS\" " : '' ) . (($VERBOSITY >2) ? "-verbose " : '' ) - . "-out $DESTDIR$dd$TMP_$dd$FILE " - . "$texfilepath$dd$FILE.$EXT") + . "-out \"$DESTDIR$dd$TMP_$dd$FILE\" " + . "\"$texfilepath$dd$FILE.$EXT\"") && die " texexpand failed: $!\n"; print STDOUT "\n *** `texexpand' done ***\n" if ($VERBOSITY > 1); debian/patches/manpages.patch0000644000000000000000000016322511420657405013446 0ustar Description: Separately provided man pages This patch includes man pages for latex2html and texexpand which are provided by Debian in spite of latex2html providing own versions of those. Debian is providing them for several years now and they still seem to be more extensive than the native ones. So we will keep them until the upstream versions can replace them safely. Author: Roland Stigge --- /dev/null +++ latex2html-2008-debian1/texexpand.1 @@ -0,0 +1,388 @@ +.rn '' }` +.de Sh +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp +.if t .sp .5v +.if n .sp +.. +.de Ip +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.de Vb +.ft CW +.nf +.ne \\$1 +.. +.de Ve +.ft R + +.fi +.. +.ie n \{\ +.ds -- \(*W- +.ds PI pi +.if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +.ds L" "" +.ds R" "" +.ds M" """ +.ds S" """ +.ds N" """"" +.ds T" """"" +.ds L' ' +.ds R' ' +.ds M' ' +.ds S' ' +.ds N' ' +.ds T' ' +'br\} +.el\{\ +.ds -- \(em\| +.tr \*(Tr +.ds L" `` +.ds R" '' +.ds M" `` +.ds S" '' +.ds N" `` +.ds T" '' +.ds L' ` +.ds R' ' +.ds M' ` +.ds S' ' +.ds N' ` +.ds T' ' +.ds PI \(*p +'br\} +.\" If the F register is turned on, we'll generate +.\" index entries out stderr for the following things: +.\" TH Title +.\" SH Header +.\" Sh Subsection +.\" Ip Item +.\" X<> Xref (embedded +.\" Of course, you have to process the output yourself +.\" in some meaninful fashion. +.if \nF \{ +.de IX +.tm Index:\\$1\t\\n%\t"\\$2" +.. +.nr % 0 +.rr F +.\} +.TH TEXEXPAND 1 "perl 5.005, patch 03" "29/Jan/2000" "User Contributed Perl Documentation" +.UC +.if n .hy 0 +.if n .na +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.de CQ \" put $1 in typewriter font +.ft CW +'if n "\c +'if t \\&\\$1\c +'if n \\&\\$1\c +'if n \&" +\\&\\$2 \\$3 \\$4 \\$5 \\$6 \\$7 +'.ft R +.. +.\" @(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2 +. \" AM - accent mark definitions +.bd B 3 +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds ? ? +. ds ! ! +. ds / +. ds q +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds ? \s-2c\h'-\w'c'u*7/10'\u\h'\*(#H'\zi\d\s+2\h'\w'c'u*8/10' +. ds ! \s-2\(or\s+2\h'-\w'\(or'u'\v'-.8m'.\v'.8m' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +. ds q o\h'-\w'o'u*8/10'\s-4\v'.4m'\z\(*i\v'-.4m'\s+4\h'\w'o'u*8/10' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds v \\k:\h'-(\\n(.wu*9/10-\*(#H)'\v'-\*(#V'\*(#[\s-4v\s0\v'\*(#V'\h'|\\n:u'\*(#] +.ds _ \\k:\h'-(\\n(.wu*9/10-\*(#H+(\*(#F*2/3))'\v'-.4m'\z\(hy\v'.4m'\h'|\\n:u' +.ds . \\k:\h'-(\\n(.wu*8/10)'\v'\*(#V*4/10'\z.\v'-\*(#V*4/10'\h'|\\n:u' +.ds 3 \*(#[\v'.2m'\s-2\&3\s0\v'-.2m'\*(#] +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.ds oe o\h'-(\w'o'u*4/10)'e +.ds Oe O\h'-(\w'O'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds v \h'-1'\o'\(aa\(ga' +. ds _ \h'-1'^ +. ds . \h'-1'. +. ds 3 3 +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +. ds oe oe +. ds Oe OE +.\} +.rm #[ #] #H #V #F C +.SH "NAME" +texexpand \- expand \einput and \einclude statements in a TeX file +.SH "DESCRIPTION" +General translation mechanism: +.PP +The main program latex2html calls texexpand with the document name +in order to expand some of its \einput and \einclude statements, here +also called \*(L'merging\*(R', and to write a list of sensitized style, class, +input, or include file names. +When texexpand has finished, all is contained in one file, TMP_foo. +(assumed foo.tex is the name of the document to translate). +.PP +In this version, texexpand cares for following environments +that may span include files / section boundaries: +a) \ebegin{comment} +b) \f(CW%begin\fR{comment} +c) \ebegin{any} introduced with \eexcludecomment +d) \f(CW%begin\fR{any} +e) \ebegin{verbatim} +f) \ebegin{latexonly} +g) \f(CW%begin\fR{latexonly} +.PP +e) \- g) prevent texexpand from expanding input files, but the environment +content goes fully into the output file. +.PP +Together with each merging of \einput etc. there are so-called %%%texexpand +markers accompanying the boundary. +.PP +When latex2html reads in the output file, it uses these markers to write +each part to a separate file, and process them further. +.Sh "Detailed technical notes:" +1. \f(CW%begin\fR{latexonly} and \f(CW%end\fR{latexonly} have to be on a separate line. +Anything between these tags (including the tags) is discarded. +.PP +2. \ebegin{latexonly} and \eend{latexonly} have to be on a separate line. +Anything between these tags (including the tags) is not expanded. +.PP +3. [%\e]begin{"to exclude"} and [%\e]end{"to exclude"} have to be on a +separate line. +Anything between these tags (including the tags) is discarded. +.PP +4. \ebegin{verbatim/verbatim*} and \eend{verbatim/verbatim*} have to be +on a separate line. +Anything between these tags (including the tags) is not expanded. +.PP +5. The scope of any such tags may extend over several files. +The opening tag for latexonly may occur on a different include level +than the closing tag. +The opening tag for verbatim/"to exclude\*(R" must occur within the same +file than the closing tag. +.PP +6. Warnings are printed when the document has been parsed and open +tags remain. +.PP +7. When in a \*(L"to exclude"/verbatim environment, texexpand won't recognize +\s-1ANY\s0 command except the corresponding closing tag. +There cannot be any nested constructions. +This behaviour is identical to that of LaTeX. +.PP +8. \ebegin{latexonly},\eend{latexonly} may be nested, whereas +\f(CW%begin\fR{latexonly},%end{latexonly} may not be nested. +.PP +9. A \*(L"%\*(R" tag cannot close a \*(L"\e\*(R" tag, and vice versa. +.PP +10. Every \e\fIdocument\fR\|(class|style), \eusepackage, \einput and \einclude command +has to be on a separate line. +.PP +11. Everything behind a `%\*(R' that isn't preceded by a `\e\*(R' is regarded as +a comment, i.e. it is printed but not interpreted. +.PP +12. If any command listed in 10. is preceded by an occurence of `\everb\*(R' or +`\elatex\*(R' then it is \s-1NOT\s0 interpreted. This crashes on lines like this: +blah blah \everb+foo foo+ \einput{bar} % bar won't be loaded! +.PP +13. Packages provided via \eusepackage are handled the same way as +`options\*(R' in \e\fIdocument\fR\|(class|style), i.e. they are included when +\-auto_exclude is off, the package isn't in \f(CW@dont_include\fR *\s-1OR\s0* the +package is in \f(CW@do_include\fR (new). They are added to the style file +together with their options if the file itself hasn't been merged. +\edocumentclass[options]{class} searches for every option.clo, +\edocumentstyle[options]{style} searches for every option.sty. +\eusepackage[options]{packages} searches for every package.sty. +.PP +14. Each texinputs directory is searched for input files/styles. If it +ends in `//\*(R', the whole subdirectory tree is searched. +.PP +15. \einput / \einclude merge the given file (if found under the given +name or with .tex extension) if its basename is in \f(CW@do_include\fR or if it +isn't in \f(CW@dont_include\fR or if the given filename doesn't end in +\&.sty/.clo/.cls when \-auto_exclude is set. +.Sh "Notes" +Recognizes \edocumentclass, \edocumentstyle, \eusepackage, \eRequirePackage, +\ebegin{verbatim}...\eend{verbatim}, \f(CW%begin\fR{latexonly}...%end{latexonly}, +\ebegin{latexonly}...\eend{latexonly}, \einput, \einclude, \everb, \elatex +\eendinput, \eend{document} +\eincludecomment, \eexcludecomment +\ebegin{"to exclude"}, \eend{"to exclude"} +\f(CW%begin\fR{"to exclude"}, \f(CW%end\fR{"to exclude"} +.SH "The gory Details" +Include and parse a file. +This routine is recursive, see also &process_input_include_file, +&process_document_header, and &process_package_cmd. +.PP +Two global flags control the states of texexpand. + o \f(CW$active\fR is true if we should interprete the lines to expand +files, check for packages, etc. + o \f(CW$mute\fR is true if we should prevent the lines from going into the out file. +.PP +We have three general states of texexpand: + 1) interprete the lines and pass them to the out file +This is the normal case. Corresponding: \f(CW$active\fR true, \f(CW$mute\fR false +.PP +.Vb 3 +\& 2) interprete minimal and suppress them +\&This is when parsing inside a comment environment, which +\&also would retain its body from LaTeX. => $active false, $mute true +.Ve +.Vb 4 +\& 3) interprete minimal and pass the lines to the out file +\&This is inside a verbatim or latexonly environment. +\&The line of course must be at least interpreted to determine the closing tag. +\&=> $active false, $mute false +.Ve +Any environment may extend over several include files. +Any environement except verbatim and latexonly may have its +opening or closing tag on different input levels. +The comment and verbatim environments cannot be nested, as +is with LaTeX. +We must at least parse verbatim/comment environments in +latexonly environments, to catch fake latexonly tags. +.PP +The work scheme: +Five functions influence texexpand's behavior. +o &process_file opens the given file and parses the non-comment part in +order to set \f(CW$active\fR and \f(CW$mute\fR (see above). +It calls &interprete to interprete the non-comment content and either +continues with the next line of its file or terminates if &interprete +detected the \eend{document} or an \eendinput. +.PP +o &interprete handles some LaTeX tags with respect to the three states +controlled by \f(CW$active\fR and \f(CW$mute\fR. +Regarding to \einput|include, \e\fIdocument\fR\|(class|style), and +\e(use|Require)package the functions &process_input_include_file, +&process_document_header, and &process_package_cmd are called respectively. +.PP +o These three functions check if the file name or option files are enabled +or disabled for merging (via TEXE_DO_INCLUDE or TEXE_DONT_INCLUDE). +Any file that is to include will be \*(L'merged\*(R' into the current file, i.e. +the function &process_file is called at this place in time (recursively). +This will stop interpretation at the current line in file, start with the +new file to process and continues with the next line as soon as the new +file is interpreted to its end. +.PP +The call tree (noweb+xy.sty would be handy here): +.PP +.Vb 13 +\& main +\& | +\& v +\& +->process_file +\& | | +\& | v +\& | interprete (with respect to the current line, one of that three) +\& | | | | +\& | v v v +\& | process_input_include_file process_document_header process_package_cmd +\& | | | | +\& | v v v +\& +----+---------------------------+------------------------+ +.Ve +Bugs: +o Since the latexonly environment is not parsed, its contents +might introduce environments which are not recognized. +.PP +o The closing tag for latexonly is not found if hidden inside +an input file. +.PP +o One environment tag per line, yet! +.PP +o If I would have to design test cases for this beast I would +immediately desintegrate into a logic cloud. +.PP +Notes: +.PP +o Ok, I designed test cases for it. +Please refer to test \*(L'expand\*(R' of the regression test suite +in the developers\*(R' module of the l2h repository. +.PP +o \-unsegment feature: +In this (rare) case, the user wants to translate a segmented document +not in segments but in a whole (for testing, say). +We enable this by recognizing the \esegment command in &interprete, +causing the segment file to be treated like \einput but loosing the first +lines prior to \estartdocument (incl.), as controlled via \f(CW$segmentfile\fR. +On how to segment a document you are best guided by section +``Document Segmentation'\*(R' of the LaTeX2HTML manual. +.SH "CAVEATS" +This utility is automatically configured and built to work on the +local setup. If this setup changes (e.g. some of the external commands +are moved), the script has be be reconfigured. +.SH "Authors" +.PP +.Vb 8 +\& Based on texexpand by Robert Thau, MIT AI lab, including modifications by +\& Franz Vojik +\& Nikos Drakos +\& Sebastian Rahtz +\& Maximilian Ott +\& Martin Boyer +\& Herbert Swan +\& Jens Lippmann +.Ve + +.rn }` '' --- /dev/null +++ latex2html-2008-debian1/latex2html.1 @@ -0,0 +1,1294 @@ +.\" Hey, Emacs! This is an -*- nroff -*- source file. +.\" Copyright (c) 1997 Manoj Srivastava +.\" +.\" This is free documentation; you can redistribute it and/or +.\" modify it under the terms of the GNU General Public License as +.\" published by the Free Software Foundation; either version 2 of +.\" the License, or (at your option) any later version. +.\" +.\" The GNU General Public License's references to "object code" +.\" and "executables" are to be interpreted as the output of any +.\" document formatting or typesetting system, including +.\" intermediate and printed output. +.\" +.\" This manual is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public +.\" License along with this manual; if not, write to the Free +.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, +.\" USA. +.\" +.\" +.\" $Id: latex2html.1,v 1.2 2000/03/04 07:55:13 srivasta Exp $ +.\" +.TH LaTeX2HTML 1 "March 1 2000" "Debian" "Debian GNU/Linux manual" +.SH NAME +latex2html \- translate LaTeX files to HTML (HyperText Markup Language) +.SH SYNOPSIS +.B latex2html +.I [options] +\&[target [target ...]] +.SH DESCRIPTION +This manual page explains the +.B "LaTeX2HTML" +utility, which is a +.B Perl +program that translates +.B LaTeX +document into +.B HTML +format. For each source file given as an argument +the translator will create a directory containing the corresponding +HTML files. For details and examples, please consult the online html +documentation, a copy of which should be available in +.I /usr/share/doc/latex2html/manual.ps.gz +or +.I /usr/share/doc/latex2html/html/ +.SH CAVEAT +This documentation has been derived from the TeX manual, and may not be +up to date. Please refer to the online manual for authoritative +documentation. +.SH Options controlling Titles, File-Names and Sectioning +.TP +.B -t +Same as setting: +.I $TITLE = ""; +Name the document using this title. +.TP +.B -short_extn +Same as setting: +.I $SHORTEXTN = 1; +Use a filename prefix of .htm for the produced +.B HTML +files. This is +particularly useful for creating pages to be stored on CD-ROM or other +media, to be used with operating systems that require a 3-character +extension. +.TP +.B -long_titles +Same as setting: +.I $LONG_TITLES = ; +Instead of the standard names: node1.html, node2.html,... the filenames +for each +.B HTML +page are constructed from the first words of the +section heading for that page, separated by the `_' character. +Commas and common short words (a an to by of and for the) are omitted +from both title and word-count. +Warning: Use this switch with great caution. Currently there are no +checks for uniqueness of names or overall length. Very long names can +easily result from using this feature. +.TP +.B -custom_titles +Same as setting: +.I $CUSTOM_TITLES = 1; +Instead of the standard names: node1.html, node2.html, ... the +filenames for each +.B HTML +page are constructed using a +.B Perl +subroutine +named custom_title_hook . The user may define his/her own version of +this subroutine, within a .latex2html-init file say, to override the +default (which uses the standard names). This subroutine takes the +section-heading as a parameter and must return the required name, or +the empty string (default). +.TP +.B -dir +Same as setting: +.I $DESTDIR = ""; +Redirect the output to the specified directory. +The default behaviour is to create (or reuse) a directory having the +same name as the prefix of the document being processed. +.TP +.B -no_subdir +Same as setting: +.I $NO_SUBDIR = 1; +Place the generated +.B HTML +files into the current directory. This +overrides any +.I $DESTDIR +setting. +.TP +.B -prefix +Same as setting: +.I $PREFIX = ""; +The will be prepended to all .gif, .pl and .html +files produced, except for the top-level .html file; it may include a +(relative) directory path. This will enable multiple products of +.B LaTeX2HTML +to peacefully coexist in the same directory. However, do not +attempt to simultaneously run multiple instances of +.B LaTeX2HTML +using +the same output directory, else various temporary files will overwrite +each other. +.TP +.B -auto_prefix +Same as setting: +.I $AUTO_PREFIX = 1; +Constructs the prefix as `-' to be prepended to all the files +produced, where <title> is the name of the +.B LaTeX +file being processed. +(Note the `-' in this prefix.) +This overrides any +.I $PREFIX +setting. +.TP +.B -no_auto_link +Same as setting: +.I $NO_AUTO_LINK = 1; +If $NO_AUTO_LINK is empty and variables +.I $LINKPOINT +and +.I $LINKNAME +are +defined appropriately (as is the default in the latex2html.config +file), then a hard link to the main +.B HTML +page is produced, using the +name supplied in +.I $LINKNAME. +Typically this is index.html; on many +systems a file of this name will be used, if it exists, when a browser +tries to view a URL which points to a directory. On other systems a +different value for +.I $LINKNAME +may be appropriate. Typically +.I $LINKPOINT +has +value +.I $FILE.html, +but this may also be changed to match whichever +HTML page is to become the target of the automatic link. +Use of the -no_auto_link switch cancels this automatic linking +facility, when not required for a particular document. +.TP +.B -split <num> +Same as setting: +.I $MAX_SPLIT_DEPTH = <num>; (default is 8) +Stop splitting sections into separate files at this depth. Specifying +-split 0 will put the entire document into a single +.B HTML +file. See +below for the different levels of sectioning. Also see the next item +for how to set a ``relative'' depth for splitting. +.TP +.B -split +<num> +Same as setting: +.I $MAX_SPLIT_DEPTH = -<num>; (default is 8) +The level at which to stop splitting sections is calculated ``relative +to'' the shallowest level of sectioning that occurs within the +document. For example, if the document contains \\section commands, but +no \\part or \\chapter commands, then -split +1 will cause splitting at +each \\section but not at any deeper level; whereas -split +2 or -split ++3 also split down to \\subsection and \\subsubsection commands +respectively. Specifying -split +0 puts the entire document into a +single +.B HTML +file. +.TP +.B -link <num> +Same as setting: +.I $MAX_LINK_DEPTH = <num>; (default is 4) +For each node, create links to child nodes down to this much deeper +than the node's sectioning-level. +Specifying -link 0 will show no links to child nodes from that page, +-link 1 will show only the immediate descendants, etc. +A value at least as big as that of the -split <num> depth will produce +a mini table-of-contents (when not empty) on each page, for the tree +structure rooted at that node. +When the page has a sectioning-level less than the -split depth, so +that the a mini table-of-contents has links to other +.B HTML +pages, this +table is located at the bottom of the page, unless placed elsewhere +using the \\tableofchildlinks command. +On pages having a sectioning-level just less than the -split depth the +mini table-of-contents contains links to subsections etc. occurring on +the same +.B HTML +page. Now the table is located at the top of this page, +unless placed elsewhere using the \\tableofchildlinks command. +.TP +.B -toc_depth <num> +Same as setting: +.I $TOC_DEPTH = <num>; (default is 4) +Sectioning levels down to <num> are to be included within the +Table-of-Contents tree. +.TP +.B -toc_stars +Same as setting: +.I $TOC_STARS = 1; +Sections created using the starred-form of sectioning commands are +included within the Table-of-Contents. As with +.B LaTeX, +normally such +sections are not listed. +.TP +.B -show_section_numbers +Same as setting: +.I $SHOW_SECTION_NUMBERS = 1; +Show section numbers. By default section numbers are not shown, so as +to encourage the use of particular sections as stand-alone documents. +In order to be shown, section titles must be unique and must not +contain inlined graphics. +.TP +.B -unsegment +Same as setting: +.I $UNSEGMENT = 1; +Treat a segmented document (see the section about document +segmentation) like it were not segmented. This will cause the +translator to concatenate all segments and process them as a whole. You +might find this useful to check a segmented document for consistency. +For all documents the sectioning levels referred to above are: +.RS + 0 document + 1 part + 2 chapter + 3 section + 4 subsection + 5 subsubsection + 6 paragraph + 7 subparagraph + 8 subsubparagraph +.RE +.P +These levels apply even when the document contains no sectioning for the +shallower levels; e.g. no \\part or \\chapter commands is most common, +especially when using +.B LaTeX's +article document-class. +.SH Options controlling Extensions and Special Features +The switches described here govern the type of +.B HTML +code that can be +generated, and how to choose between the available options when there are +alternative strategies for implementing portions of +.B LaTeX +code. +.TP +.B -html_version (2.0|3.0|3.2)[,(math|i18n|table)]* +Same as setting: +.I $HTML_VERSION = "... "; +This specifies both the +.B HTML +version to generate, and any extra +(non-standard) +.B HTML +features that may be required. +The version number corresponds to a published DTD for an +.B HTML +standard +(although 3.0 was never accepted and subsequently withdrawn). A +corresponding +.B Perl +file in the versions/ subdirectory is loaded; these +files are named `html<num>.pl'. +Following the version number, a comma-separated list of extensions can +be given. Each corresponds to a file `<name>.pl' also located in the +versions/ subdirectory. When such a file is loaded the resulting HTML +code can no longer be expected to validate with the specified DTD. An +exception is math when the -no_math switch is also used, which should +still validate. +Currently, versions 2.0, 3.2 and 4.0 are available. (and also 2.1, 2.2, +3.0 and 3.1, for historical reasons). The extensions i18n, tables, +math correspond roughly to what used to be called versions `2.1', +`2.2', `3.1' respectively, in releases of +.B LaTeX2HTML +up to 1996. Now +these extensions can be loaded with any of `2.0', `3.2' or `4.0' as the +specified standard. +The default version is usually set to be `3.2', within +latex2html.config. +.TP +.B -no_tex_defs +Same as setting: +.I $TEXDEFS = 0; (default is 1) +When +.I $TEXDEFS +is set (default) the file texdefs.perl will be read. This +provides code to allow common TEX commands like \\def, \\newbox, +\\newdimen and others, to be recognised, especially within the document +preamble. In the case of \\def, the definition may even be fully +interpreted, but this requires the pattern-matching to be not too +complicated. +If +.I $TEXDEFS +is `0' or empty, then texdefs.perl will not be loaded; the +translator will make no attempt to interpret any raw TEX commands. This +feature is intended to enable sophisticated authors the ability to +insert arbitrary TEX commands in environments that are destined to be +processed by +.B LaTeX +anyway; e.g. figures, theorems, pictures, etc. +However this should rarely be needed, as now there is better support +for these types of environment. There are now other methods to specify +which chunks of code are to be passed to +.B LaTeX +for explicit +image-generation; see the discussion of the makeimage environment. +.TP +.B -external_file <filename> +Same as setting: +.I $EXTERNAL_FILE = "<filename>"; +Specifies the prefix of the .aux file that this document should read. +The .aux extension will be appended to this prefix to get the complete +filename, with directory path if needed. +This file could contain necessary information regarding citations, +figure, table and section numbers from +.B LaTeX +and perhaps other +information also. Use of this switch is vital for document segments, +processed separately and linked to appear as if generated from a single +LaTeX document. +.TP +.B -font_size <size> +Same as setting: +.I $FONT_SIZE = "<size>"; +This option provides better control over the font size of environments +made into images using +.B LaTeX. +<size> must be one of the font sizes that +.B LaTeX +recognizes; i.e. `10pt', `11pt', `12pt', etc. Default is `10pt', +or whatever option may have been specified on the \\documentclass or +\\documentstyle line. +Whatever size is selected, it will be magnified by the installation +variables +.I $MATH_SCALE_FACTOR, +.I $FIGURE_SCALE_FACTOR +and +.I $DISP_SCALE_FACTOR +as appropriate. +Note: This switch provides no control over the size of text on the HTML +pages. Such control is subject entirely to the user's choices of +settings for the browser windows. +.TP +.B -scalable_fonts +Same as setting: +.I $SCALABLE_FONTS = 1; +This is used when scalable fonts, such as PostScript versions of the +TEX fonts, are available for image-generation. +It has the effect of setting +.I $PK_GENERATION +to `1', and +.I $DVIPS_MODE +to +be empty, overriding any previous settings for these variables. +.TP +.B -no_math +Same as setting: +.I $NO_SIMPLE_MATH = 1; +Ordinarily simple mathematical expressions are set using the ordinary +text font, but italicized. When part of the expression can not be +represented this way, an image is made of the whole formula. This is +called ``simple math''. When +.I $NO_SIMPLE_MATH +is set, then all +mathematics is made into images, whether simple or not. +However, if the math extension is loaded, using the -html_version +switch described earlier, then specifying -no_math produces a quite +different effect. Now it is the special <MATH> tags and entities which +are canceled. In their place a sophisticated scheme for parsing +mathematical expressions is used. Images are made of those sub-parts of +a formula which cannot be adequately expressed using (italicized) text +characters and <SUB> and <SUP> tags. See the subsection on mathematics +for more details. +.TP +.B -local_icons +Same as setting: +.I $LOCAL_ICONS = 1; +A copy of each of the icons actually used within the document is placed +in the directory along with the +.B HTML +files and generated images. This +allows the whole document to be fully self-contained, within this +directory; otherwise the icons must be retrieved from a (perhaps +remote) server. +The icons are normally copied from a subdirectory of the + +.B $LATEX2HTMLDIR, + set within latex2html.config. An alternative set of +icons can be used by specifying a (relative) directory path in +$ALTERNATIVE_ICONS to where the customised images can be found. +.TP +.B -init_file <file> +Load the specified initialisation file. This +.B Perl +file will be loaded +after loading +.I $HOME/.latex2html-init, +or .latex2html-init in the local +directory, if either file exists. It is read at the time the switch is +processed, so the contents of the file may change any of the values of +any of the variables that were previously established, as well as any +default options. More than one initialisation file can be read in this +way. +[change_begin]98.1 +.TP +.B -no_fork +Same as setting: +.I $NOFORK = 1; +When set this disables a feature in the early part of the processing +whereby some memory-intensive operations are performed by `forked' +child processes. Some single-task operating systems, such as DOS, do +not support this feature. Having +.I $NOFORK +set then ensures that +unnecessary file-handles that are needed with the forked processes, are +not consumed unnecessarily, perhaps resulting in a fatal +.B Perl +error. +.TP +.B -iso_language <type> +This enables you to specify a different language type than 'EN' to be +used in the DTD entries of the +.B HTML +document, e.g. 'EN.US'. +[change_end] 98.1 +.TP +.B -short_index +Same as setting: +.I $SHORT_INDEX = 1; +Creates shorter Index listings, using codified links; this is fully +compatible with the makeidx package. +.TP +.B -no_footnode +Same as setting: +.I $NO_FOOTNODE = 1; +Suppresses use of a separate file for footnotes; instead these are +placed at the bottom of the +.B HTML +pages where the references occur. +When this option is used, it is frequently desirable to change the +style of the marker used to indicate the presence of a footnote. This +is done as in +.B LaTeX, +using code such as follows. +\\renewcommand{\\thefootnote}{\\arabic{footnote}} +All the styles \\arabic, \\alph, \\roman, \\Alph and \\Roman are available. +[change_begin]98.1 +.TP +.B -numbered_footnotes +Same as setting: +.I $NUMBERED_FOOTNOTES = 1; +If this is set you will get every footnote applied with a subsequent +number, to ease readability. +[change_end] 98.1 +.TP +.B -address <author-address> +Same as setting: +.I $ADDRESS = "<author-address>"; +Sign each page with this address. +See latex2html.config for an example using +.B Perl +code to automatically +include the date. +A user-defined +.B Perl +subroutine called &custom_address can be used +instead, if defined; it takes the value of +.I $ADDRESS +as a parameter, +which may be used or ignored as desired. At the time when this +subroutine will be called, variables named $depth, +.I $title, +.I $file +hold +the sectioning-level, title and filename of the +.B HTML +page being +produced; +.I $FILE +holds the name of the filename for the title-page of +the whole document. +.TP +.B -info <string> +Same as setting: +.I $INFO = "<string>"; +Generate a new section ``About this document'' containing information +about the document being translated. The default is to generate such a +section with information on the original document, the date, the user +and the translator. An empty string (or the value `0') disables the +creation of this extra section. +If a non-empty string is given, it will be placed as the contents of +the ``About this document'' page instead of the default information. +.SH Switches controlling Image Generation +These switches affect whether images are created at all, whether old images +are reused on subsequent runs or new ones created afresh, and whether +anti-aliasing effects are used within the images themselves. +.TP +.B -ascii_mode +Same as setting: +.I $ASCII_MODE = $EXTERNAL_IMAGES = 1; +Use only ASCII characters and do not include any images in the final +output. With -ascii_mode the output of the translator can be used on +character-based browsers, such as lynx, which do not support inlined +images (via the <IMG> tag). +.TP +.B -nolatex +Same as setting: +.I $NOLATEX = 1; +Disable the mechanism for passing unknown environments to +.B LaTeX +for +processing. This can be thought of as ``draft mode'' which allows +faster translation of the basic document structure and text, without +fancy figures, equations or tables. +(This option has been superseded by the -no_images option, see below.) +.TP +.B -external_images +Same as setting: +.I $EXTERNAL_IMAGES = 1; +Instead of including any generated images inside the document, leave +them outside the document and provide hypertext links to them. +.TP +.B -ps_images +Same as setting: +.I $PS_IMAGES = $EXTERNAL_IMAGES = 1; +Use links to external PostScript files rather than inlined images in +the chosen graphics format. +.TP +.B -discard +Same as setting: +.I $DISCARD_PS = 1; +The temporary PostScript files are discarded immediately after they +have been used to create the image in the desired graphics format. +.TP +.B -no_images +Same as setting: +.I $NO_IMAGES = 1; +Do not attempt to produce any inlined images. The missing images can be +generated ``off-line'' by restarting +.B LaTeX2HTML +with the option +-images_only . +.TP +.B -images_only +Same as setting: +.I $IMAGES_ONLY = 1; +Try to convert any inlined images that were left over from previous +runs of +.B LaTeX2HTML. +.TP +.B -reuse <reuse_option> +Same as setting: +.I $REUSE = <reuse_option>; +This switch specifies the extent to which image files are to be shared +or recycled. +There are three valid options: +[*] 0 +Do not ever share or recycle image files. +This choice also invokes an interactive session prompting the user +about what to do about a pre-existing +.B HTML +directory, if it +exists. +[*] 1 +Recycle image files from a previous run if they are available, +but do not share identical images that must be created in this +run. +[*] 2 +Recycle image files from a previous run and share identical images +from this run. +This is the default. +A later section provides additional information about image-reuse. +.TP +.B -no_reuse +Same as setting: +.I $REUSE = 0; +Do not share or recycle images generated during previous translations. +This is equivalent to -reuse 0 . (This will enable the initial +interactive session during which the user is asked whether to reuse the +old directory, delete its contents or quit.) +.TP +.B -antialias +Same as setting: +.I $ANTI_ALIAS = 1; (Default is 0.) +Generated images of figure environments and external PostScript files +should use anti-aliasing. By default anti-aliasing is not used with +these images, since this may interfere with the contents of the images +themselves. +.TP +.B -antialias_text +Same as setting: +.I $ANTI_ALIAS_TEXT = 1; (Default is 1.) +Generated images of typeset material such as text, mathematical +formulas, tables and the content of makeimage environments, should use +anti-aliasing effects. +The default is normally to use anti-aliasing for text, since the +resulting images are much clearer on-screen. However the default may +have been changed locally. +.TP +.B -no_antialias +Same as setting: +.I $ANTI_ALIAS = 0; (Default is 0.) +Generated images of figure environments and external PostScript files +should not use anti-aliasing with images, though the local default may +have been changed to use it. +.TP +.B -no_antialias_text +Same as setting: +.I $ANTI_ALIAS_TEXT = 0; (Default is 1.) +Generated images of typeset material should not use anti-aliasing +effects. Although on-screen images of text are definitely improved +using anti-aliasing, printed images can be badly blurred, even at +300dpi. Higher resolution printers do a much better job with the +resulting grey-scale images. +[change_begin]98.1 +.TP +.B -white +Same as setting: +.I $WHITE_BACKGROUND = 1; (Default is 1.) +Ensures that images of figure environments have a white background. +Otherwise transparency effects may not work correctly. +.TP +.B -no_white +Same as setting: +.I $WHITE_BACKGROUND = ''; (Default is 1.) +Cancels the requirement that figure environments have a white +background. +.TP +.B -ldump +Same as setting: +.I $LATEX_DUMP = 1; (Default is 0.) +Use this if you want to speed up image processing during the 2nd and +subsequent runs of +.B LaTeX2HTML +on the same document. The translator now +produces a +.B LaTeX +format-dump of the preamble to images.tex which is +used on subsequent runs. This significantly reduces the startup time +when +.B LaTeX +reads the images.tex file for image-generation. +This process actually consumes additional time on the first run, since +.B LaTeX +is called twice -- once to create the format-dump, then again to +load and use it. The pay-off comes with the faster loading on +subsequent runs. Approximately 1 Meg of disk space is consumed by the +dump file. +[change_end] 98.1 +.SH Switches controlling Navigation Panels +The following switches govern whether to include one or more navigation +panels on each +.B HTML +page, also which buttons to include within such a panel. +.TP +.B -no_navigation +Same as setting: +.I $NO_NAVIGATION = 1; +Disable the mechanism for putting navigation links in each page. +This overrides any settings of the +.I $TOP_NAVIGATION, +.I $BOTTOM_NAVIGATION +and +.I $AUTO_NAVIGATION +variables. +.TP +.B -top_navigation +Same as setting: +.I $TOP_NAVIGATION = 1; +Put navigation links at the top of each page. +.TP +.B -bottom_navigation +Same as setting: +.I $BOTTOM_NAVIGATION = 1; +Put navigation links at the bottom of each page as well as the top. +.TP +.B -auto_navigation +Same as setting: +.I $AUTO_NAVIGATION = 1; +Put navigation links at the top of each page. Also put one at the +bottom of the page, if the page exceeds +.I $WORDS_IN_PAGE +number of words +(default = 450). +.TP +.B -next_page_in_navigation +Same as setting: +.I $NEXT_PAGE_IN_NAVIGATION = 1; +Put a link to the next logical page in the navigation panel. +.TP +.B -previous_page_in_navigation +Same as setting: +.I $PREVIOUS_PAGE_IN_NAVIGATION = 1; +Put a link to the previous logical page in the navigation panel. +.TP +.B -contents_in_navigation +Same as setting: +.I $CONTENTS_IN_NAVIGATION = 1; +Put a link to the table-of-contents in the navigation panel if there is +one. +.TP +.B -index_in_navigation +Same as setting: +.I $INDEX_IN_NAVIGATION = 1; +Put a link to the index-page in the navigation panel if there is an +index. +.SH Switches for Linking to other documents +When processing a single stand-alone document, the switches described in +this section should not be needed at all, since the automatically generated +navigation panels, described on the previous page should generate all the +required navigation links. However if a document is to be regarded as part +of a much larger document, then links from its first and final pages, to +locations in other parts of the larger (virtual) document, need to be +provided explicitly for some of the buttons in the navigation panel. +The following switches allow for such links to other documents, by providing +the title and URL for navigation panel hyperlinks. In particular, the +``Document Segmentation'' feature necessarily makes great use of these +switches. It is usual for the text and targets of these navigation +hyperlinks to be recorded in a Makefile, to avoid tedious typing of long +command-lines having many switches. +.TP +.B -up_url <URL> +Same as setting: +.I $EXTERNAL_UP_LINK = "<URL>"; +Specifies a universal resource locator (URL) to associate with the +``UP'' button in the navigation panel(s). +.TP +.B -up_title <string> +Same as setting: +.I $EXTERNAL_UP_TITLE = "<string>"; +Specifies a title associated with this URL. +.TP +.B -prev_url <URL> +Same as setting: +.I $EXTERNAL_PREV_LINK = "<URL>"; +Specifies a URL to associate with the ``PREVIOUS'' button in the +navigation panel(s). +.TP +.B -prev_title <string> +Same as setting: +.I $EXTERNAL_PREV_TITLE = "<string>"; +Specifies a title associated with this URL. +.TP +.B -down_url <URL> +Same as setting: +.I $EXTERNAL_DOWN_LINK = "<URL>"; +Specifies a URL for the ``NEXT'' button in the navigation panel(s). +.TP +.B -down_title <string> +Same as setting: +.I $EXTERNAL_DOWN_TITLE = "<string>"; +Specifies a title associated with this URL. +.TP +.B -contents <URL> +Same as setting: +.I $EXTERNAL_CONTENTS = "<URL>"; +Specifies a URL for the ``CONTENTS'' button, for document segments that +would not otherwise have one. +.TP +.B -index <URL> +Same as setting: +.I $EXTERNAL_INDEX = "<URL>"; +Specifies a URL for the ``INDEX'' button, for document segments that +otherwise would not have an index. +.TP +.B -biblio <URL> +Same as setting: +.I $EXTERNAL_BIBLIO = "<URL>"; +Specifies the URL for the bibliography page to be used, when not +explicitly part of the document itself. +Warning: On some systems it is difficult to give text-strings <string> +containing space characters, on the command-line or via a Makefile. One way +to overcome this is to use the corresponding variable. Another way is to +replace the spaces with underscores (_). +.SH Switches for Help and Tracing +The first two of the following switches are self-explanatory. When problems +arise in processing a document, the switches -debug and -verbosity will each +cause +.B LaTeX2HTML +to generate more output to the screen. These extra messages +should help to locate the cause of the problem. +.TP +.B -tmp <path> +Define a temporary directory to use for image generation. If <path> is +0, the standard temporary directory /tmp is used. +.TP +.B -h(elp) +Print out the list of all command-line options. +.TP +.B -v +Print the current version of +.B LaTeX2HTML. +.TP +.B -debug +Same as setting: +.I $DEBUG = 1; +Run in debug-mode, displaying messages and/or diagnostic information +about files read, and utilities called by +.B LaTeX2HTML. +Shows any +messages produced by these calls. +More extensive diagnostics, from the +.B Perl +debugger, can be obtained by +appending the string `-w-' to the 1st line of the latex2html (and +other) +.B Perl +script(s). +.TP +.B -verbosity <num> +Same as setting: +.I $VERBOSITY = <num>; +Display messages revealing certain aspects of the processing performed +by +.B LaTeX2HTML +on the provided input file(s). The <num> parameter can be +an integer in the range 0 to 8. Each higher value adds to the messages +produced. +.TP +0. +No special tracing; as for versions of +.B LaTeX2HTML +prior to V97.1. +.TP +1. +(This is the default.) Show section-headings and the corresponding +HTML file names, and indicators that major stages in the +processing have been completed. +.TP +2. +Print environment names and identifier numbers, and new +theorem-types. Show warnings as they occur, and indicators for +more stages of processing. Print names of files for storing +auxiliary data arrays. +.TP +3. +Print command names as they are encountered and processed; also +any unknown commands encountered while pre-processing. Show names +of new commands, environments, theorems, counters and +counter-dependencies, for each document partition. +.TP +4. +Indicate command-substitution the pre-process of +math-environments. Print the contents of unknown environments for +processing in +.B LaTeX, +both before and after reverting to +.B LaTeX +source. Show all operations affecting the values of counters. Also +show links, labels and sectioning keys, at the stages of +processing. +.TP +5. +Detail the processing in the document preamble. Show substitutions +of new environments. Show the contents of all recognised +environments, both before and after processing. Show the +cached/encoded information for the image keys, allowing two images +to be tested for equality. +.TP +6. +Show replacements of new commands, accents and wrapped commands. +.TP +7. +Trace the processing of commands in math mode; both before and +after. +.TP +8. +Trace the processing of all commands, both before and after. +The command-line option sets an initial value only. During processing +the value of +.I $VERBOSITY +can be set dynamically using the +\\htmltracing{...} command, whose argument is the desired value, or by +using the more general \\HTMLset command as follows: +\\HTMLset{VERBOSITY}{<num>}. +.SH Other Configuration Variables, without switches +The configuration variables described here do not warrant having a +command-line switch to assign values. Either they represent aspects of +.B LaTeX2HTML +that are specific to the local site, or they govern properties +that should apply to all documents, rather than something that typically +would change for the different documents within a particular sub-directory. +Normally these variables have their value set within the latex2html.config +file. In the following listing the defaults are shown, as the lines of Perl +code used to establish these values. If a different value is required, then +these can be assigned from a local .latex2html-init initialisation file, +without affecting the defaults for other users, or documents processed from +other directories. +.TP +.B $dd +holds the string to be used in file-names to delimit directories; it +is set internally to `/', unless the variable has already been given a +value within latex2html.config . +Note: This value cannot be set within a .latex2html-init initialisation +file, since its value needs to be known in order to find such a file. +.TP +.B $LATEX2HTMLDIR +Read by the install-test script from latex2html.config, its value is +inserted into the latex2html +.B Perl +script as part of the installation +process. +.TP +.B $LATEX2HTMLSTYLES = "$LATEX2HTMLDIR/styles"; +Read from the latex2html.config file by install-test, its value is +checked to locate the styles/ directory. +.TP +.B $LATEX2HTMLVERSIONS = "$LATEX2HTMLDIR/versions"; +The value of this variable should be set within latex2html.config to +specify the directory path where the version and extension files can be +found. +.TP +.B $ALTERNATIVE_ICONS = ''; +This may contain the (relative) directory path to a set of customised +icons to be used in conjunction with the -local_icons switch. +.TP +.B $TEXEXPAND = "$LATEX2HTMLDIR/texexpand"; +Read by the install-test +.B Perl +script from latex2html.config, its value +is used to locate the texexpand +.B Perl +script. +.TP +.B $PSTOIMG = "$LATEX2HTMLDIR/pstoimg"; +Read by the install-test +.B Perl +script from latex2html.config, its value +is used to locate the pstoimg +.B Perl +script. +.TP +.B $IMAGE_TYPE = '<image-type>'; +Set in latex2html.config, the currently supported <image-type>s are: +gif and png. +.TP +.B $DVIPS = 'dvips'; +Read from latex2html.config by install-test, its value is checked to +locate the dvips program or script. +There could be several reasons to change the value here: +.RS +.RS +.P +add a switch -P<printer> to load a specific configuration-file; +e.g. to use a specific set of PostScript fonts, for improved +image-generation. +.P +to prepend a path to a different version of dvips than normally +available as the system default (e.g. the printing requirements +are different). +.P +to append debugging switches, in case of poor quality images; +one can see which paths are being searched for fonts and other +resources. +.P +to prepend commands for setting path variables that dvips may need +in order to locate fonts or other resources. +.RE +.P +If automatic generation of fonts is required, using Metafont, the +following configuration variables are important. +.TP +.B $PK_GENERATION = 1; +This variable must be set, to initiate font-generation; otherwise +fonts will be scaled from existing resources on the local system. +In particular this variable must not be set, if one wishes to use +PostScript fonts or other scalable font resources (see the +-scalable_fonts switch). +.TP +.B $DVIPS_MODE = 'toshiba'; +The mode given here must be available in the modes.mf file, +located with the Metafont resource files, perhaps in the misc/ +subdirectory. +.TP +.B $METAFONT_DPI = 180; +The required resolution, in dots-per-inch, should be listed +specifically within the MakeTeXPK script, called by dvips to +invoke Metafont with the correct parameters for the required +fonts. +.RE +.TP +.B $LATEX = 'latex'; +Read from latex2html.config by install-test, its value is checked to +locate the latex program or script. +If +.B LaTeX +is having trouble finding style-files and/or packages, then +the default command can be prepended with other commands to set +environment variables intended to resolve these difficulties; +e.g. +.I $LATEX = 'setenv TEXINPUTS <path to search> ; latex' . +There are several variables to help control exactly which files are +read by +.B LaTeX2HTML +and by +.B LaTeX +when processing images: +.RS +.TP +.B $TEXINPUTS +This is normally set from the environment variable of the same +name. If difficulties occur so that styles and packages are not +being found, then extra paths can be specified here, to resolve +these difficulties. +.TP +.B $DONT_INCLUDE +This provides a list of filenames and extensions to not include, +even if requested to do so by an \\input or \\include command. +(Consult latex2html.config for the default list.) +.TP +.B $DO_INCLUDE = ''; +List of exceptions within the +.I $DONT_INCLUDE +list. These files are +to be read if requested by an \\input or \\include command. +.RE +.TP +.B $ICONSERVER = '<URL>'; +This is used to specify a URL to find the standard icons, as used for +the navigation buttons. +Names for the specific images size, as well as size information, can be +found in latex2html.config. The icons themselves can be replaced by +customised versions, provided this information is correctly updated and +the location of the customised images specified as the value of +$ICONSERVER. +When the -local_icons switch is used, so that a copy of the icons is +placed with the +.B HTML +files and other generated images, the value of +$ICONSERVER is not needed within the +.B HTML +files themselves. However it +is needed to find the original icons to be copied to the local +directory. +.TP +.B $NAV_BORDER = <num>; +The value given here results in a border, measured in points, around +each icon. +A value of `0' is common, to maintain strict alignment of inactive and +active buttons in the control panels. +.TP +.B $LINKNAME = '"index.$EXTN"'; +This is used when the +.I $NO_AUTO_LINK +variable is empty, to allow a URL +to the working directory to be sufficient to reach the main page of the +completed document. It specifies the name of the +.B HTML +file which will +be automatically linked to the directory name. +The value of +.I $EXTN +is .html unless +.I $SHORTEXTN +is set, in which case it +is .htm . +.TP +.B $LINKPOINT = '"$FILE$EXTN"'; +This specifies the name of the +.B HTML +file to be duplicated, or +symbolically linked, with the name specified in +.I $LINKNAME. +At +the appropriate time the value of +.I $FILE +is the document name, which +usually coincides with the name of the working directory. +.TP +.B $CHARSET = 'iso_8859_1'; +This specifies the character set used within the +.B HTML +pages produced by +.B LaTeX2HTML. +If no value is set in a configuration or initialisation +file, the default value will be assumed. The lowercase form +.I $charset +is +also recognised, but this is overridden by the uppercase form. +.TP +.B $ACCENT_IMAGES = 'large'; +Accented characters that are not part of the ISO-Latin fonts can be +generated by making an image using +.B LaTeX. +This variable contains a +(comma-separated) list of +.B LaTeX +commands for setting the style to be +used when these images are made. If the value of this variable is empty +then the accent is simply ignored, using an un-accented font character +(not an image) instead. +.P +Within the color.perl package, the following two variables are used to identify +the names of files containing specifications for named colors. Files having +these names are provided, in the +.I $LATEX2HTMLSTYLES +directory, but they could +be moved elsewhere, or replaced by alternative files having different names. +In such a case the values of these variables should be altered accordingly. +.P +.B $RGBCOLORFILE = 'rgb.txt'; +.P +.B $CRAYOLAFILE = 'crayola.txt'; +.P +The following variables may well be altered from the system defaults, but +this is best done using a local .latex2html-init initialisation file, for +overall consistency of style within documents located at the same site, or +sites in close proximity. +.TP +.B $default_language = 'english'; +This establishes which language code is to be placed within the +<!DOCTYPE ... > tag that may appear at the beginning of the +.B HTML +pages +produced. Loading a package for an alternative language can be expected +to change the value of this variable. +See also the +.I $TITLES_LANGUAGE +variable, described next. +.TP +.B $TITLES_LANGUAGE = 'english'; +This variable is used to specify the actual strings used for standard +document sections, such as ``Contents'', ``References'', ``Table of +Contents'', etc. +Support for French and German titles is available in corresponding +packages. Loading such a package will normally alter the value of this +variable, as well as the +.I $default_language +variable described above. +.TP +.B $WORDS_IN_NAVIGATION_PANEL_TITLES = 4; +Specifies how many words to use from section titles, within the textual +hyperlinks which accompany the navigation buttons. +.TP +.B $WORDS_IN_PAGE = 450; +Specifies the minimum page length required before a navigation panel is +placed at the bottom of a page, when the +.I $AUTO_NAVIGATION +variable is +set. +.TP +.B $CHILDLINE = \(dq<BR><HR>\\\\n\(dq; +This gives the +.B HTML +code to be placed between the child-links table and +the ordinary contents of the page on which it occurs. +.TP +.B $NETSCAPE_HTML = 0; +When set, this variable specifies that +.B HTML +code may be present which +does not conform to any official standard. This restricts the contents +of any <!DOCTYPE ... > tag which may be placed at the beginning of the +HTML pages produced. +.TP +.B $BODYTEXT = ''; +The value of this variable is used within the <BODY ... > tag; e.g. to +set text and/or background colors. +It's value is overridden by the \\bodytext command, and can be added-to +or parts changed using the \\htmlbody command or \\color and \\pagecolor +from the color package. +.TP +.B $INTERLACE = 1; +When set, interlaced images should be produced. +This requires graphics utilities to be available to perform the +interlacing operation. +.TP +.B $TRANSPARENT_FIGURES = 1; +When set, the background of images should be made transparent; +otherwise it is white. +This requires graphics utilities to be available which can specify the +color to be made transparent. +.TP +.B $FIGURE_SCALE_FACTOR = 1.6; +Scale factor applied to all images of figure and other environments, +when being made into an image. +Note that this does not apply to recognised mathematics environments, +which instead use the contents of +.I $MATH_SCALE_FACTOR +and +$DISP_SCALE_FACTOR to specify scaling. +.TP +.B $MATH_SCALE_FACTOR = 1.6; +Scale factor applied to all images of mathematics, both inline and +displayed. A value of 1.4 is a good alternative, with anti-aliased +images. +.TP +.B $DISP_SCALE_FACTOR = 1; +Extra scale factor applied to images of displayed math environments. +When set, this value multiplies +.I $MATH_SCALE_FACTOR +to give the total +scaling. A value of `1.2' is a good choice to accompany +$MATH_SCALE_FACTOR = 1.4;. +.TP +.B $EXTRA_IMAGE_SCALE +This may hold an extra scale factor that can be applied to all +generated images. +When set, it specifies that a scaling of +.I $EXTRA_IMAGE_SCALE +be applied +when images are created, but to have their height and width recorded as +the un-scaled size. This is to coax browsers into scaling the (usually +larger) images to fit the desired size; when printed a better quality +can be obtained. Values of `1.5' and `2' give good print quality at +600dpi. +.TP +.B $PAPERSIZE = 'a5'; +Specifies the size of a page for typesetting figures or displayed math, +when an image is to be generated. +This affects the lengths of lines of text within images. Since images +of text or mathematics should use larger sizes than when printed, else +clarity is lost at screen resolutions, then a smaller paper-size is +generally advisable. This is especially so if both the +$MATH_SCALE_FACTOR and +.I $DISP_SCALE_FACTOR +scaling factors are being +used, else some images may become excessively large, including a lot of +blank space. +.TP +.B $LINE_WIDTH = 500; +Formerly specified the width of an image, when the contents were to be +right- or center-justified. (No longer used.) +.PP +The following variables are used to access the utilities required during +image-generation. File and program locations on the local system are +established by the configure-pstoimg +.B Perl +script and stored within +.I $LATEX2HTMLDIR/local.pm +as +.B Perl +code, to be read by pstoimg when required. +After running the configure-pstoimg Perl script it should not be necessary +to alter the values obtained. Those shown below are what happens on the +author's system; they are for illustration only and do not represent default +values. +.PP + $GS_LIB = '/usr/local/share/ghostscript/4.02'; + $PNMCAT = '/usr/local/bin/pnmcat'; + $PPMQUANT = '/usr/local/bin/ppmquant'; + $PNMFLIP = '/usr/local/bin/pnmflip'; + $PPMTOGIF = '/usr/local/bin/ppmtogif'; + $HOWTO_TRANSPARENT_GIF = 'netpbm'; + $GS_DEVICE = 'pnmraw'; + $GS = '/usr/local/bin/gs'; + $PNMFILE = '/usr/local/bin/pnmfile'; + $HOWTO_INTERLACE_GIF = 'netpbm'; + $PBMMAKE = '/usr/local/bin/pbmmake'; + $PNMCROP = '/usr/local/bin/pnmcrop'; + $TMP = '/usr/var/tmp'; +The following variables are no longer needed, having been replaced by the +more specific information obtained using the Perl script configure-pstoimg. + $USENETPBM = 1; + $PBMPLUSDIR = '/usr/local/bin'; +.SH "SEE ALSO" +.BR latex (1) +.SH AUTHOR +Nikos Drakos, Computer Based Learning Unit, University of Leeds +<nikos@cbl.leeds.ac.uk>. Several people have contributed suggestions, +ideas, solutions, support and encouragement. +The current maintainer is Ross Moore. +This manual page was written by Manoj Srivastava <srivasta@debian.org>, +for the Debian GNU/Linux system, based on the LaTeX documentation +accompanying the program. ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/pstoimg-match-gray.patch�������������������������������������������������������������0000644�0000000�0000000�00000001320�11420636247�015353� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Fix gray background on dvips in pstoimg This patch fixes gray background detection on dvips via a regexp adjustment in pstoimg.pin Author: Diab Jerius <djerius@cfa.harvard.edu> Bug-Debian: http://bugs.debian.org/291420 --- latex2html-2008-debian1.orig/pstoimg.pin +++ latex2html-2008-debian1/pstoimg.pin @@ -1137,7 +1137,7 @@ sub ps2pnm { } my $had_nonwhite; if($opt{white}) { - $had_nonwhite = ($ps =~ s/(\n\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray clippath fill grestore)/$1 1 $2/s); + $had_nonwhite = ($ps =~ s/(\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray clippath fill grestore)/$1 1 $2/s); } $ps_changed = $had_papersize || $had_nonwhite; if($ps_changed) { ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/makefiles-fixes.patch����������������������������������������������������������������0000644�0000000�0000000�00000013045�11420763534�014722� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Fixes to Makefiles This patch includes several fixes and adjustments to the Makefiles. Author: Roland Stigge <stigge@antcom.de> --- latex2html-2008-debian1.orig/docs/Makefile.frames +++ latex2html-2008-debian1/docs/Makefile.frames @@ -26,7 +26,7 @@ LATEX = latex MAKEINDEX = makeindex BIBTEX = bibtex -L2H = latex2html -no_math -html_version 3.2,math -accent_images textrm -toc_depth 6 +L2H = latex2html -no_math -html_version 4.0,math -accent_images textrm -toc_depth 6 #L2H = l2ng -no_math -html_version 4.0,math -scalable_fonts L2Hframes = latex2html -no_math -html_version 4.0,math,frame -accent_images textrm -scalable_fonts @@ -147,13 +147,13 @@ LSEC7 = $(COMMON) -prefix C -dir $(TOP manual.ps: manual.cb manual.dvi $(DVIPS) manual.dvi -o $@ -manual.aux manual.cb: +manual.aux manual.cb: \ manual.tex credits.tex licence.tex overview.tex \ support.tex userman.tex hypextra.tex features.tex \ problems.tex l2hfiles.dat manhtml.tex l2hman.sty $(LATEX) manual.tex -manual.glo manual.idx: +manual.glo manual.idx: \ manual.tex credits.tex licence.tex overview.tex \ support.tex userman.tex hypextra.tex features.tex \ problems.tex l2hfiles.dat manhtml.tex l2hman.sty @@ -234,7 +234,8 @@ htmlclean: clean: rm -f manual.dvi manual.ps manual.glo manual.log manual.aux \ manual.ilg manual.lof manual.lot manual.cb manual.idx \ - manual.toc + manual.toc manual.gls + rm -f *.ptr # --- latex2html-2008-debian1.orig/docs/Makefile +++ latex2html-2008-debian1/docs/Makefile @@ -21,8 +21,8 @@ LATEX = latex MAKEINDEX = makeindex BIBTEX = bibtex -# L2H = latex2html -no_math -html_version 3.2,math -scalable_fonts -L2H = latex2html -no_math -html_version 3.2,math +# L2H = latex2html -no_math -html_version 3.2,math -scalable_fonts +L2H = latex2html -no_math -html_version 4.0,math # @@ -30,7 +30,7 @@ L2H = latex2html -no_math -html_version # to set path-variables before calling other scripts. # For example... # -TEXMF = /usr/local/texmf +TEXMF = /usr/lib/texmf LATEXINPUTDIR = $(TEXMF)/tex/latex// PKFONTDIR = $(TEXMF)/fonts/public//pk/cx// @@ -83,50 +83,50 @@ COMMON = -external_file $(TOP) -dir $( -biblio $(REFNODE) -no_auto_link -no_footnode \ -split 6 -link 6 -up_url $(TOP).html -up_title $(TOPTITLE) -LTOP = -short_index -split 4 -link 5\ +LTOP = -short_index -split 4 -link 5 -no_auto_link\ -t $(TOPTITLE) $(TOP).tex LSEC1 = $(COMMON) -prefix O \ -prev_url $(TOP).html -prev_title $(TOPTITLE) \ - -down_url $(SUP).html -down_title $(S2TITLE) $(OVW).tex + -down_url $(SUP).html -down_title $(S2TITLE) $(OVW).tex LSEC2 = $(COMMON) -prefix S -debug \ -prev_url $(OVW).html -prev_title $(S1TITLE) \ - -down_url $(ENV).html -down_title $(S3TITLE) $(SUP).tex + -down_url $(ENV).html -down_title $(S3TITLE) $(SUP).tex -# -down_url $(MAN).html -down_title $(S3TITLE) $(SUP).tex +# -down_url $(MAN).html -down_title $(S3TITLE) $(SUP).tex LSEC3 = $(COMMON) -prefix E \ -prev_url ../$(TOP)/$(SUP).html -prev_title $(S2TITLE) \ - -down_url ../$(TOP)/$(HYP).html -down_title $(S4TITLE) $(ENV).tex + -down_url ../$(TOP)/$(HYP).html -down_title $(S4TITLE) $(ENV).tex -# -down_url ../$(TOP)/$(HYP).html -down_title $(S4TITLE) $(MAN).tex +# -down_url ../$(TOP)/$(HYP).html -down_title $(S4TITLE) $(MAN).tex LSEC4 = $(COMMON) -prefix H \ -prev_url ../$(TOP)/$(ENV).html -prev_title $(S3TITLE) \ - -down_url ../$(TOP)/$(MAN).html -down_title $(S5TITLE) $(HYP).tex + -down_url ../$(TOP)/$(MAN).html -down_title $(S5TITLE) $(HYP).tex # -prev_url ../$(TOP)/$(MAN).html -prev_title $(S3TITLE) \ -# -down_url ../$(TOP)/$(FEA).html -down_title $(S5TITLE) $(HYP).tex +# -down_url ../$(TOP)/$(FEA).html -down_title $(S5TITLE) $(HYP).tex LSEC5 = $(COMMON) -prefix M \ -prev_url ../$(TOP)/$(HYP).html -prev_title $(S4TITLE) \ - -down_url ../$(TOP)/$(PRO).html -down_title $(S6TITLE) $(MAN).tex + -down_url ../$(TOP)/$(PRO).html -down_title $(S6TITLE) $(MAN).tex -# -down_url ../$(TOP)/$(PRO).html -down_title $(S6TITLE) $(FEA).tex +# -down_url ../$(TOP)/$(PRO).html -down_title $(S6TITLE) $(FEA).tex LSEC6 = $(COMMON) -prefix P \ -prev_url ../$(TOP)/$(MAN).html -prev_title $(S5TITLE) \ - -down_url ../$(TOP)/$(REFNODE).html -down_title $(BIBLIO) $(PRO).tex + -down_url ../$(TOP)/$(REFNODE).html -down_title $(BIBLIO) $(PRO).tex # -prev_url ../$(TOP)/$(FEA).html -prev_title $(S5TITLE) \ -# -down_url ../$(TOP)/$(CHGNODE).html -down_title $(CHGTITLE) $(PRO).tex +# -down_url ../$(TOP)/$(CHGNODE).html -down_title $(CHGTITLE) $(PRO).tex LSEC7 = $(COMMON) -prefix C -dir $(TOP) -info 0 \ -prev_url ../$(TOP)/$(PRO).html -prev_title $(S6TITLE) \ - -down_url ../$(TOP)/$(GLOSSNODE).html -down_title $(GLOSS) $(CHA).tex + -down_url ../$(TOP)/$(GLOSSNODE).html -down_title $(GLOSS) $(CHA).tex # @@ -202,12 +202,13 @@ images: $(L2H) -short_index -images_only manual.tex htmlclean: - rm -f manual/.??* manual/*TMP* + rm -f manual/.??* manual/*TMP* clean: rm -f manual.dvi manual.ps manual.glo manual.log manual.aux \ manual.ilg manual.lof manual.lot manual.cb manual.idx \ - manual.toc + manual.toc manual.gls + rm -f *.ptr # @@ -264,7 +265,7 @@ $(TOP)/$(SUP).html: $(SUP).tex $(TOP)/$( $(SUP): $(L2H) $(LSEC2) -S.stamp: $(SUP).tex $(TOP)/$(INT) +S.stamp: $(SUP).tex $(TOP)/$(INT) $(L2H) $(LSEC2) touch $@ @@ -279,7 +280,7 @@ $(TOP)/$(MAN).html: $(MAN).tex $(TOP)/$( $(MAN): $(L2H) $(LSEC5) -M.stamp: $(MAN).tex $(TOP)/$(INT) +M.stamp: $(MAN).tex $(TOP)/$(INT) $(L2H) $(LSEC5) touch $@ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/pstoimg-dont-use-rgb-txt.patch�������������������������������������������������������0000644�0000000�0000000�00000001243�11420645272�016444� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Don't use rgb.txt from pstoimg This patch prevents pstoimg from using rgb.txt which can make latex2html calls fail. Author: Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp> Bug-Debian: http://bugs.debian.org/368693 --- latex2html-2008-debian1.orig/pstoimg.pin +++ latex2html-2008-debian1/pstoimg.pin @@ -1508,7 +1508,8 @@ sub crop_scale_etc { $pnmtoimg .= ' -interlace'; } if($TRANSPARENT) { - $trans_color = $TRANSPARENT_COLOR||'gray85'; + $trans_color = $TRANSPARENT_COLOR||'#d9d9d9'; # don't lookup rgb.txt + #$trans_color = $TRANSPARENT_COLOR||'gray85'; $pnmtoimg .= ' -trans ' . L2hos->quote($trans_color); } } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/latex2html-fix-defined.patch���������������������������������������������������������0000644�0000000�0000000�00000002726�11740600014�016102� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Fix perl warning about deprecated "defined(%hash)" latex2html with current perl gives warnings about the deprecation of "defined(%hash)". This patches removes them by just removing the resp. keyword. Author: Roland Stigge <stigge@antcom.de> Index: latex2html-2008-debian1/latex2html.pin =================================================================== --- latex2html-2008-debian1.orig/latex2html.pin 2010-07-31 16:13:21.000000000 +0200 +++ latex2html-2008-debian1/latex2html.pin 2012-04-09 17:21:52.000000000 +0200 @@ -532,7 +532,7 @@ # # If possible, use icons of the same type as generated images # -if ($IMAGE_TYPE && defined %{"icons_$IMAGE_TYPE"}) { +if ($IMAGE_TYPE && %{"icons_$IMAGE_TYPE"}) { %icons = %{"icons_$IMAGE_TYPE"}; } @@ -2112,7 +2112,7 @@ "\nCould not find translation function for $default_language.\n\n") } ); - if ($USE_UTF ||(!$NO_UTF &&(defined %unicode_table)&&length(%unicode_table)>2)) { + if ($USE_UTF ||(!$NO_UTF &&(%unicode_table)&&length(%unicode_table)>2)) { &convert_to_unicode($_)}; } $_ = join('', @case_processed, $_); undef(@case_processed); @@ -9117,7 +9117,7 @@ my ($charset) = "${CHARSET}_character_map_inv"; $charset =~ s/-/_/g; # convert upper 8-bit characters - if (defined %$charset &&($CHARSET =~ /8859[_\-]1$/)) { + if (%$charset &&($CHARSET =~ /8859[_\-]1$/)) { s/([\200-\377])/ $tmp = $$charset{'&#'.ord($1).';'}; &mark_string($tmp) if ($tmp =~ m!\{!); ������������������������������������������debian/dirs�����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000065�11740571761�010064� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������usr/share/doc/latex2html/html usr/share/man/man1 etc ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/README.foilhtml.Debian�����������������������������������������������������������������������0000644�0000000�0000000�00000010770�11420634523�013051� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������The foilhtml LaTeX package tries to be clever about landscape mode and fails miserably. Essentially, FoilTeX turns the page once, and foilhtml undos this. The following patch _should_ solve the problem, though it's not well-tested, and I may certainly missing some evil side-effects of my changes. Except for some obligatory cosmetic nonsense you don't want to use, this essentially replaces all occurences of rotatedfoilhead{} in the various sectioning macros by foilhead{} - foilhead{} as defined in the standard FoilTeX package already knows about landscape mode and does the right thing. --- /usr/lib/texmf/tex/latex/latex2html/foilhtml.sty Tue Oct 13 18:59:23 1998 +++ newfoilhtml.sty Fri Feb 18 00:07:12 2000 @@ -20,7 +20,7 @@ %% original source files, as listed above, are part of the %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) -\ProvidesPackage{foilhtml} +\ProvidesPackage{newfoilhtml} [1998/02/17 v1.2 Sectioning Commands for FoilTeX] %% Copyright Boris Veytsman 1997 %% @@ -49,10 +49,6 @@ \typeout{Loading configuration file foilhtml.cfg}}{% \typeout{Configuration file foilhtml.cfg is not found. Using default options.}} -\newif\if@portraitfoils -\@portraitfoilstrue -\DeclareOption{landscape}{\@portraitfoilsfalse} \ProcessOptions \@ifundefined{foilhead}{% \def\portraitfoils{\relax}% \def\lanscapefoils{\relax}% @@ -101,30 +97,17 @@ \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% - \if@portraitfoils - \foilhead{\huge\bfseries\partname~\thepart\\[1ex]% - \Huge\bfseries #2}% - \else - \rotatefoilhead{\huge\bfseries\partname~\thepart\\[1ex]% + \foilhead{\huge\bfseries\partname~\thepart\\[1ex]% \Huge\bfseries #2}% - \fi \else \addcontentsline{toc}{part}{#1}% - \if@portraitfoils - \foilhead{\Huge\bfseries #2}% - \else - \rotatefoilhead{\Huge\bfseries #2}% - \fi + \foilhead{\Huge\bfseries #2}% \fi \markboth{}{}% \clearpage} \def\@spart#1{% - \if@portraitfoils - \foilhead{\Huge\bfseries #1}% - \else - \rotatefoilhead{\Huge\bfseries #1}% - \fi - \markboth{}{}% + \foilhead{\Huge\bfseries #1}% + \markboth{}{}% \clearpage} \newcommand\chapter{% \@afterindentfalse\clearpage @@ -133,29 +116,15 @@ \ifnum \c@secnumdepth >-1\relax \refstepcounter{chapter}% \addcontentsline{toc}{chapter}{\thechapter\hspace{1em}#1}% - \if@portraitfoils - \foilhead{\LARGE\bfseries\chaptername~\thechapter\\[1ex]% - \huge\bfseries #2}% - \else - \rotatefoilhead{\LARGE\bfseries\chaptername~\thechapter\\[1ex]% - \huge\bfseries #2}% - \fi + \foilhead{\LARGE\bfseries\chaptername~\thechapter\\[1ex]% + \huge\bfseries #2}% \else \addcontentsline{toc}{chapter}{#1}% - \if@portraitfoils - \foilhead{\huge\bfseries #2}% - \else - \rotatefoilhead{\huge\bfseries #2}% - \fi - \fi - \markboth{}{}% + \foilhead{\huge\bfseries #2}% + \markboth{}{}% \clearpage} \def\@schapter#1{% - \if@portraitfoils - \foilhead{\huge\bfseries #1}% - \else - \rotatefoilhead{\huge\bfseries #1}% - \fi + \foilhead{\huge\bfseries #1}% \markboth{}{}% \clearpage} \newcommand\section{% @@ -169,27 +138,15 @@ \addcontentsline{toc}{section}{\thesection\hspace{1em}#1}% \markboth{\MakeUppercase{\thesection~#2}}{% \MakeUppercase{\thesection~#2}}% - \if@portraitfoils - \foilhead{\Large\bfseries\thesection~#2}% - \else - \rotatefoilhead{\Large\bfseries\thesection~#2}% - \fi + \foilhead{\Large\bfseries\thesection~#2}% \else \addcontentsline{toc}{section}{#1}% \markboth{\MakeUppercase{#2}}{\MakeUppercase{#2}}% - \if@portraitfoils - \foilhead{\Large\bfseries #2}% - \else - \rotatefoilhead{\Large\bfseries #2}% - \fi + \foilhead{\Large\bfseries #2}% \fi \global\@subnewfoilfalse\everypar{\global\@subnewfoiltrue\everypar{}}} \def\@ssection#1{% - \if@portraitfoils - \foilhead{\Large\bfseries #1}% - \else - \rotatefoilhead{\Large\bfseries #1}% - \fi + \foilhead{\Large\bfseries #1}% \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}% \global\@subnewfoilfalse\everypar{\global\@subnewfoiltrue\everypar{}}} \newcommand\subsection{% ��������debian/clean����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000040�11740570315�010170� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������docs/html.sty docs/htmllist.sty ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/README.Debian��������������������������������������������������������������������������������0000644�0000000�0000000�00000000377�11422617033�011235� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������latex2html in Debian ==================== * The package hyperref with the \href macro isn't supported. Instead, other macros are provided. See the manual, under "Hypertext Extensions". Roland Stigge <stigge@antcom.de>, Sat, 24 Jul 2010 19:07:39 +0200 �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/postinst�������������������������������������������������������������������������������������0000644�0000000�0000000�00000004347�11744063171�011010� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Abort if any command returns an error value set -e # This script is called as the last step of the installation of the # package. All the package's files are in place, dpkg has already # done its automatic conffile handling, and all the packages we depend # of are already fully installed and configured. # The following idempotent stuff doesn't generally need protecting # against being run in the abort-* cases. package_name=latex2html if [ -z "package_name" ]; then print >&2 "Internal Error. Please report a bug." exit 1; fi case "$1" in configure) # Configure this package. If the package must prompt the user for # information, do it here. # There are three sub-cases: if test "${2+set}" != set; then # We're being installed by an ancient dpkg which doesn't remember # which version was most recently configured, or even whether # there is a most recently configured version. : elif test -z "$2" || test "$2" = "<unknown>"; then # The package has not ever been configured on this system, or was # purged since it was last configured. : else # Version $2 is the most recently configured version of this # package. : fi ;; abort-upgrade) # Back out of an attempt to upgrade this package FROM THIS VERSION # to version $2. Undo the effects of "prerm upgrade $2". : ;; abort-remove) if test "$2" != in-favour; then echo "$0: undocumented call to \`postinst $*'" 1>&2 exit 0 fi # Back out of an attempt to remove this package, which was due to # a conflict with package $3 (version $4). Undo the effects of # "prerm remove in-favour $3 $4". : ;; abort-deconfigure) if test "$2" != in-favour || test "$5" != removing; then echo "$0: undocumented call to \`postinst $*'" 1>&2 exit 0 fi # Back out of an attempt to deconfigure this package, which was # due to package $6 (version $7) which we depend on being removed # to make way for package $3 (version $4). Undo the effects of # "prerm deconfigure in-favour $3 $4 removing $6 $7". : ;; *) echo "$0: didn't understand being called with \`$1'" 1>&2 exit 0;; esac #DEBHELPER# exit 0 �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/doc-base�������������������������������������������������������������������������������������0000644�0000000�0000000�00000002660�11420614111�010561� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Document: latex2html Title: LaTeX2HTML Author: Various Abstract: LaTeX2HTML is a conversion tool that that converts documents written in LaTeX to HTML format. In addition, it offers an easy migration path towards authoring complex hypermedia documents using familiar word-processing concepts. LaTeX2HTML replicates the basic structure of a LaTeX document as a set of interconnected HTML files which can be explored using automatically generated navigation panels. The cross-references, citations, footnotes, the table of contents and the lists of figures and tables, are also translated into hypertext links. Formatting information which has equivalent ``tags'' in HTML (lists, quotes, paragraph breaks, type styles, etc.) is also converted appropriately. The remaining heavily formatted items such as mathematical equations, pictures or tables are converted to images which are placed automatically at the correct positions in the final HTML document. LaTeX2HTML extends LaTeX by supporting arbitrary hypertext links and symbolic cross-references between evolving remote documents. It also allows the specification of conditional text and the inclusion of raw HTML commands. These hypermedia extensions to LaTeX are available as new commands and environments from within a LaTeX document." Section: Text Format: HTML Index: /usr/share/doc/latex2html/html/manual.html Files: /usr/share/doc/latex2html/html/*.html ��������������������������������������������������������������������������������debian/postrm���������������������������������������������������������������������������������������0000644�0000000�0000000�00000004704�11740574634�010455� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # Abort if any command returns an error value set -e # This script is called twice during the removal of the package; once # after the removal of the package's files from the system, and as # the final step in the removal of this package, after the package's # conffiles have been removed. case "$1" in remove) # This package is being removed, but its configuration has not yet # been purged. ;; purge) # This package has previously been removed and is now having # its configuration purged from the system. # Change the default config file name if [ -e /etc/latex2html.config ]; then rm /etc/latex2html.config fi : ;; disappear) if test "$2" != overwriter; then echo "$0: undocumented call to \`postrm $*'" 1>&2 exit 0 fi # This package has been completely overwritten by package $3 # (version $4). All our files are already gone from the system. # This is a special case: neither "prerm remove" nor "postrm remove" # have been called, because dpkg didn't know that this package would # disappear until this stage. : ;; upgrade) # About to upgrade FROM THIS VERSION to version $2 of this package. # "prerm upgrade" has been called for this version, and "preinst # upgrade" has been called for the new version. Last chance to # clean up. : ;; failed-upgrade) # About to upgrade from version $2 of this package TO THIS VERSION. # "prerm upgrade" has been called for the old version, and "preinst # upgrade" has been called for this version. This is only used if # the previous version's "postrm upgrade" couldn't handle it and # returned non-zero. (Fix old postrm bugs here.) : ;; abort-install) # Back out of an attempt to install this package. Undo the effects of # "preinst install...". There are two sub-cases. : if test "${2+set}" = set; then # When the install was attempted, version $2's configuration # files were still on the system. Undo the effects of "preinst # install $2". : else # We were being installed from scratch. Undo the effects of # "preinst install". : fi ;; abort-upgrade) # Back out of an attempt to upgrade this package from version $2 # TO THIS VERSION. Undo the effects of "preinst upgrade $2". : ;; *) echo "$0: didn't understand being called with \`$1'" 1>&2 exit 0;; esac #DEBHELPER# exit 0 ������������������������������������������������������������debian/buildinfo������������������������������������������������������������������������������������0000644�0000000�0000000�00000005603�11740264426�011076� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������binutils-2.22-6 dpkg-1.16.2 dpkg-dev-1.16.2 gcc-4:4.6.3-3 libc-ares2:i386-1.7.5-1 libc-bin-2.13-27 libc-dev-bin-2.13-27 libc6:i386-2.13-27 libc6-dbg:i386-2.13-27 libc6-dev-2.13-27 libc6-i686:i386-2.13-27 libcaca0-0.99.beta17-2.1 libcairo-gobject2:i386-1.12.0-2 libcairo-perl-1.090-1 libcairo-script-interpreter2:i386-1.12.0-2 libcairo2:i386-1.12.0-2 libcairo2-dev-1.12.0-2 libcairo2-doc-1.12.0-2 libcairomm-1.0-1-1.10.0-1 libcamel-1.2-29-3.2.2-2 libcamel1.2-dev-3.2.2-2 libcanberra-dev-0.28-3 libcanberra-doc-0.28-3 libcanberra-gtk-module-0.28-3 libcanberra-gtk0-0.28-3 libcanberra-gtk3-0-0.28-3 libcanberra-pulse-0.28-3 libcanberra0-0.28-3 libcap-ng0-0.6.6-1 libcap2-1:2.22-1 libcap2-bin-1:2.22-1 libcapi20-3-1:3.9.20060704+dfsg.3-5 libcapi20-dev-1:3.9.20060704+dfsg.3-5 libcapture-tiny-perl-0.17-1 libcaribou-common-0.4.1-2 libcaribou0:i386-0.4.1-2 libcarp-clan-perl-6.04-1 libcdaudio-dev-0.99.12p2-11 libcdaudio1-0.99.12p2-11 libcddb2-1.3.2-3 libcdio-cdda0-0.81-5 libcdio-paranoia0-0.81-5 libcdio10-0.81-5 libcdparanoia0-3.10.2+debian-10.1 libcdt4-2.26.3-10 libcelt0-0-0.7.1-1 libcfitsio3:i386-3.290-1 libcgraph5-2.26.3-10 libchamplain-0.12-0:i386-0.12.2-1 libchamplain-0.4-0-0.4.6-3 libchamplain-gtk-0.12-0:i386-0.12.2-1 libchamplain-gtk-0.4-0-0.4.6-3 libcheese-gtk18-2.30.1-3 libcheese-gtk20:i386-3.2.2-2 libcheese1:i386-3.2.2-2 libck-connector0:i386-0.4.5-3 libclass-accessor-perl-0.34-1 libclass-inspector-perl-1.27-1 libclass-isa-perl-0.36-3 libclass-methodmaker-perl-2.18-1+b1 libclass-singleton-perl-1.4-1 libclone-perl-0.31-1+b2 libcloog-ppl0:i386-0.15.11-4 libclucene0ldbl-0.9.21b-2+b1 libclutter-1.0-0:i386-1.8.4-1 libclutter-gst-1.0-0-1.4.6-1 libclutter-gtk-0.10-0-0.10.8-3 libclutter-gtk-1.0-0-1.0.4-1 libclutter-imcontext-0.1-0-0.1.4-2 libcluttergesture-0.0.2-0-0.0.2.1-5 libcmis-0.2-0-0.1.0-1 libcogl-pango0:i386-1.8.2-1 libcogl5:i386-1.8.2-1 libcolamd2.7.1-1:3.4.0-2 libcolord1:i386-0.1.18-1 libcomerr2:i386-1.42.2-1 libcommons-beanutils-java-1.8.3-2 libcommons-cli-java-1.2-3 libcommons-collections3-java-3.2.1-5 libcommons-compress-java-1.2-1 libcommons-digester-java-1.8.1-3 libcommons-io-java-1.4-4 libcommons-lang-java-2.6-3 libcommons-logging-java-1.1.1-9 libcommons-parent-java-22-2 libcompress-zlib-perl-2.037-1 libconfig++9-1.4.8-3 libconfig-inifiles-perl-2.68-1 libconfig-tiny-perl-2.14-1 libconsole-1:0.2.3dbs-70 libconvert-binhex-perl-1.119+pristine-3 libcpufreq0-007-2 libcroco3:i386-0.6.5-1 libcrypt-openssl-random-perl-0.04-1+b4 libcrypt-passwdmd5-perl-1.3-10 libcrypt-ssleay-perl-0.58-1 libcrypto++9-5.6.1-5 libcryptui0a:i386-3.2.2-1 libcrystalhd3:i386-1:0.0~git20110715.fdd2f19-6 libcue1-1.4.0-1 libcups2:i386-1.5.2-9 libcupscgi1:i386-1.5.2-9 libcupsfilters1:i386-1.0.11-1 libcupsimage2:i386-1.5.2-9 libcupsmime1:i386-1.5.2-9 libcupsppdc1:i386-1.5.2-9 libcurl3:i386-7.25.0-1 libcurl3-gnutls:i386-7.25.0-1 libcurl3-nss:i386-7.25.0-1 libcurl4-gnutls-dev-7.25.0-1 libcwidget3-0.5.16-3.1 make-3.81-8.1 perl-5.14.2-9 �����������������������������������������������������������������������������������������������������������������������������debian/source/��������������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�11420630141�010456� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/source/format��������������������������������������������������������������������������������0000644�0000000�0000000�00000000014�11420630141�011664� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������3.0 (quilt) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/copyright������������������������������������������������������������������������������������0000644�0000000�0000000�00000002534�12162374427�011135� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: latex2html Upstream-Contact: Ross Moore <ross@ics.mq.edu.au> Source: http://www.ctan.org/tex-archive/support/latex2html/ Files: * Copyright: 1993-1997 Nikos Drakos <nikos@cbl.leeds.ac.uk> 1996-1999 Ross Moore <ross@ics.mq.edu.au> License: GPL-2 On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: L2hos/* Copyright: 1999 Marek Rouchal <marek@saftsack.fs.uni-bayreuth.de> License: Artistic License or GPL-1+ On Debian systems, the full text of the Artistic License can be found in the file `/usr/share/common-licenses/Artistic'. . On Debian systems, the full text of the GNU General Public License version 1 can be found in the file `/usr/share/common-licenses/GPL-1'. Files: debian/* Copyright: 1997 Herbert Xu <herbert@debian.org> 1997-2000 Manoj Srivastava, <srivasta@debian.org> 2000-2001 Adrian Bunk <bunk@fs.tum.de> 2001 Chanop Silpa-Anan <chanop@debian.org> 2002-2003 AurĂ©lien Beaujean <aure@debian.org> 2003-2013 Roland Stigge <stigge@antcom.de> License: GPL-2+ On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. ��������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/compat���������������������������������������������������������������������������������������0000644�0000000�0000000�00000000002�11740570223�010365� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������9 ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/docs�����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000075�11740574347�010057� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������docs/manual.dvi docs/manual.ps debian/README.foilhtml.Debian �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/preinst��������������������������������������������������������������������������������������0000644�0000000�0000000�00000003545�11740574704�010615� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # preinst.skeleton # Skeleton maintainer script showing all the possible cases. # Written by Charles Briscoe-Smith, March-June 1998. Public Domain. # Abort if any command returns an error value set -e # This script is called before this version of this package is installed. # When this script is called, the package's files have not been unpacked # yet. case "$1" in install) # About to install this package. : if [ -d /var/www/usr/lib/latex2html ]; then rm -rf /var/www/usr/lib/latex2html else true; fi # Add a diversion. This is one of the few things which may be done # before installing any files from the package. #: dpkg-divert --package foo --add --rename \ #: --divert /usr/bin/other.real /usr/bin/other # There are two sub-cases: if test "${2+set}" = set; then # The configuration files from version $2 of this package are # still on the system. : else # There is no existing configuration; install from scratch. : fi # Change the default config file name if [ -e /etc/latex2html.config ]; then cp /etc/latex2html.config /etc/latex2html.conf fi ;; upgrade) # About to upgrade this package from version $2 TO THIS VERSION. # "prerm upgrade" has already been called for the old version of # this package. : if [ -d /var/www/usr/lib/latex2html ]; then rm -rf /var/www/usr/lib/latex2html else true; fi # Change the default config file name if [ -e /etc/latex2html.config ]; then cp /etc/latex2html.config /etc/latex2html.conf fi ;; abort-upgrade) # Back out of an attempt to upgrade this package FROM THIS VERSION to # version $2. Undo the effects of "postrm upgrade $2". : ;; *) echo "$0: didn't understand being called with \`$1'" 1>&2 exit 0;; esac #DEBHELPER# exit 0 �����������������������������������������������������������������������������������������������������������������������������������������������������������debian/manpages�������������������������������������������������������������������������������������0000644�0000000�0000000�00000000031�11740565477�010716� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������latex2html.1 texexpand.1 �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/prerm����������������������������������������������������������������������������������������0000644�0000000�0000000�00000005127�11740574623�010254� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh set -e # This script is called as the first step in removing the package from # the system. This includes cases where the user explicitly asked for # the package to be removed, upgrade, automatic removal due to conflicts, # and deconfiguration due to temporary removal of a depended-on package. package_name=latex2html case "$1" in remove) # This package about to be removed. : # FILES to remove test -d /var/www/usr/share/latex2html/icons && \ cd /var/www/usr/share/latex2html/icons && rm -f blueball.png ch_end_r.png \ image.png orangeball.png pv_grp_g.png \ ch_beg_r.png contents.png index.png pinkball.png redball.png \ ch_begin.png crossref.png next.png prev.png up.png \ ch_del_r.png footnote.png next_g.png prev_g.png up_g.png \ ch_delet.png greenball.png nx_grp.png purpleball.png whiteball.png \ ch_end.png icons.html nx_grp_g.png pv_grp.png yellowball.png \ blueball.gif ch_end_r.gif \ image.gif orangeball.gif pv_grp_g.gif \ ch_beg_r.gif contents.gif index.gif pinkball.gif redball.gif \ ch_begin.gif crossref.gif next.gif prev.gif up.gif \ ch_del_r.gif footnote.gif next_g.gif prev_g.gif up_g.gif \ ch_delet.gif greenball.gif nx_grp.gif purpleball.gif whiteball.gif \ ch_end.gif icons.html nx_grp_g.gif pv_grp.gif yellowball.gif # There are two sub-cases: if test "${2+set}" = set; then if test "$2" != in-favour; then echo "$0: undocumented call to \`prerm $*'" 1>&2 exit 0 fi # We are being removed because of a conflict with package $3 # (version $4), which is now being installed. : else # The package is being removed in its own right. : fi ;; deconfigure) if test "$2" != in-favour || test "$5" != removing; then echo "$0: undocumented call to \`prerm $*'" 1>&2 exit 0 fi # Package $6 (version $7) which we depend on is being removed due # to a conflict with package $3 (version $4), and this package is # being deconfigured until $6 can be reinstalled. : ;; upgrade) # Prepare to upgrade FROM THIS VERSION of this package to version $2. : ;; failed-upgrade) # Prepare to upgrade from version $2 of this package TO THIS VERSION. # This is only used if the old version's prerm couldn't handle it, # and returned non-zero. (Fix old prerm bugs here.) : ;; *) echo "$0: didn't understand being called with \`$1'" 1>&2 exit 0;; esac #DEBHELPER# exit 0 �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������