<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//en">

<!–Converted with LaTeX2HTML 2022 (Released January 1, 2022) –> <HTML lang="en"> <HEAD> <TITLE>Contents of image:2</TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0"> <META NAME="Generator" CONTENT="LaTeX2HTML v2022">

<LINK REL="STYLESHEET" HREF="TEX2RTF.css">

<LINK REL="next" HREF="node100_mn.html"> <LINK REL="previous" HREF="node98_mn.html"> <LINK REL="up" HREF="node37_mn.html"> <LINK REL="next" HREF="node100_mn.html"> </HEAD>

<BODY bgcolor="#ffffff" text="#000000" link="#9944EE" vlink="#0000ff" alink="#00ff00">

<H2><A ID="SECTION008162000000000000000"></A><A ID="image"></A> <BR> image:2 </H2>

<P> This is translated to a PSBOX macro package <I>psboxto</I> command in L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X, the first argument being a sizing command and the second a filename.

<P> In HTML mode, the second argument is used to generate a PostScript file reference.

<P> In RTF mode, the second argument is tried with first a BMP extension and then a WMF extension to find a suitable Windows bitmap file or placeable metafile. If a suitable file is found, in Windows Help mode a <I>bmc</I> command is inserted into the RTF file with a reference to the file. In linear RTF mode, the bitmap or metafile is converted into hex and inserted into the RTF document.

<P> Note that only RGB-encoded Windows bitmaps, or placeable metafiles, are valid for input to Tex2RTF. You can convert a RLE (run length encoded) bitmap file into a (bigger) RGB file using a program such as Paintshop Pro. A placeable metafile has a special header with dimension information. One may be constructed by a wxWindows program by calling the function wxMakeMetafilePlaceable. The Microsoft Windows SDK has a sample program that loads and steps through placeable and ordinary metafiles.

<P> Another wrinkle is that programs differ in the methods they use to recognise pictures in RTF files. You may need to use the <I>bitmapMethod</I> setting, which can be ``hex'' (embed the hex data in the file with a <code></code> keyword), ``includepicture'' (use the MS Word 6.0 INCLUDEPICTURE field) or ``import'' (an earlier name for INCLUDEPICTURE).

<P> Here is an example of using the <I>image</I> command.

<P> <PRE>

Figure: My picture
\begin{figure}
\begin{displaymath}\image{5cm;0cm}{heart.ps}\end{displaymath}\par
\end{figure}
</PRE>

<P> The dollars centre the image in the horizontal plane. The syntax of the first argument to <I>image</I> is taken from syntax used by the <I>psbox</I> package: it allows specification of the horizontal and vertical dimensions of the image. Scaling will take place for PostScript and metafile images. A value of zero indicates that the image should be scaled in proportion to the non-zero dimension. Zeros for both dimensions will leave the image unscaled in the case of metafiles, or scaled to fit the page in the case of PostScript.

<P>

<HR>

</BODY> </HTML>