APPLICATION NOTE #135 USING XYWRITE III PLUS WITH INSET 2 Rev. 02 InSet 2, a product of Inset Systems, Inc., is a graphics and text integrator that you can use to merge graphics into your XyWrite text file. This application note gives you the information you need to use InSet 2 with XyWrite III Plus. INSTALLING INSET To install InSet, follow the instructions in the InSet User's Manual. XyWrite presents no special installation considerations unless you are using a PostScript printer. If you are, change the tag characters from [ and ] to ! and & during Step T of the InSet setup procedure. InSet's hot keys are Left Shift and Ctrl (keys 42 and 29). These hot keys work well with XyWrite's standard keyboard file, IBM.KBD. However, if you are using SUPER.KBD or have modified IBM.KBD so that you are using the Shift Ctrl combination to perform additional keyboard functions, you need to reassign the InSet hot keys. A simple solution is to use Right Shift and Ctrl (keys 54 and 29) as the InSet hot keys, which allows you to use the Left Shift Ctrl keys to access XyWrite functions. Change the hot keys during Step L of the InSet setup procedure. LOADING INSET Always load InSet before you load XyWrite. You may want to set up your AUTOEXEC.BAT file so that it switches to the InSet directory and loads InSet, then switches to the XyWrite directory and loads XyWrite. For example: cd \inset inset cd \xywrite editor XyWrite III users also need to load XYKBD. See Note #1. USING INSET AND XYWRITE You can use InSet to capture, create, or edit graphic images which you can then insert into your XyWrite file for review and printing. Refer to the InSet User's Manual for instructions on how to create the graphics files, called .PIX files. Once you have created a .PIX file, you can insert it into a XyWrite text file and output to your printer. (See Note #2.) To insert a graphic into your XyWrite text file: 1. Determine where in your text file you want to place the graphic and how much space you want to allow for it. For example, let's insert a 2-inch square graphic in the top right corner of the screen. 2. Use formatting commands to move the cursor to the place where you want the upper left corner of the graphic to appear. You can use tab commands, indent commands, a left margin command, or even spaces to position the cursor. In this case, we'll use an IP (Indent Paragraph) command on the first line of the file: Type: F5ip 45 3. Type in the tagline for the graphic. Remember, InSet assumes the .PIX extension, so you don't have to type it. For example, if the name of your graphic file is SQ.PIX: Type: [sq] (or !sq& if you are using a PostScript printer) 4. Enter the formatting commands you need to create space for the graphic. For example, if your normal margin is 65: Type: F5ip 0 (to cancel the indent set in Step 2.) Type: F5rm 45 Type: F5lm 0 Type: F5of 8 Result: The text stops two inches short of the normal margin, reserving space for your graphic. 5. Type in your text as usual. After 12 lines (2 inches), restore your normal margin setting. Type: F5rm 65 6. You can now either invoke Inset (by pressing Ctrl Shift) to preview the file with graphic in place or send the file directly to the printer using the TYPE command. PROPORTIONAL SPACING If you are using a proportionally spaced font and type the tagline of the .PIX file on a line with other text, the justification will be skewed for that line. For example, if you insert a tagline on line 5 of column 1 in a snaked column document, line 5 in the other columns will be thrown off by the width of the tagline. To correct this, type the tagline in a mode that is associated with a fixed width font, such as Courier. Because InSet 2 is designed to compensate for taglines in fixed width fonts, the justification is not affected. Proportional fonts also affect the on-screen preview feature of InSet, particularly if you are using a small point size. XyWrite shows you the true line endings, but the screen displays all characters in a monospaced font. Because of the number of characters per inch in proportionally spaced fonts, the text may look like it is going beyond the right margin, even though the output is correct. When you use the InSet's preview feature, the image may overwrite the text of the screen. To work around this, use hard copy as your proofing device. Note #1 XyWrite III Users. In order to use InSet with XyWrite III, you must first run the separate program XYKBD.COM. This program, which is on your XyWrite III Word Processing Diskette, allows XyWrite to share the keyboard interrupts with other RAM resident programs. It does not limit your ability to remap or use special XyWrite keyboard files. To use XYKBD: 1. Copy XYKBD.COM into the root directory of your hard disk or onto your working diskette. 2. Prior to loading either InSet or XyWrite, at the DOS prompt: Type: xykbd You may want to add this command to your AUTOEXEC.BAT file. Note #2 Printers. Both XyWrite and InSet support a variety of printers, but their lists of printer drivers are not identical. To use InSet with XyWrite, your printer must be one that is supported by both programs. Note #3 Line Feed Characters. InSet requires a line feed character at the end of every line. Most XyWrite printer files include line feed characters in the vertical spacing table; a few do not (for example, 3NECPIN5.PRN). If you are having problems printing a XyWrite file that includes an InSet graphic file, check the vertical spacing table (VS:) in your printer file. If it does not include line feed characters, call XYQUEST's Technical Support Department for assistance.