2
# FPC.PERL script. Accompagnies fpc.sty
3
# by Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>
6
# Extension to LaTeX2HTML, to translate fpc style commands.
14
local ($name, $decl, $desc, $errors, $seealso) = @_ ;
17
$result = "<H2>$name</H2>\n<P>\n" ;
18
$result .= "<H3>Declaration:</H3>\n<P>\n<TT>$decl</TT>\n<P>\n" ;
19
$result .= "<H3>Description:</H3>\n<P>\n$desc\n<P>\n" ;
20
$result .= "<H3>Errors:</H3>\n<P>\n$errors\n<P>\n" ;
21
$result .= "<H3>See Also:</H3>\n<P>\n$seealso\n<P>\n" ;
26
local ($name, $decl, $desc, $errors, $seealso) = @_ ;
29
$result = "<H2>$name</H2>\n<P>\n" ;
30
$result .= "<H3>Declaration:</H3>\n<P>\n<TT>$decl</TT>\n<P>\n" ;
31
$result .= "<H3>Description:</H3>\n<P>\n$desc\n<P>\n" ;
32
$result .= "<H3>Errors:</H3>\n<P>\n$errors\n<P>\n" ;
33
$result .= "<H3>See Also:</H3>\n<P>\n$seealso\n<P>\n" ;
39
$fpcresult = "<H2>$_[0]</H2>\n<P>\n" ;
40
$fpcresult .= "<H3>Declaration:</H3>\n<P>\n<TT>Procedure $_[0] $_[1]</TT>\n<P>\n" ;
41
$fpcresult .= "<H3>Description:</H3>\n<P>\n$_[2]\n<P>\n" ;
42
$fpcresult .= "<H3>Errors:</H3>\n<P>\n$_[3]\n<P>\n" ;
43
$fpcresult .= "<H3>See Also:</H3>\n<P>\n$_[4]\n<P>\n" ;
49
$fpcresult = "<H2>$_[0]</H2>\n<P>\n" ;
50
$fpcresult .= "<H3>Declaration:</H3>\n<P>\n<TT>Procedure $_[0];</TT>\n<P>\n" ;
51
$fpcresult .= "<H3>Description:</H3>\n<P>\n$_[1]\n<P>\n" ;
52
$fpcresult .= "<H3>Errors:</H3>\n<P>\n$_[2]\n<P>\n" ;
53
$fpcresult .= "<H3>See Also:</H3>\n<P>\n$_[3]\n<P>\n" ;
59
$fpcresult = "<H2>$_[0]</H2>\n<P>\n" ;
60
$fpcresult .= "<H3>Declaration:</H3>\n<P>\n<TT>Function $_[0] : $_[1]</TT>\n<P>\n" ;
61
$fpcresult .= "<H3>Description:</H3>\n<P>\n$_[2]\n<P>\n" ;
62
$fpcresult .= "<H3>Errors:</H3>\n<P>\n$_[3]\n<P>\n" ;
63
$fpcresult .= "<H3>See Also:</H3>\n<P>\n$_[4]\n<P>\n" ;
69
$fpcresult = "<H2>$_[0]</H2>\n<P>\n" ;
70
$fpcresult .= "<H3>Declaration:</H3>\n<P>\n<TT>Function $_[0] $_[1] : $_[2]</TT>\n<P>\n" ;
71
$fpcresult .= "<H3>Description:</H3>\n<P>\n$_[3]\n<P>\n" ;
72
$fpcresult .= "<H3>Errors:</H3>\n<P>\n$_[4]\n<P>\n" ;
73
$fpcresult .= "<H3>See Also:</H3>\n<P>\n$_[5]\n<P>\n" ;
114
# For testing purposes
115
# print do_cmd_procedure ("Proc1","decl1","desc1","err1","see1");
116
# print do_cmd_Procedure ("Proc2","desc2","err2","see2");
117
# print do_cmd_function ("Fun1","fdecl1","ftype1","fdesc1","ferr1","fsee1");
118
# print do_cmd_Function ("Fun2","ftype2","fdesc2","ferr2","fsee2");
b'\\ No newline at end of file'