MathScript Help ---------------------------------------------------------------------------- MathScript © Copyright Simon Ihmig 1994,1995 MathScript is SHAREWARE ! Guide for MathScript 1. Introduction 1.1 Description 1.2 System requirements 2. Using the program 2.1 Starting the program 2.2 First Steps 2.3 The User Interface 2.3.1 Main Window 2.3.2 Settings Window 2.3.3 Menus 3. Appendix 3.1 ARexx port 3.2 Control codes Disclaimer Registration The future Credits My Adress: Simon Ihmig Beim Rauhen Hause 30 22111 Hamburg Germany e-mail: Internet: Ihmig@tu-harburg.d400.de Z-Netz: GrafZahl@Online.sh.sub.de ============================================================================ Introduction ---------------------------------------------------------------------------- MathScript is a formula editor, which is used to integrate mathematical formulas into word processors. In principle this is nothing new but untill now it was a deficit for the Amiga. Although it is possible to create such formulas with TeX, it is not very convenient. That is why MathScript was created. With this program it is very easy to create complex formulas. Use of vector fonts garantees high quality. To insert the formulas into word processors or DTP programs they are saved as graphics files. These are the features of version 2.0: - extensive amount of mathematical and physical symbols - Control codes for formatting (super-, subscript, fractions, roots) - easy input with MUI - Export in the following formats: EPS Binary EPS (EPS with TIFF preview IFF_ILBM TIFF - Import of exported files - Preview of the formula in any resolution - ARexx port - ARexx scripts on function keys - support for the locale.library (beginning with OS 2.1). Available languages: english,deutsch,français,svenska,suomi. You may also create your own languages (see Catalogs/readme). - AppWindow/AppIcon support ============================================================================ System requirements ---------------------------------------------------------------------------- MathScript needs at least version 2.0 of the Amiga operating system. Beginning with OS 2.1 it supports localization. To display the vector font the post.library is needed. It is included in the software package. Furthermore MUI version 2.2 or higher is needed. ============================================================================ Starting the program ---------------------------------------------------------------------------- Starting MathScript ... from the Workbench: To start MathScript from the Workbench enter the directory where the program is installed and double click its icon. Alternativly you can click on an icon of a previously saved formula to start MathScript loading this formula automaticaly. from the Shell: To launch MathScript from the Shell type in "MathScript:MathScript". The following arguments are accepted: FILE FILE : name of a formula which shall be loaded immediately ============================================================================ First Steps ---------------------------------------------------------------------------- This chapter offers you a short introduction to MathScript. If you are not familiar with it, read this chapter page by page. While reading about a topic it is the best to practice it with the program at once. Therefore start MathScript. Let's go! ============================================================================ The main window ---------------------------------------------------------------------------- The main window After you have started MathScript the main window will appear. It is subdivided into three parts: 1. The Selection gadgets 2. The Input gadget 3. The Preview area We will first concentrate on the input gadget. Next page ============================================================================ Writing the formula ---------------------------------------------------------------------------- Writing the formula For writing the formulas into MathScript the input gadget is used. The input is made with the keyboard or with the selection gadgets. Formatting functions are specified by special control codes, thus without WYSIWYG representation. To enter standard ASCII letters the keyboard is used while the input gadget is active. We will now create our first formula. Type the following string into the input gadget: "x=1/2" (without quotation marks!) Next page ============================================================================ Preview of the formula ---------------------------------------------------------------------------- Preview of the formula Now we want to show the formula. We use the Preview area for that purpose Click into the big empty area. By that the preview is activated. Untill the formula is shown, you may have to wait some seconds. The first time you show the preview, it will take more time because the PostScript font has to be loaded first. In our example the following should appear in the preview area: 1 x=- 2 Next page ============================================================================ Formatting the formula ---------------------------------------------------------------------------- Formatting the formula In order to format a formula, which means to change the size and position of certain parts, Control codes are used. In our first example we already have used such a control code: the character '/'. It causes a fraction. Its Syntax is: Fraction: syntax: / function: Creates a fraction. input: - nominator - denominator Each control codes needs objects. Following the syntax above, this control code needs two objects, namely a nominator and a denominator. Thus in our example was '1' and was '2'. A complete overview of all supported control codes together with their syntax can be found in control codes. Next page ============================================================================ Objects ---------------------------------------------------------------------------- The control codes need objects. Such an object is in the simplest case a single character. So writing "1/2x" results in the following illustration: 1 - x 2 But if you wish the denominator to be 2x, thus using more than one character, you have to group it to a single object. This is done by surrounding the concerning characters by brackets. So 1/[2x] causes the following term: 1 -- 2x Of course it is possible to create a grouped object inside of another grouped object. To create a double fraction simply write [1/x]/3 which results in the following: 1 - x --- 3 Next page ============================================================================ The Selection Gadgets ---------------------------------------------------------------------------- The Selection Gadgets Although one can use all control codes with the keyboard, it is not very convenient to have all of them in mind. Moreover MathScript has a variety of special mathematical and physical sysmbols, which are not available by the keyboard. To use such symbols and control codes in an easy way, the Selection Gadgets are used. There are 13 such gadgets. If you click on one of them, a window will pop up below, which is divided into single fields. These fields are covered with different symbols. If you keep the mouse button pressed you can select one of them. When you release the button the corresponding symbol will be inserted into the input gadget. If you do not want to select one, simply release the button if no one is selected. Furthermore you can control these gadgets with the keyboard. Use the tab key to select the active gadget, press return and use the cursor keys to highlight the desired symbol, then press return again to insert it, press space to close the menu without insertion. You can also use the keys <1> - <6> to pop up the lower gadgets and <1> - <7> to pop up the gadgets above. Beside simple characters control codes can be inserted, too. They are shown in a symbolic representation and not in the way they are written. The objects belonging to them are symbolized in the following manner: – stands for a grouped object, # for a single character. Example: – The symbol # means superscript. It inserts the following text into the input gadget: ^[] . Lets's suppose there is a single x standing behind the cursor. After clicking on the symbol the contents of the input gadget becomes like this: x^[]. The cursor is placed automatically behind the first grouped object, so behind the '['. By pressing the key '2' the text is "x^[2]", which leads to this "picture": x². But if the first object is a grouped one, you have to select its gadget first and type in its text afterwards in order to be placed between the brackets (see objects). Next page ============================================================================ Load, Save, Export ---------------------------------------------------------------------------- Load, Save, Export You should be able to create rather complex formulas now. If you have created one and it lokks in the preview like you have imagined, you should save it now. Therefore select the menu item Save as... in the "Project" menu. If you have already saved or loaded a formula, you can save the current under the same name by selecting the menu item Save. With the menu item Load... you can load a previously saved formula. The same is possible by dragging an icon of a formula over the main window. So called FML files are used by Load/Save. These are only useable with MathScript and contain only the formula description which is written in the input gadget. In order to use the formulas in other applications, they have to be exported in a graphic format. Therefore use the menu item Export.... It contains additional submenu items with which you can chose the graphic format. Well, that's it! You should have acquired the basic skills to use MathScript. The following chapters go more into details. Back to the Contents. ============================================================================ Main Window ---------------------------------------------------------------------------- The Main Window is subdivided into the following regions: Selection Gadgets Input gadget Preview area ============================================================================ Selection Gadgets ---------------------------------------------------------------------------- There are the following selection gadgets: operators arrows logic brackets sum,prod,int greek chars GREEK CHARS equations theory of sets symbols super-/subscript fraction,root derivatives ============================================================================ Operators ---------------------------------------------------------------------------- Contains a collection of mathematical operators. Keyboard shortcut: ' 1' ============================================================================ Arrows ---------------------------------------------------------------------------- There are 5 single and 5 double arrows. Keyboard shortcut: ' 2' ============================================================================ Logic ---------------------------------------------------------------------------- Holds logical symbols. Keyboard shortcut: ' 3' ============================================================================ Brackets ---------------------------------------------------------------------------- Includes control codes for making brackets of variable size. There are for each bracket type ({,(,[,],|,<) left and right sided versions and brackets on both sides. Keyboard shortcut: ' 4' ============================================================================ sum,product und integral ---------------------------------------------------------------------------- Three characters symbolizing a sum, product and an integral. Keyboard shortcut: ' 5' ============================================================================ small greek characters ---------------------------------------------------------------------------- Contains all small greek characters. Keyboard shortcut: ' 6' ============================================================================ big greek characters ---------------------------------------------------------------------------- Includes all greek characters. Keyboard shortcut: ' 7' ============================================================================ Equations ---------------------------------------------------------------------------- Holds the most important equation and inequality symbols. Keyboard shortcut: ' 1' ============================================================================ symbols of the theory of sets ---------------------------------------------------------------------------- A collection of symbols of the theory of sets. Keyboard shortcut: ' 2' ============================================================================ Symbols ---------------------------------------------------------------------------- Includes symbols not belonging to other groups. Keyboard shortcut: ' 3' ============================================================================ Super-/subscript ---------------------------------------------------------------------------- Contains all control codes for positioning objects. Keyboard shortcut: ' 4' ============================================================================ Fraction and root ---------------------------------------------------------------------------- Holds control codes for making fractions and roots. Keyboard shortcut: ' 5' ============================================================================ derivatives ---------------------------------------------------------------------------- Contains control codes for creating derivatives and vectors. Keyboard shortcut: ' 6' ============================================================================ Input gadget ---------------------------------------------------------------------------- All formulas are typed into the input gadget. It is a standard string gadget and therefore accepts all key short cuts, which can be applied to other string gadgets. Press to activate it. ============================================================================ Preview area ---------------------------------------------------------------------------- In this area the preview of the current formula is displayed. In order to generate such a preview just click on this area. It may happen that the full formula cannot be displayed. Use the scroller gadgets to adjust the visible area. ============================================================================ Settings Window ---------------------------------------------------------------------------- The settings window can be opened by selecting the menu item Change settings. It is divided into four different "pages", namely: System General ARexx Export Moreover there is a seperate menu with the following items: Reset to Defaults Last Saved Restore In order to leave the settings window, select "Ok" or "Cancel". ============================================================================ System Settings ---------------------------------------------------------------------------- On this page you can set some options regarding the (operating) system. Path With the small filerequester gadget or the string gadget you can specify a path MathScript uses as a default for loading/saving. No Icons If this option is not active MathScript will create suitable icons while saving/exporting. By replacing the icons in the drawer "icons" you can use your own icons. ============================================================================ General Settings ---------------------------------------------------------------------------- On this page you can set general preferences. Font size You are able to specify the font size in pt (1/72 inch) here. Preview resolution Both gadgets can be used to set the x and y resolution of the preview in dpi (dots per inch). ============================================================================ ARexx Settings ---------------------------------------------------------------------------- You can place some ARexx scripts on your function keys on this page. Function keys For each function key Fn (n=1,2,...,10) you can specify an ARexx script in the string gadgets, which will be executed by pressing this key or selecting the corresponding menu item Fn: .... Pressing the PopUp gadgets on the right side will open an filerequester. Only names You can specify wheter an ARexx script should appear in the "Arexx" menu only with its name or with the full path. ============================================================================ Export Settings ---------------------------------------------------------------------------- You can set some options for the different graphic formats on this page. It consists of some other pages which contain settings for a specific format, namely: EPS Binary EPS IFF TIFF ============================================================================ EPS Settings ---------------------------------------------------------------------------- There is only one option: Include font If this option is activated the postscript description of the math font is embedded into the EPS files. This is necessary if the postscript interpreter is unable to load fonts from your harddisk. This applies of course to all postscript printers. But if a application with a software interpreter (Post, PostView, FinalWriter...) is used, it will look (with a suitable init.ps file) in the directory PSFonts: after available fonts. So in this case it is better not to include the font, so the size of your EPS files will not grow too much. If you want to use your formula on another computer you should activate this option, because the font will not be available on other systems. ============================================================================ Binary EPS Settings ---------------------------------------------------------------------------- There are the following options regarding the "Binary EPS" format: Include font If this option is activated the postscript description of the math font is embedded into the EPS files. This is necessary if the postscript interpreter is unable to load fonts from your harddisk. This applies of course to all postscript printers. But if a application with a software interpreter (Post, PostView, FinalWriter...) is used, it will look (with a suitable init.ps file) in the directory PSFonts: after available fonts. So in this case it is better not to include the font, so the size of your EPS files will not grow too much. If you want to use your formula on another computer you should activate this option, because the font will not be available on other systems. Preview resolution Both gadgets are used to specify the resolution in dpi of the preview part of the EPS files. ============================================================================ IFF Settings ---------------------------------------------------------------------------- There is only one option available regarding the IFF format: Resolution Both gadgets are used to specify the x and y resolution in dpi. ============================================================================ TIFF Settings ---------------------------------------------------------------------------- There is only one option available regarding the TIFF format: Resolution Both gadgets are used to specify the x and y resolution in dpi. ============================================================================ Reset to Defaults ---------------------------------------------------------------------------- The default settings will be used. ============================================================================ Last Saved ---------------------------------------------------------------------------- The last saved settings will be loaded again. ============================================================================ Restore ---------------------------------------------------------------------------- The settings will be set to the state they had after opening the Settings Window. ============================================================================ Menus ---------------------------------------------------------------------------- Overview of all menu items in the Main Window: Project New Load ... Save Save as ... Import... Export Graphic formats About ... Quit ARexx Execute ARexx script ... F1: ... F2: ... . . . F10: ... Settings Change settings... Load settings... Save settings Save as settings... ============================================================================ New ---------------------------------------------------------------------------- Clears the input gadget. Warning: This action cannot be made undone. ============================================================================ Load ---------------------------------------------------------------------------- Opens a file requester in which a file can be chosen which should be loaded. Only files which have the suffix .fml are shown there. It is appended automatically by the Save function. If you wish to load an ASCII file without this suffix, just clear the gadget "Pattern". You can also use MathScript's AppWindow/AppIcon support. Simply drag an icon of a formula over the main window or AppIcon (if iconified). ============================================================================ Save ---------------------------------------------------------------------------- Does the same as Save as ..., except that if a file has been loaded or saved before no file requester will pop up and the current file will be used for saving. The name of the current file is shown on the title bar. ============================================================================ Save as ---------------------------------------------------------------------------- This menu item saves the current contents of the input gadget as a Formula file, in order to reuse or modify the formula later on. A file requester will be opened, in which a file can be chosen, which should be used for saving. All formulas saved with MathScript have the suffix .fml, in order to distinguish them from regular text files. ============================================================================ Import ---------------------------------------------------------------------------- When a formula is exported its formula description is included into the graphics file. With this menu item it is possible to load it from a previously exported formula. If an exported file was modified in any way by another program, the formula description may not be found. In this case you are able to search the whole file for it. For example a word processor may include an EPS file into an IFF file when copying it into the clipboard. With this feature you can search the clipboard file for the formula. This feature is supported by all graphics formats except EPS. ============================================================================ Export ---------------------------------------------------------------------------- This menu item saves the current formula as a graphic file which can be loaded into other applications (word processors,DTP programs,...). MathScript supports different graphics formats which are selectable as submenu items. ============================================================================ Graphic formats ---------------------------------------------------------------------------- In the current version MathScript supports the following formats: EPS Binary EPS IFF TIFF ============================================================================ EPS ---------------------------------------------------------------------------- This format is the most popular vector graphic format. In opposition to bitmap formats like the IFF-ILBM they have an excellent printing quality. EPS means Encapsulated PostScript. PostScript is a interpretative page describing language, which is known by several laser printers. If you do not have such a printer, you are dependent on the software, in which the formulas should be used. For example the word processor "FinalWriter" is able to convert EPS files to Bitmaps so they can be printed on regular printers.. This format contains only Ascii characters so it can be send directly to a PostScript printer or displayed by a software interpreter like "Post". If this is not neccessary you should use the variation Binary EPS. This format does not include the formula description, so the menu item Import does not work with these files. ============================================================================ Binary EPS ---------------------------------------------------------------------------- This format contains the regular EPS code and a bitmap in the TIFF formatas a preview. The advantage of this format against the pure Ascii EPS is that it can be easily shown on the monitor and printed out on non-PostScript printers. ============================================================================ IFF ---------------------------------------------------------------------------- There is not much to say abaout the IFF-ILBM format, is it? ;) Because it is a bitmap format you will not reach the printing quality of (Binary) EPS files. On the other side it should be loadable by all graphic supporting programs. ============================================================================ TIFF ---------------------------------------------------------------------------- The TIFF format is bitmap based. It has not the importance on the Amiga like the IFF format, but is was needed for the Binary EPS format. Nevertheless it could be usefull when using MathScript formulas on other computer systems because it is very widespread. ============================================================================ About ---------------------------------------------------------------------------- Opens an window, in which there are informations about the program and me. ============================================================================ Quit ---------------------------------------------------------------------------- Quits the program. ============================================================================ Execute ARexx script ---------------------------------------------------------------------------- Opens a file requester in which an ARexx script can be chosen which should be executed. Detailled informations about the ARexx port of MathScript can be found under ARexx. ============================================================================ Function keys ---------------------------------------------------------------------------- In the Settings Window on the ARexx page there are the Function keys gadgets. If you have installed an ARexx scripts on a particular function key, you are able to execute that script by selecting the corresponding menu item, too. ============================================================================ Change settings ---------------------------------------------------------------------------- This menu item opens the Settings Window in which MathScript's settings can be changed. ============================================================================ Load settings ---------------------------------------------------------------------------- You can load the settings out of a previously saved prefs file with this menu item. ============================================================================ Save settings ---------------------------------------------------------------------------- This will save your settings to be used next time. ============================================================================ Save as settings ---------------------------------------------------------------------------- Selecting this menu item you are able to save the current settings into any file. ============================================================================ ARexx ---------------------------------------------------------------------------- With its ARexx port MathScript can be controlled from "outside" what means without intervention of the user. MathScript allocates for each running task ist own ARexx port. The name of the first one is "MATHSCRIPT.1", the second is called "MATHSCRIPT.2 and so on. An ARexx script can be started by MathScript with the menu item Execute ARexx script. Arguments follow the standard Amiga ReadArgs() conventions. Here is the list of all supported commands: Clear GetContents SetContents GetPosition SetPosition Insert Load Save Import Export ScreenToFront Requester GetSystemPrefs SetSystemPrefs GetGeneralPrefs SetGeneralPrefs GetARexxPrefs SetARexxPrefs GetExportPrefs SetExportPrefs SavePrefs SavePrefsAs LoadPrefs Preview GetDimensions ============================================================================ Clear ---------------------------------------------------------------------------- Clear: syntax: Clear function: Clears the input gadget corresponding the menu item New. input: - result: - ============================================================================ GetContents ---------------------------------------------------------------------------- GetContents: syntax: GetContents function: Provides the current contents of the input gadget. input: - result: result - contents ============================================================================ SetContents ---------------------------------------------------------------------------- SetContents: syntax: SetContents CONTENTS/A/F function: Sets the new contents of the input gadget. input: CONTENTS - New contents of the input gadget result: ============================================================================ GetPosition ---------------------------------------------------------------------------- GetPosition: syntax: GetPosition function: Gets the position of the cursor in the input gadget input: result: result - position of the cursor ============================================================================ SetPosition ---------------------------------------------------------------------------- SetPosition: syntax: SetPosition POSITION/A/N function: Sets the cursor on a new position. input: POSITION/A/N - new position of the cursor result: ============================================================================ Insert ---------------------------------------------------------------------------- Insert: syntax: Insert STRING/A/F function: Inserts a string behind the current cursor position into the input gadget. input: STRING - string that should be inserted result: - ============================================================================ Load ---------------------------------------------------------------------------- Load: syntax: Load FILE,FORCE/S function: Loads a text file as a formula. If FILE is not supplied a file requester will pop up. input: FILE - name of the file which should be loaded FORCE - surpresses any warnings result: - ============================================================================ Save ---------------------------------------------------------------------------- Save: syntax: Save FILE,FORCE/S function: Saves the current formula as a text file. If FILE is not supplied a file requester will pop up. input: FILE - name of the file which should be saved FORCE - surpresses any warnings result: - ============================================================================ Import ---------------------------------------------------------------------------- Import: syntax: Import FILE,FORCE/S function: Searches a file for a formula description. If FILE is not supplied a file requester will pop up. input: FILE - name of the file which should be loaded FORCE - surpresses any warnings result: - ============================================================================ Export ---------------------------------------------------------------------------- Export: syntax: Export FORMAT/A,FILE,FORCE/S function: Saves the current formula as a graphic file. If FILE is not supplied a file requester will pop up. input: FORMAT - Format of the file. Possible values: "EPS","BINEPS","IFF","TIFF". FILE - name of the file which should be saved FORCE - surpresses any warnings result: - ============================================================================ ScreenToFront ---------------------------------------------------------------------------- ScreenToFront: syntax: ScreenToFront function: Moves the screen where MathScript has opened its windows to the front. input: - result: - ============================================================================ Requester ---------------------------------------------------------------------------- Requester: syntax: Requester TITLE/A,PATTERN/K function: Opens a file requester for loading files. input: TITLE - Titlebar of the requester PATTERN - Amiga-Dos pattern, which can be used for hiding files result: - ============================================================================ GetSystemPrefs ---------------------------------------------------------------------------- GetSystemPrefs: syntax: GetSystemPrefs ITEM/A function: Gets the current system settings input: ITEM - one of the following values: PATH - default path NOICONS - returns YES or NO result: value corresponding to ITEM ============================================================================ SetSystemPrefs ---------------------------------------------------------------------------- SetSystemPrefs: syntax: SetSystemPrefs PATH/K,NOICONS/K,PROMPT/S function: Sets the current system settings input: PATH - default path NOICONS - YES or NO PROMPT - If this argument is specified, all other arguments are ignored and the Settings Window will be opened result: value corresponding to ITEM ============================================================================ GetGeneralPrefs ---------------------------------------------------------------------------- GetGeneralPrefs: syntax: GetGeneralPrefs ITEM/A function: Gets the current general settings input: ITEM - one of the following values: FONTSIZE - Font size in pt PREVIEW_DPI - returns x and y dpi of the preview seperated by a 'x' result: value corresponding to ITEM ============================================================================ SetGeneralPrefs ---------------------------------------------------------------------------- SetGeneralPrefs: syntax: SetGeneralPrefs FONTSIZE/K/N,PREVIEW_DPI/K,PROMPT/S function: Gets the current general settings input: FONTSIZE - Font size in pt PREVIEW_DPI - x and y dpi of the preview seperated by a 'x' PROMPT - If this argument is specified, all other arguments are ignored and the Settings Window will be opened result: value corresponding to ITEM ============================================================================ GetARexxPrefs ---------------------------------------------------------------------------- GetARexxPrefs: syntax: GetARexxPrefs ITEM/A function: Gets the current ARexx settings input: ITEM - one of the following values: F1,F2,...,F10 - name of the ARexx script on the function key ONLY_NAMES - returns YES or NO result: value corresponding to ITEM ============================================================================ SetARexxPrefs ---------------------------------------------------------------------------- SetARexxPrefs: syntax: SetARexxPrefs F1/K,F2/K,F3/K,F4/K,F5/K,F6/K,F7/K,F8/K,F9/K,F10/K, ONLY_NAMES/K,PROMPT/S function: Sets the current ARexx settings input: F1,F2,...,F10 - name of the ARexx script for the function key ONLY_NAMES - returns YES or NO PROMPT - If this argument is specified, all other arguments are ignored and the Settings Window will be opened result: value corresponding to ITEM ============================================================================ GetExportPrefs ---------------------------------------------------------------------------- GetExportPrefs: syntax: GetExportPrefs ITEM/A function: Gets the current export settings input: ITEM - one of the following values: PS_FONT - Include font into EPS file? Returns YES or NO BINEPS_FONT - Include font into Binary EPS file? Returns YES or NO BINEPS_DPI - Returns x and y dpi of the preview seperated by a 'x' IFF_DPI - Returns x and y dpi seperated by a 'x' TIFF_DPI - Returns x and y dpi seperated by a 'x' result: value corresponding to ITEM ============================================================================ SetExportPrefs ---------------------------------------------------------------------------- SetExportPrefs: syntax: SetExportPrefs PS_FONT/K,BINEPS_FONT/K,BINEPS_DPI/K,IFF_DPI/K, TIFF_DPI/K,PROMPT/S function: Sets the current export settings input: PS_FONT - Include font into EPS file? YES or NO BINEPS_FONT - Include font into Binary EPS file? YES or NO BINEPS_DPI - x and y dpi of the preview seperated by a 'x' IFF_DPI - x and y dpi seperated by a 'x' TIFF_DPI - x and y dpi seperated by a 'x' PROMPT - If this argument is specified, all other arguments are ignored and the Settings Window will be opened result: value corresponding to ITEM ============================================================================ SavePrefs ---------------------------------------------------------------------------- SavePrefs: syntax: SavePrefs function: Saves the current settings. input: - result: - ============================================================================ SavePrefsAs ---------------------------------------------------------------------------- SavePrefsAs: syntax: SavePrefsAs FILE,FORCE/S function: Saves the current settings into any file. If File is not specified, a filerequester will be opened input: - FILE - Name of the file FORCE - surpresses any warnings result: - ============================================================================ LoadPrefs ---------------------------------------------------------------------------- LoadPrefs: syntax: LoadPrefs FILE function: Loads a prefs file. If FILE is not specified, a filerequester will be opened. input: FILE - name of the file result: - ============================================================================ PreviewPrefs ---------------------------------------------------------------------------- Preview: syntax: Preview function: Shows the preview of the current file input: - result: - ============================================================================ GetDimensions ---------------------------------------------------------------------------- GetDimensions: syntax: GetDimensions function: Returns the size of the formula input: - result: - size in format " " ============================================================================ Codes ---------------------------------------------------------------------------- Overview of all control codes Positions: Up: syntax: ^ function: Moves dependent on the size of up for example in order to show it as an exponent of a power. input: - base - exponent Down: syntax:_ function: Moves dependent on the size of down for example in order to show an subscript. input: - base - subscript Up and down: syntax: ^_ function: Moves dependent on the size of up and down. input: - base - exponent - subscript Above: syntax: \\up function: Moves above . input: - base object - higher object Example: -1 F\\up[-1] -> F (inverse function) Under: syntax: \\dn function: Moves under . input: - base object - lower object Example: lim [lim]\\dn[n->0] -> n->0 Above and under: syntax: \\ud function: Moves above and under . input: - base object - higher object - lower object Brackets: syntax: input output ( -> ( { -> { \\l[ -> [ \\l] -> ] \\l| -> | ) -> ) } -> } \\r] -> ] \\r[ -> [ \\r| -> | Moreover there are special pointed brackets which are only available through the selection gadgets: < -> < > -> > function: Scales the brackets dependent on the size of input: - specifies the size of the brackets Example: / 1 | ([1/2x]\\r| -> | -x | \\ 2 | fraction and root: Fraction: syntax: / function: Creates a fraction. input: - nominator - denominator Square root: syntax: \\sqrt function: Creates a square root. input: root: syntax: \\rt function: Creates a root. input: - root exponent Because the characters '^','_' ,'\\' and '/' are used as control codes you can use them as normal characters by writing a single backslash ('\\') in front of them. Thus: \\^ -> ^ \\_ -> _ \\\\ -> \\ \\/ -> / ============================================================================ Disclaimer ---------------------------------------------------------------------------- MathScript is shareware. It may be distributed and copied as long as the following conditions are fulfilled: - The sales price must not be higher than the cost of an empty disk plus a nominal copying fee plus costs for shipping. - All parts of the program and the documentation must be complete. The distribution of single parts is not allowed. - MathScript or parts of it may not be sold together with commercial software without the written permission of the author. - All parts of the software package must not be changed in any way. - The keyfile of a registered user may not be distributed. - The Author is not responsible for misuse or damage caused by the program. The program may be used for 14 days. After that period the registration is obligatory for further usage. post.library © Copyright Adrian Aylward ============================================================================ Registration ---------------------------------------------------------------------------- If you register for MathScript you will obtain the latest version of it and a keyfile. With this keyfile you are able and allowed to use future releases of MathScript. Moreover these annoying requesters will disappear. The shareware fee is 15$ or 20DM. To become a registered user print out the registration form (or write a similar form) and fill it out. Send it to: Simon Ihmig Beim Rauhen Hause 30 22111 Hamburg Germany ============================================================================ Registration form ---------------------------------------------------------------------------- I want to register for the shareware program MathScript. I will get a keyfile which allows me to use the program regularly. I guarantee that it is only for my personal use and that I do not distribute it. Kind of payment: o The fee of 15$ or 20DM is enclosed o The fee of 15$ or 20DM is transfered to the following account: No: 1077/782033 BLZ: 200 505 50 (Germany) Hamburger Sparkasse Simon Ihmig My address: Name:_____________________________________________ Christian name:___________________________________ Street:___________________________________________ City:_____________________________________________ Phone:____________________________________________ Country:__________________________________________ e-mail:___________________________________________ City,Date:____________________________ signature:__________________________ ============================================================================ Future ---------------------------------------------------------------------------- For future versions of MathScript the following features are planed: (no guarantee for realization!) - More control codes (matrix,underline...) - More symbols - Formulas with more than one line - better Online Help - use a custom font (?) - coloured formulas In order to be able to fulfill other wishes, to give suggestions or to indicate errors, PLEASE write !!! You can find my address below the table of contents. ============================================================================ Credits ---------------------------------------------------------------------------- Thanks go to: - Stefan Stuntz for his MagicUserInterface MUI - Adrian Aylward for his post.library - David Ekholm for his swedish translation - Osma Ahvenlampi for his finnish translation - and last but not least all registered users! ============================================================================ MUI ---------------------------------------------------------------------------- This application uses MUI - MagicUserInterface (c) Copyright 1993/94 by Stefan Stuntz MUI is a system to generate and maintain graphical user interfaces. With the aid of a preferences program, the user of an application has the ability to customize the outfit according to his personal taste. MUI is distributed as shareware. To obtain a complete package containing lots of examples and more information about registration please look for a file called "muiXXusr.lha" (XX means the latest version number) on your local bulletin boards or on public domain disks. If you want to register directly, feel free to send DM 30.- or US$ 20.- to Stefan Stuntz Eduard-Spranger-Straße 7 80935 München GERMANY ============================================================================