home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / EPMTEX20 / DOC / INSTALL.DOC < prev    next >
Encoding:
Text File  |  1994-08-16  |  17.2 KB  |  412 lines

  1.                TeX Macro Enhancements for EPM 5.51a and EPM 6.00c
  2.  
  3.                                   Version  2.0
  4.  
  5.                            Installation/Upgrade Manual
  6.  
  7.                                    Jon Hacker
  8.                                   Rodney Korte
  9.  
  10.                                   August 1994
  11.  
  12. Disclaimer:
  13. ~~~~~~~~~~~
  14. See the attached license.txt file that is more or less pilfered from
  15. IBM's license agreement.
  16.  
  17.  
  18.                                    CONTENTS
  19.                                    ~~~~~~~~
  20.  
  21.  Section 1:  Installation of EPMTeX 2.0
  22.              (read this if you have never installed/used EPMTeX before)
  23.  
  24.  
  25.  Section 2:  Upgrading from EPMTeX 1.3 to 2.0
  26.              (jump to this if you want to upgrade as fast as possible
  27.              and already know the basics of EPM and EPMTeX)
  28.  
  29.  
  30.  
  31. ********************************************************************************
  32.  
  33.  
  34. Section 1:  Installation of EPMTeX 2.0
  35. ~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  36.  
  37. Introduction:
  38. ~~~~~~~~~~~~
  39. The E macro file tex.e, when compiled with the IBM enhanced Editor
  40. translator ETPM.EXE, will add a TeX pull down menu to the EPM menu bar
  41. and integrate TeX functions and commands within the editor.
  42.  
  43. Requirements:
  44. ~~~~~~~~~~~~
  45. The TeX E macro package supplied with this package needs to be compiled
  46. before it can be incorporated into EPM.  You will need to obtain the
  47. complete EPM 5.51a package from IBM to do this.  Alternatively, the 
  48. package can also be used with the new 32 bit version 6.00 of EPM.
  49.  
  50. WARNING:  There are several versions of epm 5.51.  Make sure you get the 
  51.           latest version.  It should say 5.51a in the Product 
  52.           Information dialog box under the Help menu, and the epm.exe
  53.           file should be dated August 3, 1993 with a file size of 33088
  54.           bytes.
  55.  
  56. The EPM package is available for free from the following Internet sites:
  57.  
  58. software.watson.ibm.com   /pub/os2/os2fixes
  59. ftp-os2.cdrom.com         /pub/os2/ibm/os2fixes
  60.  
  61. It should also be available from major OS/2 BBS services.
  62.  
  63.  
  64. Installation of EPM 5.51a:
  65. ~~~~~~~~~~~~~~~~~~~~~~~~~
  66. If you are not already familiar with compiling EPM macros on your machine,
  67. read this section for additional help.
  68.  
  69. The installation of the EPM 5.51a package is sufficiently confusing that I
  70. will try to give some hints to get you going as fast as possible.
  71.  
  72. The EPM package includes two hypertext files; the EPM User's Manual, and
  73. the EPM Technical Reference.  Both of these manuals provide a wealth of
  74. information on EPM.  It is highly recommended that you spend some time
  75. becoming familiar with EPM, and the E macro language by reading through them.
  76.  
  77. 1) Decide on a location for your EPM files.  I suggest something like
  78.    \os2\epm or \epm.  I would avoid using the \os2\apps directory
  79.    where the binaries for EPM 5.51 are placed in the GA release of OS/2 2.1.
  80.    There's just too much other crap in there already.
  81.  
  82. 2) Unzip the EPM 5.51a files.  You will want to take care where you put
  83.    everything.  I recommend the following directory structure as suggested in
  84.    the EPMBBS.TXT file in the EPM package from IBM.
  85.  
  86. EPMAPP.ZIP - Unzip into your epm directory (eg. \os2\epm)
  87.    EPM.EXE     - The 5.51a version of the editor
  88.    ETPM.EXE    - The 5.51a version of the macro compiler
  89.    PMMORE.EXE  - Useful for debugging Rexx macros; entering RXSHELL from
  90.                  EPM will start PMMORE and redirect STDOUT to this window.
  91.                  SAY and TRACE output will be displayed there.
  92.    *.EX        - the 5.51a version of the compiled macros
  93.    EPMHELP.QHL - the updated "quick help" file
  94.    EPMTECH.NDX - An index file for getting macro programmer help.
  95.  
  96. EPMBK.ZIP - Unpack into a directory in your BOOKSHELF path
  97.    EPMUSERS.INF - The EPM User's Guide
  98.    EPMTECH.INF  - The EPM Macro Programmer's Technical Reference
  99.  
  100. EPMDLL.ZIP - Unpack into \os2\apps\dll or a directory in your LIBPATH.
  101.              Delete the obsolete ETK*550.DLL files leftover from EPM 5.50.
  102.     ETK*551.DLL - The E Toolkit DLLs.
  103.  
  104. EPMMAC.ZIP - Create a subdirectory under EPM called E_MACROS and unzip
  105.              into it.
  106.      *.e - contains the macro files used to build the standard *.ex files.
  107.  
  108. EPMHLP.ZIP - Updated EPM.HLP; unpack into \os2\help
  109.  
  110. EMPSMP.ZIP - Create a subdirectory under EPM called sampmacs and unzip
  111.              this file into it.
  112.      *.e - Sample E macro code; includes both useful programs and
  113.            building blocks that you can use in writing your own code.
  114.  
  115. EPMREX.ZIP - Create a subdirectory under EPM called EREXX, unzip this
  116.              file into it and add it to your EPMPATH.
  117.      *.erx - contains some sample EPM / Rexx macros.
  118.  
  119. EPMASI.ZIP - Create a subdirectory under EPM called myassist, unzip this
  120.              file into it and add it to your EPMPATH.
  121.      An alternative approach to syntax-assisted editing; makes it easy to
  122.      add your own expansions.  Includes sample files for OS/2 and PM APIs,
  123.      C, and Bookmaster.
  124.  
  125. EPMATR.ZIP - Create a subdirectory under EPM called epmattr, unzip this
  126.              file into it and add it to your EPMPATH.
  127.      Sample code for doing things with EPM's attribute support.
  128.  
  129.  
  130. 3) Edit your config.sys file and make sure that your new epm directory
  131.    is included in your PATH statement.  If you have IBM's TCP/IP networking
  132.    package, make sure your epm directory comes before \tcpip\bin in your
  133.    PATH, or delete the redundant EPM files as outlined in step (6).
  134.  
  135. 4) Edit your config.sys file and make sure that the e_macros, sampmacs,
  136.    erexx, myassist, and epmattr subdirectories are included in your EPMPATH.
  137.    EPMPATH is used by the ETPM compiler to find macro files that are not in
  138.    your current directory.
  139.  
  140. 5) Use a file finding utility to hunt down all *.ex files.  These are
  141.    the compiled E macros that EPM executes.  The GA release of OS/2 puts
  142.    them in \os2\apps.  Delete all redundant or older *.ex files on your
  143.    system.  You only need them in your EPM directory.  Having multiple
  144.    copies of the *.ex files may result in strange behaviour from EPM.
  145.  
  146. ----- OPTIONAL -------------------------------------------------------------
  147. 6) If you have IBM's TCP/IP networking package, there will be some more
  148.    *.ex files in \tcpip\bin.  You can delete most of these files, or, if you
  149.    prefer, just make sure your your epm directory comes before \tcpip\bin in
  150.    your PATH,
  151.  
  152. WARNING: LEAVE THE FOLLOWING UNIQUE TO LAMAIL *.EX FILES IN \TCPIP\BIN
  153.                              ~~~~~~
  154.           EPMLIST.EX
  155.           LAMEXTRA.EX
  156.           MAILLIST.EX
  157. -----------------------------------------------------------------------------
  158.  
  159. 7) Find all copies of EPM.EXE (v 5.50) and delete them.  Likely hiding places
  160.    are \os2\apps and \tcpip\bin.  You only need the one copy of epm.exe and it
  161.    should be in your epm directory.  As long as it is in your PATH lamail will
  162.    find it.
  163.  
  164. 8) Find all copies of ETK*550.DLL (v 5.50 dll's) and delete them.  Likely
  165.    hiding places are \os2\apps\dll  and \tcpip\dll.  You only need the v5.51a
  166.    dll's and they should be put somewhere in your LIBPATH (\os2\apps\dll is as
  167.    good as any) As long as it is in your LIBPATH lamail will find it.
  168.  
  169.  
  170. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  171. NOTE: Unfortunately, when you apply a CSD or Service Pack, copies of
  172.       EPM will again be placed in \os2\apps or \tcpip\bin and you will need
  173.       to do some housekeeping to get things back in order.
  174. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  175.  
  176. 9)  I advise you get the spell checker option EPM_SPEL.ZIP for EPM.  It is a
  177.     nice thing to have and is available from the following INTERNET source.
  178.  
  179.                ftp-os2.cdrom.com          /pub/os2/2_x/editors
  180.  
  181.     You will need to put the location of the dictionary (us.dct file) in the
  182.     paths section of the EPM preferences notebook.  I put mine in
  183.     \epm\lexam.
  184.  
  185. 10) Create the subdirectory EPMTEX in the EPM directory.  Copy the contents
  186.     of the EPMTeX macro package into it.  Add this directory to your
  187.     EPMPATH  environment variable.  (You could also copy them to the
  188.     e_macros subdirectory of epm, but this is less desirable from the
  189.     viewpoint of cleanliness :-) ).
  190.  
  191. 11) You should now be ready to compile your E macros.  First, though, reboot
  192.     if you made any changes to config.sys.
  193.  
  194.  
  195. COMPILING THE EPMTeX MACROS:
  196. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  197. 1)  Read the section in the EPM user's manual 'Changing the default
  198.     configuration' to understand the use of EPM's configuration constants
  199.     and what they can do.  The binaries included with the EPM package were
  200.     compiled with the constants defined in epmgcnf.smp in your e_macros
  201.     subdirectory.  If these are OK with you, copy epmgcnf.smp to a file
  202.     called mycnf.e in your e_macros directory.  You may then edit mycnf.e
  203.     and add the TeX support switches as you wish.
  204.  
  205.     As an alternative, there is a file called texcnf.smp that is included
  206.     with EPMTeX.  If you would like to try it instead, copy it to a file
  207.     called mycnf.e in your e_macros directory.  Even better, make up your
  208.     own to setup EPM as YOU want it.
  209.  
  210.     In any case, we would suggest that in your MYCNF.E file you
  211.     enable the ring by including the following:
  212.  
  213.       MY_RING_ENABLED = 1
  214.       RING_OPTIONAL = 0
  215.  
  216. 2)  Copy the file texenv.smp to texenv.e and edit texenv.e to point to
  217.     your TeX applications (the lines in there already are for a version 
  218.     of emTeX on my system.  Yours will probably be different).  We 
  219.     use the name texenv.smp in the distribution to avoid clobbering your 
  220.     own copy of texenv.e in case you are upgrading from a previous
  221.     version of EPMTeX.
  222.  
  223. 3)  If you don't have a mystuff.e file in your e_macros directory, (maybe
  224.     because this is your first stab at compiling E macros) then
  225.     copy mystuff.add to mystuff.e.
  226.  
  227.     If you already have a mystuff.e file in your e_macros directory, 
  228.     then append the contents of mystuff.add to the end of it.
  229.  
  230. 4)  If you don't have a mymnuini.e file in your e_macros directory, then
  231.     copy mymnuini.add to mymnuini.e.
  232.  
  233.     If you already have a mymnuini.e file in your e_macros directory (it is
  234.     possible that you may already have an existing mymnuini.e file if you
  235.     have made other modifications to EPM's menu bar already), then 
  236.     append the contents of mymnuini.add to it.
  237.  
  238. 5)  If you don't have a mykeyset.e file in your e_macros directory, then
  239.     copy mykeyset.add to mykeyset.e.
  240.  
  241.     If you already have a mykeyset.e file in your e_macros directory, then
  242.     append the contents of mykeyset.add to it.
  243.  
  244. 6)  If you don't have a mykeys.e file in your e_macros directory, then
  245.     copy mykeys.add to mykeys.e.
  246.  
  247.     If you already have a mykeys.e file in your e_macros directory, then
  248.     append the contents of mykeys.add to it.
  249.  
  250. 7)  To be safe, make backup copies of your epm.ex and extra.ex files in
  251.     your epm directory.  Then if things go awry you can get back to the
  252.     original epm configuration.
  253.  
  254. 8)  Make the epm directory your current directory, and type
  255.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  256.  
  257.     etpm epm
  258.  
  259.     The etpm compiler will execute and compile your epm.e macro.  The TeX
  260.     stuff in mystuff.e, mymnuini.e, mykeyset.e, and your config switches
  261.     in mycnf.e will automatically be included.  If etpm complains it can't
  262.     find a file, you probably have your EPMPATH incorrectly defined.  It
  263.     should point to all directories containing E macro files (*.e).
  264.  
  265. 9)  If that goes well, type
  266.  
  267.     etpm extra
  268.  
  269.     This will compile the extra stuff that wouldn't all fit in the epm.ex
  270.     file and generate a new extra.ex file.  (Note: this step is 
  271.     unnecessary with EPM 6.00.) 
  272.  
  273. 10) If that goes well, type
  274.  
  275.     etpm tex
  276.  
  277.     This will compile the actual TeX support.
  278.  
  279. 11) Verify that new epm.ex, extra.ex, and tex.ex files are in your epm
  280.     directory.  If they are, fire up epm with a TeX file and you should see
  281.     the TeX submenu added to the EPM menu bar.
  282.  
  283. 12) Read the epmtex.doc file for information on using the various TeX
  284.     commands added with the EPMTeX package.  During the installation, it
  285.     may be helpful to turn the 'debug mode' feature on as explained in the
  286.     epmtex.doc file.
  287.  
  288.  
  289.  
  290. ********************************************************************************
  291.  
  292.  
  293.  
  294. Section 2:  Upgrading from EPMTeX 1.3 to 2.0
  295. ~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  296.  
  297.    There are a number of things done differently in v2.0 than in
  298.    v1.3a (apologies!).  This section specifically points out what
  299.    things must be changed in order to upgrade.  To understand the 
  300.    new options in v2.0, you will still need to peruse the epmtex.doc
  301.    user manual. 
  302.  
  303. Changes to TEXENV.E:
  304. ~~~~~~~~~~~~~~~~~~~
  305.  
  306.    Many things have been added to TEXENV.E.  You should probably
  307.    simply copy TEXENV.SMP to TEXENV.E and edit the new file 
  308.    to point to your TeX applications.  Some notes however:
  309.  
  310.       TEX_EXEC will be the same except that the format ('plain',
  311.       usually) should NOT be specified in this command variable.
  312.       The format gets appended by EPMTeX. (See Format menu item
  313.       in EPMTeX.doc.)
  314.  
  315.       The commands for printing and previewing should not change.
  316.       (TEX_VIEW*, TEX_PRINT*)
  317.  
  318.       LATEX_* commands are no longer used.  The LaTeX functionality
  319.       is built into the Format mechanism.
  320.  
  321.       There are new TEX_FORMAT* variables to be defined.  This is where
  322.       the plain and latex formats are defined.  The user can also defined
  323.       up to two more formats, which one might use for defining german
  324.       verions of plain and/or latex.
  325.  
  326.       TEX_USER_MENU_TEXT, TEX_USER_EXEC and TEX_USER_IS_CMD are no
  327.       longer used.  This functionality has been expanded so that the
  328.       user can now define up to 2 specific commands.  The user might
  329.       wish to use these to define TeX commands for a different version
  330.       of TeX or for german formats or whatever.  (Note: If this is
  331.       used for a TeX command, the format must be included in the command,
  332.       which is different that for the TEX_EXEC definition.)
  333.  
  334.  
  335. Changes to constants in MYCNF.E:
  336. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  337.  
  338.    The following constants are no longer used and should be removed
  339.    from your MYCNF.E file:
  340.  
  341.         MY_TEX_FILE_TYPE
  342.         TEX_LATEX_MODE
  343.         TEX_USER_MODE
  344.         TEX_LANDSCAPE_MODE
  345.  
  346.    The following are new constants, followed by possible values
  347.    and default default values if the constant is not defined:
  348.  
  349.         TEX_FORMAT_TO_USE = 'Auto', 'plain', 'lplain'   ( 'Auto' )
  350.                             or actually *any* format you have on your
  351.                             system. This defines what format is passed to
  352.                             the TeX command when "TeX Document" is chosen.
  353.                             If 'Auto', EPMTeX will check the first line
  354.                             of the current file for the format to be
  355.                             used, and default to 'plain' if there is no
  356.                             directive there.  (See texenv.e and EPMTeX.doc)
  357.  
  358.         TEX_ORIENTATION =   'Auto', 'Portrait', 'Landscape'   ( 'Auto' )
  359.                             This is used to determine which command
  360.                             (either normal or landscape, defined in texenv.e)
  361.                             will be called for "Previewing", "Printing",
  362.                             and the 2 user-defined commands.  If 'Auto',
  363.                             EPMTeX will check the first line of the current
  364.                             file for the orientation to be used, and default
  365.                             to 'portrait' if there is no directive there.
  366.                             (See texenv.e)
  367.  
  368.         TEX_QUICK_KEYS =    0, 1  ( 1 )
  369.                             Define S_F11 and S_F12 as "TeX Document" and
  370.                             "Locate Next Error".  0 = No, 1 = Yes
  371.  
  372.         TEX_USER_FILE_TYPES = 'ABC DEF GHI'    ( '' )
  373.                             Define all filetypes to trigger TeX support.
  374.                             Though more intelligible with them, spaces are
  375.                             not required.  These are in addition to
  376.                             'TEX STY LOG AUX'.
  377.  
  378.    We also suggest putting the following two lines in MYCNF.E (if
  379.    they aren't already):
  380.  
  381.         MY_RING_ENABLED = 1
  382.         RING_OPTIONAL = 0
  383.  
  384.  
  385. Changes to other 'MY'.E files:
  386. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  387.  
  388.    MYMNUINI.E must be modified.  Delete the TeX support from version
  389.    1.3a and add the lines in MYMNUINI.ADD.
  390.  
  391.    MYKEYS.E must be created or modified.  Add the lines in MYKEYS.ADD.
  392.  
  393.    MYKEYSET.E must be created or modified.  Add the lines in MYKEYSET.ADD.
  394.  
  395.    MYSTUFF.E must be created or modified.   Add the lines in MYSTUFF.ADD.
  396.  
  397.  
  398. Compiling EPM:
  399. ~~~~~~~~~~~~~
  400.    Make sure your custom files mycnf.e, mymnuini.e, mykeys.e, mykeyset.e,
  401.    mystuff.e and the epmtex files tex.e, texkeys.e and texenv.e are in 
  402.    your EPMPATH and compile tex.e, epm.e, and extra.e.
  403.  
  404.    ie.
  405.         etpm epm
  406.         etpm extra  (not necessary if you are using EPM 6.0 or above)
  407.         etpm tex
  408.  
  409.    Fire up EPM and you should see the EPMTeX 2.0 menu support added to 
  410.    the menu bar. Enjoy!
  411.  
  412.