Document 338

Changing the window size of the TrueTeX Previewer

Version: 3.5, 3.51, & 4.0 - Scientific WorkPlace & Scientific Word

Problem

When the TrueTeX Previewer is started from SWP or SW, the main window appears maximized. Clicking the restore button minimizes the Previewer's main window, hiding all but the title bar.

Explanation

Version 3.5 changed the way the TrueTeX Previewer is launched. In Version 3.0 the Previewer was always launched as a maximized window. In Version 3.5 and later, it is launched as a normal window, with command line options added to control the size of the window.

Solution

You can change the command line options that determine the window size and location of the TrueTeX Previewer when it is launched from SWP or SW. Instructions appear in the TrueTeX readme file that is included when SWP or SW is installed.

Viewing the readme file:

  1. Open the document OptionsPackagesLaTeX.tex in the SWSamples directory of your program directory.

  2. Move to the section TrueTeX Documentation and click the first link to open the readme file in the TrueTeX Previewer.

  3. Move to the section entitled Initial Window Sizing (section 16 in Version 3.5; section 17 in Version 4.0) to find a description of the command line parameter that controls the initial window size of the TrueTeX Previewer.

Changing the command line options:

  1. In SWP or SW, from the Typeset menu, choose Expert Settings.

  2. Choose the Preview Settings tab.

  3. Choose Add/Modify and note the entries in the Command line to invoke preview driver box. The default setting for Version 3.5 is

    %x %f -i% %I -d 1 1 -1 -1

    The portion of the line beginning with -d changes the window size.

  4. To specify that the Previewer open as a maximized window and to yield a maximized window when Restore is clicked and prevent the problem with a minimized window thereafter, set the final portion of the line to

    -d 0 0 -1 -1

    Don't change any other settings on the line.

  5. To specify that the Previewer open as a maximized window and to create a 640x480 window after clicking Restore, set the final portion of the line to

    -d -1 -1 640 480

Note that you can experiment to find a setting that works best for you. For example, if you have a 1280 x 1024 high-resolution screen, use -d 0 0 850 -1 to open a window that starts at the top left corner of your screen, with a width of 850 and a maximum height.

Added 12/07/00; revised 04/29/02

This document was created with Scientific WorkPlace.