# -*- perl -*- # longtable.perl by Denis Koelewijn # # Extension to LaTeX2HTML supply support for the "longtable" # LaTeX style, as described in "The LaTeX Companion," by # Goossens, Mittelbach and Samarin (ISBN 0-201-54199-8). # # Change Log: # =========== # MRO: added changes proposed by Keith Refson package main; # # Translate the longtable environment as # an ordinary table. sub do_env_longtable { local($_) = @_; my $cols; $cols = &missing_braces unless ( (s/$next_pair_pr_rx/$cols=$&;''/eo) ||(s/$next_pair_rx/$cols=$&;''/eo)); local($cap_env,$captions) = ('table', $captions); if (/\\caption\s*(\*?)/) { my $star = $1; do { local($contents) = $_; &extract_captions($cap_env); $_ = $contents; undef $contents; # remove the artificial prefix, if it's a \caption* $captions =~ s!^<(STRONG>).*?