The Startup File

The name of the ShowDVI<#289#><#289#> configuration file is <#290#>ShowDVI.config<#290#>.

The file is interpreted by the ShowDVI<#291#><#291#> program line by line. Lines beginning with a semicolon, or have tabs or spaces only in front of a semicolon, are ignored. All other lines consist of a keyword followed by the appropriate values. After this a remark could follow.

Warning: If you save the configuration file from within the ShowDVI program, the old one is simply overwritten. That means, Comments inserted per hand are lost.

An example for such a startup file is:


<#292#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;#;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMamp;#;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMamp;# color_0 ;SPMamp;3,2,2 ;SPMamp;; values of background color color_1 ;SPMamp;6,7,8 ;SPMamp;; values of foreground color scrollbar ;SPMamp;on ;SPMamp;; state of scrollbars interlace ;SPMamp;on ;SPMamp;; interlace beep ;SPMamp;on ;SPMamp;; beep on warnings esc-exit ;SPMamp;off ;SPMamp;; exit prog on ESC int-menu ;SPMamp;on ;SPMamp;; is the menu intelligent big-menu ;SPMamp;on ;SPMamp;; menu with Topaz 11 physical-numbers;SPMamp;off ;SPMamp;; on == use physical numbering unit ;SPMamp;in ;SPMamp;; used unit application-window;SPMamp;on;SPMamp;; application window on/off app-icon-name;SPMamp;TeX:config/AppWin-ShowDVI;SPMamp;; icon file for app-win screen-mode ;SPMamp;pal ;SPMamp;; screen mode ;SPMamp;;SPMamp;; (pal | ntsc | productivity | a2024) default_resolution ;SPMamp;91 ;SPMamp;; default start resolution resolution_menu ;SPMamp;100,91,83,120 ;SPMamp;; entries for the resolution menu f1 ;SPMamp;testf1 f2 ;SPMamp;testf2 F1 ;SPMamp;testF1 F10 ;SPMamp;testF10 <#292#>

Here the screen colors (red, green, blue) are set with <#293#>color_?<#293#>.

With <#294#>scrollbar (on/off)<#294#> is set, whether ShowDVI<#295#><#295#> directly after the start of the program scrollbars should appear or not.

<#296#>interlace<#296#> can be <#297#>on<#297#> or <#298#>off<#298#>. Resp. if either you want to work in the interlace mode or not.

With <#299#>beep (on/off)<#299#> is shown, if the user should be alerted to certain errors especially or not.

The on/off switch <#300#>esc-exit<#300#> sets, whether the program should end if the ESC key is pressed, or only the screen should be pushed to the background.

The next line with the somewhat exotic keyword <#301#>int-menu<#301#> determines the mode, with which the menu should work. With <#302#>off<#302#> the menu is fixed in a way that it always appears on the same spot, just below the pointer. With <#303#>on<#303#> the menu becomes ``pseude-intelligent'', it then remembers the last selected entry and selects this one immediately after a repeated activation of the menu.

With <#304#>big-menu<#304#> you can determine, whether the popup menu should be in Topaz 11 (<#305#>on<#305#>) or Topaz 8 (<#306#>off<#306#>) fonts.

The flag <#307#>physical-numbers<#307#> fixes whether the program should be in the ``physical'' page number mode directly after it is called.

<#309#>unit<#309#> determines, in which unit dimensions within the ShowDVI<#310#><#310#> program are to be measured. There is <#311#>in<#311#> for inch, <#312#>cm<#312#> for centimeter and <#313#>pt<#313#> for point.

The next two lines <#315#>application-window<#315#> and <#316#>app-icon-name<#316#> belong together. With ``<#317#>application-window on<#317#>'' you tell ShowDVI<#318#><#318#> to open an application-window on the Workbench screen. This has two functions. Firstly, you can bring the ShowDVIscreen to the front by double clicking in this window. Secondly you can make ShowDVI<#319#><#319#> to load a DVI file by dragging the icon of the DVI file onto the Application-Window. This function however only works under an operating system version ≥2.0. The size, the looks and the position of the Application-Window can be fixed by an ``.info'' file.Normally, the file <#321#>TeX:config/AppWin-ShowDVI.info<#321#> is taken up for this. Through <#322#>app-icon-name<#322#> an arbitrary, different icon file can be used. The keyword <#323#>screen-mode<#323#> has any meaning only under the new operating system 2.0! With it, it can be indicated, in which mode the ShowDVIscreen should be opened. The choice consists of <#324#>pal<#324#> for PAL resolution, <#325#>ntsc<#325#> for the NTSC resolution, <#326#>productivity<#326#> for the new productivity mode and <#327#>a2024<#327#> (monochrome Hedley monitor -TT) for the new full page screenThe size of the screen is still influenced by the overscan preferences, which can be set in Preferences. In case ShowDVI<#329#><#329#> finds an operating system version lower than 2.0, this line of the configuration file is ignored. In case the line is missing and Operating System 2.0 or higher is employed, then the ``default Monitor'' is used. This is at the time either <#330#>pal<#330#> or <#331#>ntsc<#331#>, depending on your location.

<#332#>default_resolution<#332#> indicates, in what resolution the program should be started in.

After the keyword <#333#>resolution_menu<#333#> up to 10 numbers follow. These determine the looks of the <#334#>resolution<#334#> submenu.

The rest of the lines, finally, define the mapping of four function keys. The procedures are searched for with the usual ARexx search strategy. The postfix used is ``.sd''.

With the menu entry <#335#>save comfig<#335#> or per keyboard sequence AMIGA-<#336#>w<#336#> the present state is saved. That is, the at present resolution in use will become <#337#>default_resolution<#337#>. Also the current mode of the screen resolution (interlace), the colors selected, as well as the state (on/off) of the scrollbars is saved.