3 .\" A simple set of macros to provide HTML documents with basic
4 .\" www functionality. It will work with any macro set.
8 .\" the following line makes the vertical mode leave, so to say
14 . if '\*(.T'html' \X^index:\\$*^
17 .\" BODYCOLOR - $1 is foreground color
18 .\" $2 is background color
19 .\" $3 is the color of an active hypertext link
20 .\" $4 is the color of a hypertext link not yet visited
21 .\" $5 is the color of a visited hypertext link
24 . HTML <body text=\\$1 bgcolor=\\$2 link=\\$3 alink=\\$4 vlink=\\$5>
27 .\" BACKGROUND - $1 is the background image file
30 . HTML <body background=\\$1>
33 .\" URL - $1 is the classical underlined blue text
35 .\" $3 is optional stuff printed immediately after $3
39 . HTML <a href="\\$2">\\$1</a>\\$3
42 \\$1 \(la\fC\\$2\fP\(ra\\$3
46 .\" FTP - $1 is the classical underlined blue text
48 .\" $3 is optional stuff printed immediately after $2
51 . HTML <a href=\\$2>\\$1</a>\\$3
54 \\$1 \(la\fC\\$2\fP\(ra\\$3
58 .\" MAILTO - generate html email reference
59 .\" $1 is the email address (without the `mailto:' prefix)
60 .\" $2 is the optional name
61 .\" $3 is optional stuff printed immediately after $2 (resp. $1)
65 .\" Foobar has been written by
66 .\" .MAILTO fred@foo.bar "Fredrick Bloggs" .
70 .\" force reset after a potential heading by performing some motion..
71 .\" how do we do this --fixme--
72 .\" \h'\w' ''\h'-\w' '' doesn't work..
75 . HTML "<a href=mailto:\\$1>\\$1</a>\\$3"
78 . HTML "<a href=mailto:\\$1>\\$2</a>\\$3"
86 \\$2 \(la\fC\\$1\fP\(ra\\$3
91 .\" TAG - generate an html name $1
94 . HTML <a name="\\$1"></a>
97 .\" IMAGE - reference an image
98 .\" $1 is the image file
99 .\" $2 is the x width (default if absent 400 pixels)
100 .\" $3 is the y width (default if absent is the x value)
103 . ie '\*(.T'html' \{\
108 . nr HTMLHEIGHT \\n[HTMLWIDTH]
112 . HTML <img src="\\$1" width=\\n[HTMLWIDTH height=\\n[HTMLHEIGHT]>
121 .\" CDFTP - if we are processing this on machine \\$1 then we create a
122 .\" FTP reference using \\$2 --> \\$3
124 .\" otherwise we create a URL from \\$2 --> \\$4
128 .\" .CDFTP "foobar" "somegnusoftware.tar.gz" \
129 .\" "ftp://ftp.gnu.org/gnu/somegnusoftware.tar.gz" \
130 .\" "../../../TARGZ/somegnusoftware.tar.gz"
132 .\" meaning if we are on machine foobar then generate an ftp url
133 .\" to the GNU anonymous ftp server otherwise generate a file url
134 .\" to a local copy (cdrom maybe)
136 .\" Useful when one machine is designated as a cdrom burner and another
137 .\" designated as an appache server.
138 .\" The same source for web pages can be burnt onto a CD and also
139 .\" served across the network. It doesn't solve the problem of one
140 .\" machine doing both though :-(
144 .\". sy /bin/rm -f /tmp/n.tmac
145 .\". sy /bin/echo ".ds HOSTNAME `hostname --short`" > /tmp/n.tmac
147 .\". sy /bin/rm -f /tmp/n.tmac
148 .\". ie '\\*[HOSTNAME]'\\$1' \{\
149 .\". FTP "\\$2" "\\$3"
152 .\". URL "\\$2" "\\$4"
159 .\" it doesn't make sense to use hyphenation with html, so we turn it off.