Permalink
Browse files

pdflatex by default

html 5
  • Loading branch information...
Dan Gildea
Dan Gildea committed Jun 24, 2018
1 parent 5c6a84f commit 1556639188a2cf9da602e77e499c9852424bd3b5
Showing with 250 additions and 289 deletions.
  1. +3 −0 Changes
  2. +10 −48 README.md
  3. +0 −1 config/config.pl
  4. +4 −0 dot.latex2html-init
  5. +10 −17 l2hconf.pin
  6. +164 −166 latex2html.pin
  7. +10 −10 styles/amsmath.perl
  8. +26 −35 styles/more_amsmath.perl
  9. +1 −1 styles/multirow.perl
  10. +11 −11 styles/natbib.perl
  11. +11 −0 tests/ams_comment.tex
@@ -112,6 +112,9 @@
# A more detailed log history can be found within the particular files, near
# the top.
#
# - pdflatex by default
# - dvipng by default
# - html 5
# - unicode input and output by default
# - Support for packages luainputenc and polyglossia
# - Support for picture generation via pdflatex, lualatex
@@ -33,13 +33,13 @@ The LaTeX2HTML translator:
within a document but between documents which may reside in
remote locations,
* translates accent and special character
commands to the equivalent ISO-LATIN-1
character set where possible,
commands to the equivalent HTML
character codes where possible,
* recognizes hypertext links (to multimedia resources or arbitrary
internet services such as sound/video/ftp/http/news) and links which
invoke arbitrary program scripts, all expressed as LaTeX commands,
* recognizes conditional text which is intended only for the hypertext
version, or only for the paper (DVI) version,
version, or only for the paper (PDF) version,
* can include raw HTML in a LaTeX document (e.g. in order to specify
interactive forms),
* can deal sensibly with all the commands and environments commonly used
@@ -78,55 +78,17 @@ The requirements for using LaTeX2HTML depend on the kind of
translation it is asked to perform as follows:

1. LaTeX commands but without equations, figures, tables, etc.
* Perl 5.003 (Perl5 Patch level 3) or higher.

* DBM or NDBM, the Unix DataBase Management system.
Alternatively, Perl5's SDBM DataBase system.
Do not care unless you get misconfiguration errors from LaTeX2HTML.
* Perl 5.003 or higher.

