File: floatflt.perl

package info (click to toggle)
latex2html 2015-debian1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 7,652 kB
  • ctags: 3,386
  • sloc: perl: 30,941; makefile: 429; sh: 155
file content (52 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# floatfflt.perl by Herbert Swan <hswan.perc.Arco.com>  07-17-96
#
# Extension to LaTeX2HTML supply support for the "floatflt"
# package by Mats Dahlgren <mats@physchem.kth.se>.
#
# Change Log:
# ===========

package main;
#
#  Make the floatingfigure environment be translated as
#  an ordinary figure, ignoring the mandatory width and
#  optional positioning parameter.  (Figures may be positioned
#  by the \htmlimage command.)
#
#

sub do_env_floatingfigure {
    local($_) = @_;
    local($opt);
    $contents =~ s/$optional_arg_rx/$opt=$1;''/eo;
    $contents =~ s/$next_pair_rx//o;
    &process_environment("figure", $global{'max_id'}++);
    }
sub do_env_floatingfigure { &do_env_figure(@_) }

#
#  Make the floatingtable environment be translated as
#  an ordinary table, ignoring optional positional parameter.
#

sub do_env_floatingtable {
    local($_) = @_;
    local($opt);
    $contents =~ s/$optional_arg_rx/$opt=$1;''/eo;
    &process_environment("table", $global{'max_id'}++);
    }
sub do_env_floatingtable { &do_env_table(@_) }

#
#  The following command is no longer needed for LaTeX2e:
#
&ignore_commands( <<_IGNORED_CMDS_);
initfloatingfigs
_IGNORED_CMDS_

&process_commands_in_tex (<<_RAW_ARG_CMDS_);
floatingfigure
floatingtable
_RAW_ARG_CMDS_

1;                              # This must be the last line