aboutsummaryrefslogtreecommitdiff
path: root/src/hyper/pages/HTXFormatPage8.ht
blob: f0de82a0a84b5b43583b160b28a25ef8ea4ddc2f (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
\begin{page}{HTXFormatPage8}{Bitmaps and Images}
\centerline{\fbox{{\tt \thispage}}}\newline
\begin{scroll}

The commands {\tt \\inputbitmap\{{\it filename}\}}
and {\tt \\inputimage\{{\it filename}\}}
allow you to include an X11 bitmap or an
\Language{}-generated viewport in a \HyperName{}
page.

In the case of the {\tt \\inputbitmap} command
the {\it filename} parameter must be the full pathname
of an X11 bitmap file.

\beginImportant
\begin{paste}{HTXFormatPage8xPaste1}{HTXFormatPage8xPatch1}
\pastebutton{HTXFormatPage8xPaste1}{Interpret}
\newline
{\tt \\inputbitmap\{\env{AXIOM}/doc/hypertex/bitmaps/sup.bitmap\} }
\end{paste}
\endImportant

The {\it filename} parameter of the {\tt \\inputimage}
command must be the full pathname of a {\it compressed XPM image} file without the name extensions.
\HyperName{} always adds ".xpm.Z" to whatever filename you give and looks for the augmented filename.
Such files can be generated by \Language{} command
\axiomOp{write} with the {\tt "image"} or {\tt "pixmap"}
options.

\beginImportant
\begin{paste}{HTXFormatPage8xPaste2}{HTXFormatPage8xPatch2}
\pastebutton{HTXFormatPage8xPaste2}{Interpret}
\newline
{\tt \\inputimage\{\env{AXIOM}/doc/viewports/ugProblemNumericPage30.VIEW/image\}}
\end{paste}
\endImportant

Be careful not to break the pathname across lines.

The {\tt \\inputimage} command will automatically select
the {\it image.xpm} or the {\it image.bm} file for you
based on the capabilities of your X server. 

For your convenience, there are two macros defined
in \centerline{ {\bf \env{AXIOM}{}/doc/hypertex/pages/util.ht}.}
The {\tt \\viewport} macro eliminates the need to specify
the {\tt .VIEW/image} part and the
{\tt \\axiomViewport} macro automatically selects viewport
files in the system directories. The above {\tt \\inputimage}
could have been written
\beginImportant
{\tt \\viewport\{\env{AXIOM}/doc/viewports/ugProblemNumericPage30\}}
\endImportant
or
\beginImportant
{\tt \\axiomViewport\{ugProblemNumericPage30\}}
\endImportant



\end{scroll}
\beginmenu
\menulink{Back to Formatting menu}{HTXFormatTopPage}
\endmenu

\end{page}


\begin{patch}{HTXFormatPage8xPatch1}
\begin{paste}{HTXFormatPage8xPaste1A}{HTXFormatPage8xPatch1A}
\pastebutton{HTXFormatPage8xPaste1A}{Source}
\newline
\inputbitmap{\env{AXIOM}/doc/hypertex/bitmaps/sup.bitmap}
\end{paste}
\end{patch}
\begin{patch}{HTXFormatPage8xPatch1A}
\begin{paste}{HTXFormatPage8xPaste1B}{HTXFormatPage8xPatch1}
\pastebutton{HTXFormatPage8xPaste1B}{Interpret}
\newline
{\tt \\inputbitmap\{\env{AXIOM}/doc/hypertex/bitmaps/sup.bitmap\} }
\end{paste}
\end{patch}

\begin{patch}{HTXFormatPage8xPatch2}
\begin{paste}{HTXFormatPage8xPaste2A}{HTXFormatPage8xPatch2A}
\pastebutton{HTXFormatPage8xPaste2A}{Source}
\newline
\inputimage{\env{AXIOM}/doc/viewports/ugProblemNumericPage30.VIEW/image}
\end{paste}
\end{patch}
\begin{patch}{HTXFormatPage8xPatch2A}
\begin{paste}{HTXFormatPage8xPaste2B}{HTXFormatPage8xPatch2}
\pastebutton{HTXFormatPage8xPaste2B}{Interpret}
\newline
{\tt \\inputimage\{\env{AXIOM}/doc/viewports/ugProblemNumericPage30.VIEW/image\}}
\end{paste}
\end{patch}