2. LaTeX commands with equations, figures, tables, etc.
As above plus
* latex (version 2e recommended but 2.09 acceptable),
* dvips (version 5.516 or later) or dvipsk.
Version 5.62 or higher enhances the performance of image creation
with a *significant* speed-up. See l2conf.pm for this
after you are done with the installation.
Do not use the 'dvips -E' feature unless you have 5.62, else you
will get broken images.
* latex (pdflatex is used by default)
* gs (Ghostscript version 4.03 or later),
with the ppmraw device driver, or even better pnmraw.
Upgrade to 5.10 or later if you want to go sure about seldom problems
with 4.03 to avoid (yet unclarified).
* The netpbm library (ftp://ftp.x.org/R5contrib/).
Netpbm 1 March 1994 is recommended. Check with 'pnmcrop -version'.
Some of the filters in those libraries are used during the postscript
to image conversion.
* If you want PNG images, you need pnmtopng (current version is 2.31).
It is not part of netpbm and requires libpng (version 0.89c) and
libz (1.0.4). pnmtopng supports transparency and interlace mode.

3. Transparent inlined GIFs
If you dislike the gray background color of the generated inlined images
then the best thing you can do is get the netpbm library (instead of
the older pbmplus) OR install the giftrans filter by Andreas Ley
<ley@rz.uni-karlsruhe.de>. Version 1.10.2 is known to work without
problems but later versions should also be OK.

LaTeX2HTML also supports the shareware program giftool (by Home Pages, Inc.,
version 1.0), too. It can also create interlaced GIFs.

Because by default the translator makes use of inlined images in the final
HTML output, it would be better to have a graphical browser.
If only a character based browser is available or
if you want the generated documents to be more portable, then the translator
can be used with the -ascii_mode option.

If ghostscript or netpbm library are not available
it is still possible to use the translator with the -no_images option.

If you intend to use any of the special features of the translator
then you have to include the html.sty file in any LaTeX documents that
use them.
* The netpbm library
* If you want to process documents written for dvi-producing latex
(as opposed to pdflatex), you need either dvips or dvipng.
These are available through the texlive distribution.



Installation
@@ -1363,7 +1363,6 @@ package main;
$newcfg{'PNMCROPOPT'} = ' -sides ';
}
} else { $newcfg{'PNMCROPOPT'} = ' -sides '; }
$pnmcrop .= ' -verbose ' if ($major_vers >= 10 || $sub_vers > 10);
print "\n$pnmcrop";
$msg = 'there is nothing to crop'; $stat = '';
} else {
@@ -12,6 +12,10 @@ $EXTERNAL_IMAGES = 0; # 1 = leave the images outside the document

$ASCII_MODE = 0; # 1 = do not use any icons or internal images

$USE_PDFTEX = 1; # 0 = use plain dvi-producing latex

$USE_DVIPNG = 1; # 0 = use dvips -> pstoimg

# 1 = use links to external postscript images rather than inlined bitmap
# images.
$PS_IMAGES = 0;
@@ -29,6 +29,10 @@ $DVIPNG = '@DVIPNG@'; # dvipng
$PDFCROP = '@PDFCROP@'; # pdfcrop
$GS = '@GS@'; # GhostScript

#if @PDFLATEX@
$USE_PDFTEX = 1; # use pdflatex unless -nouse_pdftex on command line
$USE_DVIPNG = 1;
#fi

# give these too, to use the -ldump feature
#
@@ -587,7 +591,7 @@ $DEBUG = 0;
# -html_version
# The default HTML version to be produced
#
$HTML_VERSION = '4.0';
$HTML_VERSION = '5';


# -no_math
@@ -618,13 +622,6 @@ $NETSCAPE_HTML = 0;
$INTERLACE = 1;


# Set this to 1 if you like the old LaTeX2HTML style to have a
# border around the navigation links.
# Values > 1 are also possible.
#
$NAV_BORDER = 0;


### Colors ###
#
# If this is set you may set colors in your document (see the LaTeX
@@ -728,7 +725,7 @@ $DVIPS_MODE = '@METAMODE@';
# the metafont mode (e.g. `toshiba').
#
$METAFONT_DPI = @METADPI@;
$DVIPNG_DPI = 120; # for best appearance
$DVIPNG_DPI = 240; # for best appearance


# Controls which markup shows up between page and its foot.
@@ -1156,7 +1153,6 @@ sub img_tag {
local($iconmark) = @_;
local($icon) = $icons{$iconmark};
local($alt);
local($align) = " ALIGN=\"BOTTOM\" ";

$alt = join ('|', "up", "next_group", "next_inactive", "previous_group"
, "next", "previous", "change_begin_right", "change_begin"
@@ -1165,27 +1161,24 @@ sub img_tag {

if ($icon =~ /(gif|png)$/) {
$used_icons{$icon} = 1;
if ($iconmark =~ /change_(begin|end|delete)_right/) { $align = ' ' };
local($pre);
local($nav_border) = "\"$NAV_BORDER\"";
if ($iconmark =~ /($alt)/) {
$pre = "\n";
$alt = $1;
}
else {
$pre = "";
$nav_border = '"1"';
$alt = '[*]';
};

if ($LOCAL_ICONS) {
return join('', $pre ,'<IMG ', $iconsizes{$alt} || '', $align
,'BORDER=', $nav_border, ' ALT="', $alt
return join('', $pre ,'<IMG ', $iconsizes{$alt} || ''
,' ALT="', $alt
,'" SRC="', $icon, '">' );
}
else {
return join('', $pre ,'<IMG ', $iconsizes{$alt} || '', $align
,'BORDER=', $nav_border, ' ALT="', $alt, "\"\n"
return join('', $pre ,'<IMG ', $iconsizes{$alt} || ''
,' ALT="', $alt, "\"\n"
,' SRC="', $ICONSERVER, "/$icon", '">' );
}
}
Oops, something went wrong.

0 comments on commit 1556639

Please sign in to comment.