home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / pmcstex.zip / install / pmCSTeX.emxdoc (.txt) < prev    next >
LaTeX Document  |  2000-04-16  |  86KB  |  2,007 lines

  1. @title pmCSTeX for EPM
  2. @if false
  3. ***********************************************************
  4.   This is pmCSTeX.emxdoc, version 16. 4. 2000
  5.   Documentation to the "pmCSTeX for EPM" package, see 
  6.     http://www.sci.muni.cz/~mikulik/os2/pmCSTeX.html
  7.   or pmcstex.zip on hobbes, leo and CTAN archives.
  8.   Package pmCSTeX for EPM.
  9.   Copyright  1996  Petr Mikulik
  10.   -----------------------------
  11.   Package license: free-latex     distributed under the same terms as LaTeX
  12.   This program can be redistributed and/or modified under the terms
  13.   of the LaTeX Project Public License Distributed from CTAN
  14.   archives in directory macros/latex/base/lppl.txt; either
  15.   version 1 of the License, or any later version.
  16.   License meaning in short: use and distribution permitted, like any 
  17.   freeware. Package must be distributed together with the source code. 
  18.   Reuse of the source code or any part of it is allowed. Any changes or
  19.   enhancement to this package must involve a change of name unless these
  20.   changes are accepted by the author. You are welcome to submit your 
  21.   bugfixes, updates or new features.
  22.     Because the program is licensed free of charge, there is no warranty 
  23.   for any of its component. You are responsible for any software, hardware, 
  24.   human or nature disaster resulting from installing and using of this 
  25.   package.
  26.   Author's address:
  27.   -----------------
  28.   Petr Mikul
  29.   Department of Solid State Physics 
  30.     and Laboratory of Thin Films and Nanostructures
  31.   Faculty of Science
  32.   Kotlarska 2 (Kotl\'a\v rsk\'a 2)
  33.   Masaryk University
  34.   Brno
  35.   Czech Republic
  36.   mikulik@physics.muni.cz
  37.   http://www.sci.muni.cz/~mikulik/
  38. ***********************************************************
  39. @endif
  40. @format tty .exe .com .bat .awk .inf .cmd config.sys autoexec.bat .tex .sty .aux
  41. @if false
  42. @format bold TeX LaTeX pmCSTeX CSTeX emTeX em(TeX) (La)TeX 
  43. @endif
  44. @format bold comp.os.os2.announce
  45. @format tty pm.zip unzip.exe vi config.sys ltx_inf.rme LaTeX2e.INF LaTeX2e.NDX
  46. @format tty READNDX CTINDX \batchmode dvipm dvipm.exe dvipm.cnf lj.cnf p6l.cnf 
  47. @format tty dvips stdconst.e epmmac.zip latex.cmd tex386 .log plain.cmd cslatex.cmd
  48. @format tty LaTeX.cmd csLaTeX.cmd
  49. @format tty csplain.cmd cslatex209.cmd .e b.tex .dvi .ps dvihplj 
  50. @format tty psview psview.cmd psview.bat gs312.ps psview.ps ps_view.ps gs.exe gsos2.exe
  51. @format tty emacs  pmgraf e-ex.CS e-ex.NCS dvips.cnf kbdvio32.dll
  52. @format tty PATH LIBPATH DPATH BOOKSHELF HELP \UTILS
  53. @format tty .h .cpp .c gvpm .cls .dtx .latex  pm4EPM Czech.E Czech_PM.E
  54. @format tty MyCNF.e MyCNF.ex \APPS\EPM\MyCNF.e sampactn.e sampactn.ex
  55. @format tty MYCNF.SMP EPMCFG.SMP CKEYS.E
  56. @format tty EMTEXOPT XFree86 Xfig TeXcad Qfig PageDraw \EMTEX\BOOK \EMTEX\DOC
  57. @format tty \begin{equation} \begin{eqnarray} \begin{align}
  58. @format tty \end{equation} \end{eqnarray} \end{align}
  59. @format tty \begin{equation*} \begin{eqnarray*} \begin{align*}
  60. @format tty \end{equation*} \end{eqnarray*} \end{align*}
  61. @format tty US.dct UK.dct FR.dct UK.adl US.dic UK.dic GR.dic CZ.dic
  62. @format tty FR.adl FR.dic francais.dic  CZ.DIC SK.DIC
  63. @format tty PM_DICTIONARIES EPM_DICTIONARIES
  64. @format tty BibTeX MakeIndex csBibTeX csMakeIndex
  65. @format tty pmmerge.dll keyboard.dcp lexam.adl EPMPATH
  66. @format tty dvi-out2 dvi-out2.exe vlnka2.exe %EMTEX%\bin csdvips.cmd
  67. @format tty \OS2\APPS \APPS\EPM\CSTeX \APPS\EPM\CSTEX \APPS\EPM
  68. @format tty F:\OS2\APPS E:\APPS\EPM\CSTeX E:\APPS\EPM\CSTEX E:\APPS\EPM
  69. @format tty light_magenta TEX_EXTENSIONS TEX_FILETYPES
  70. @format tty AltP4TeX.e AltP4TeX.ex assist.e assist.ex
  71. @format tty tags.e tags.ex TeXtags.e TeXtags.ex epm.ex EPM.ex epm.e EPM.e
  72. @format tty stdkeys.e stdprocs.e EPMMAC EPMGCNF.SMB
  73. @format tty *.aux *.log *.dlg *.dvi *.toc *.lot *.lof *.blg 
  74. @format tty *.idx *.ind *.glo *.gls *.hp *.mfj *.pri *.bak
  75. @format tty pmCSTeX.zip  pm_erx.zip l2e_ndx.zip pm_bins.zip
  76. @format tty pm4EPM.e pm4EPM.ex CSTeX.e CSTeX.ex pm_keys.e pm_keys.ex
  77. @format tty pm_hilit.zip gpatch
  78. @format tty example.tex inc.tex pmTeXit.cmd CSTeX_.e CSTeX_.ex
  79. @format tty Profile.erx MyKeys.E cstocs.exe cs2cs.exe cs2cs os2.zip
  80. @format tty actions.lst pmCSTeX.INF pmCSTeX.inf pmCSTeX.src pmCSTeX.emxdoc
  81. @format tty CSTeX.* Czech_PM.zip
  82. @if false
  83. ***********************************************************
  84. @endif
  85. @h1 Introduction
  86.  Welcome to @bf{pmCSTeX for EPM}, version 16. 4. 2000.
  87. @minitoc
  88. @h2 Abstract
  89.  @bf{pmCSTeX for EPM} is a macro package for the OS/2 editor EPM.  It adds CSTeX
  90.  menu into the EPM's menu, hotkeys as well as some buttons on the EPM toolbar,
  91.  allowing many of (em)TeX-related actions (TeXing, dvi-previewing, dvipsing,
  92.  BibTeXing...)  to be easily accessed.
  93.  The aim of this work was the implementation of a pleasant emTeX menu system for
  94.  OS/2.  Editor EPM has been chosen since it provides wonderful programming
  95.  capabilities, and, what it is the most important for the Czech users, there is
  96.  a programmable Czech keyboard implemented by Z. Wagner (you can get it
  97.  anonymously from ftp.icpf.cas.cz).  (It should be noted that the keyboard that
  98.  IBM includes in Warp is nearly unusable for programmers, who mostly prefer a
  99.  reasonable combination of the US and Czech keyboard layouts, and not the
  100.  standard Czech typing machine layout.  It is really bad that IBM does not
  101.  provide (nor in Merlin!) a configurable keyboard driver or the source code for
  102.  pmmerge.dll and keyboard.dcp).
  103.  This package is called @bf{pmCSTeX} since it is related to the CSTeX
  104.  distribution of TeX and because it was worked out by me (@bf{pm}).  CSTeX
  105.  (Czech and Slovak TeX) is being released since 1993 and it is based on the TeX
  106.  implementation by Eberhard Mattes (the famous emTeX).  In addition to the
  107.  standard emTeX distribution, the CSTeX distribution contains styles and some
  108.  programs that support TeX typesetting in the Czech and Slovak languages.  CSTeX
  109.  includes an installation program (which is missing in emTeX) and a very
  110.  pleasant menu system for DOS. Nowadays, CSTeX covers Czech specials for unixes
  111.  as well.
  112.  @bf{The pmCSTeX package does not require CSTeX installation; you can use it
  113.  with any (em)TeX distribution.}
  114.  @bf{Note:} The coincidence of the abbreviation of my name and the abbreviation
  115.  of the Presentation Manager is just accidental.  Unfortunately, IBM does not
  116.  pay me any royalties.  Thus even this package is free, you are welcome to send
  117.  me donations :-)
  118.  Joking...  postcards are welcome, but sending a short e-mail is easier and more
  119.  rapid.
  120. @if false
  121. Statistics: till 11. 11. 1997, I have got a lot of e-mails, and one 
  122. postcard. Thank You!
  123. @endif
  124. @h2 Motivation
  125.  Working on the @tt{pmCSTeX for EPM}, the author was motivated by the following
  126.  packages:
  127. @itemize
  128. @item 
  129.   @tt{CSTeX MNU for DOS}: TeX menu system for DOS, included in the CSTeX 
  130.   distribution. Author: Petr Ol
  131. @item 
  132.   @tt{TeXshell}: Turbo Vision TeX developing system (for DOS and DOS window in 
  133.    OS/2). I liked it very much (I like Borland-like environments, on-line help 
  134.    etc.), it is programmable in a wonderful way. However, it's just DOS and it 
  135.    has many disadvantages coming from the Turbo Vision library: it has 64KB limit 
  136.    on file sizes, it crashes from time to time (in my OS/2 window), and there is 
  137.    no "Undo" function. 
  138.    Author: Juergen Schlegelmilch
  139. @item 
  140.   @tt{EPMTeX}: TeX menu system for editor EPM. Good, but it does not
  141.   fulfilled my high expectations I got accustomed to in TeXshell (late 1995), e.g. 
  142.   it always appended the Master file at the command line. 
  143.   I accepted its First line syntax (Master:, Format: etc.). 
  144.   Authors: Jon Hacker and Rodney Korte
  145. @item 
  146.  @tt{WETeX}: actions and icons are defined for texing, previewing and more for 
  147.  a document.
  148.   Based on WPS and EAs, not Master: notation. I did not use it because of not 
  149.   having enough RAM to work under WPS (I had 12 MB RAM and I preferred @tt{Program 
  150.   Commander/2} @tt{RUNWORKPLACE} replacement). 
  151.   Author: Zden
  152. k Wagner
  153. @item 
  154.   emacs: well, I never used this editor except for very simple editing (I prefer 
  155.   @tt{vi} on unix). However, I was always amazed by its feature "(La)TeX current 
  156.   paragraph"---therefore I implemented it in the pmCSTeX for EPM too. 
  157.   Authors: GNU
  158. @item
  159.   pmgraf: that's my integrated Turbo Vision environment for plotting the 2d and 3d 
  160.   graphs (see my WWW page for more details). The build-in editor (the same as 
  161.   that in the TeXshell) contains the hotkeys for pull-down 
  162.   menus for LaTeX environments and font sizes, and a Greek keyboard.
  163.   Thus I implemented these features into EPM as well. 
  164.   Author: Petr Mikul
  165. @enditemize
  166.  Note:  in 1998, there appeared a package called @tt{epmtfe: EPM TeX Front
  167.  End} (distributed as @tt{epmtfe.zip}) by Walter Schmidt. Unfortunately, the 
  168.  author reeinvets the functionality of @bf{pmCSTeX for EPM}. Even though I 
  169.  immediately asked him not to duplicate the work and make a collaborate 
  170.  together, this has not happened so that nowadays you may find both our packages
  171.  on the net.  In my humble opinion, I still believe that my @bf{pmCSTeX} is
  172.  superiour to @tt{epmtfe}, profiting from its two-year advance and writing my
  173.  thesis as well as many other documents with it.
  174. @h2 License
  175. @label License
  176. @label license
  177.  @bf{Package pmCSTeX for EPM.} @break
  178.  @bf{Copyright  1996  Petr Mikulik} @break
  179.  @bf{___________________________} @break
  180.  @bf{Package license: free-latex     distributed under the same terms as LaTeX}
  181.  This program can be redistributed and/or modified under the terms of the LaTeX
  182.  Project Public License Distributed from CTAN archives in directory
  183.  macros/latex/base/lppl.txt; either version 1 of the License, or any later
  184.  version.
  185.  License meaning in short:  use and distribution permitted, like any freeware.
  186.  Package must be distributed together with the source code.  Reuse of the source
  187.  code or any part of it is allowed.  Any changes or enhancement to this package
  188.  must involve a change of name unless these changes are accepted by the author.
  189.  You are welcome to submit your bugfixes, updates or new features.
  190.  Because the program is licensed free of charge, there is no warranty for any of
  191.  its component.  You are responsible for any software, hardware, human or nature
  192.  disaster resulting from installing and using of this package.  I am not
  193.  responsible for any of your problem --- I am not EPM programmer, I'm physicist.
  194. @h2 Author
  195.  @bf{Petr Mikul
  196.  Address:
  197.  Department of Solid State Physics, and Laboratory of Thin Films and
  198.  Nanostructures, Faculty of Science, Masaryk University, Kotlarska 2, 611 37
  199.  Brno, Czech Republic
  200.  Katedra fyziky pevn
  201. ze a Laborato
  202.  tenk
  203. ch vrstev a nanostruktur,
  204. rodov
  205.  fakulta, Masarykova univerzita, Kotl
  206.  2, 611 37 Brno
  207.   e-mail: @tt{mikulik@physics.muni.cz}
  208.   URL: @tt{http://www.sci.muni.cz/~mikulik/}
  209. @h2 Download
  210.  Homepage of @bf{pmCSTeX for EPM} is
  211. @verbatim
  212.         http://www.sci.muni.cz/~mikulik/os2/pmCSTeX.html
  213. @endverbatim
  214.  @bf{pmCSTeX for EPM} is available on @tt{hobbes.nmsu.edu} (directory
  215.  @tt{/pub/os2/apps/editors/epm}), on @tt{ftp.leo.org} (directory
  216.  @tt{pub/comp/os/os2/emTeX/contrib}) and on @tt{CTAN} mirrors (directory
  217.  @tt{CTAN/systems/os2/pmcstex}).  Online documentation and the up-to-date bug 
  218.  fix list (if needed) is available on my WWW page.
  219.  Further, for Czech/Slovak users only: @bf{pmCSTeX for EPM} is included in my
  220.  os2.zip modul in the CSTeX distribution, see 
  221.  @tt{http://math.feld.cvut.cz/olsak/cstex/}.
  222. @if false
  223. ***********************************************************
  224. @endif
  225. @h1 Installation
  226. @label Installation
  227.  The installation instructions are described in the subsections.
  228.  This package was developed and tested on EPM 6.03 and EPM 6.03b.  Get the
  229.  latest version of EPM if you have an older one, i.e.  EPM 5.51 shipped with
  230.  OS/2 Warp 3.0.  OS/2 Warp 4.0 (Merlin) ships with EPM 6.03b; however, for
  231.  compiling the macros yourself you need the whole EPM distribution from the Net.
  232. @ipfminitoc
  233. @h2 Information for Warp 3.0 users
  234. @label Installation on Warp 3.0
  235.  Get the EPM 6.03b (or later) from the Net and install it into the directory
  236.  @tt{\APPS\EPM} (or choose another directory if you like, but then change all 
  237.  the following information accordingly).
  238. @h2 Information for Merlin users
  239. @label Installation on Warp 4.0
  240. EPM 6.03b is a part of the @bf{OS/2 Warp 4.0 (Merlin)}. This operating 
  241. system ships a localized version of EPM, which consists of the files
  242.   @tt{\OS2\APPS\*epm*}, 
  243.   @tt{\OS2\APPS\DLL\epm*}, @tt{\OS2\APPS\DLL\etk*} and 
  244.   @tt{\OS2\HELP\EPM*} 
  245. (at least in my Merlin CZ it is like that). 
  246.  Consequently, you have these possibilities of installing and running EPM:
  247.  1. Use the shipped EPM.  Install pmCSTeX as explained further (into
  248.  @tt{\APPS\EPM\CSTeX}), but do not forget to keep EPMPATH pointing also to the
  249.  \OS2\APPS directory @tt{(SET EPMPATH=...;E:\OS2\APPS)}.  Then look which files
  250.  in the directory \APPS\EPM\CSTeX are found before those of the same name in the
  251.  directory \OS2\APPS (actions.lst, for instance).
  252.  2. Use the shipped EPM, but move it into the directory @tt{\APPS\EPM} in order
  253.  to avoid the confusion of having several files of the same name in different
  254.  directories on the hard disk:  Create the directory @tt{\APPS\EPM}.  Move all
  255.  files @tt{\OS2\APPS\*epm*} and @tt{\OS2\APPS\DLL\epm*}, @tt{\OS2\APPS\DLL\etk*}
  256.  and @tt{\OS2\HELP\EPM*} to @tt{\APPS\EPM}.  Then install pmCSTeX as explained
  257.  further.
  258.  3. Let the shipped localized EPM in its @tt{\OS2\APPS} directories.  Install
  259.  the EPM from the Net (this is a US version) into @tt{\APPS\EPM}, thus you will
  260.  get the whole documentation, the sources for all macros etc.  Finally, install
  261.  pmCSTeX as explained further.  Any time, you will be able to start the
  262.  localized EPM from the command line @tt{\OS2\APPS\epm.exe} or from an
  263.  associated icon.
  264.  I use the method 3.
  265. @h2 Upgrading pmCSTeX for EPM
  266. @label Upgrading pmCSTeX
  267.  Upgrading pmCSTeX from the release 1996 requires complete 
  268.  reinstallation (but nobody is still using this version I hope). 
  269.  If you have a working configuration from 1997 or later, then instead of the
  270.  full installation make the upgrade discussed in this section.  Replace the old
  271.  files by their current version, or read the documentation as mentioned below:
  272. @itemize
  273. @item
  274.  Updated EPM macros: CSTeX.e, CSTeX.ex, pm4EPM.e, pm4EPM.ex, 
  275.  pm_keys.e, pm_keys.ex, Profile.erx
  276. @item
  277.  Updated documentation: pmCSTeX.INF, pmCSTeX.emxdoc
  278. @item
  279.  MyCNF.e and MyCNF.ex have been taken away from the <=1997 releases (its
  280.  @tt{defload} routine for @hpt{syntax highlighting} has been moved to pm_keys.e;
  281.  thus also @tt{'link MyCNF'} has been taken away from the Profile.erx
  282. @item
  283.  @hpt{Installation of advanced macros} with many additions for fine TeX et al.
  284.  files writing has been newly written.  Its corresponding macro files are in the
  285.  directory @tt{install\advanced}
  286. @item
  287.  There are no new changes to config.sys
  288. @item
  289.  LaTeX2e.INF of the version 1.6 is available from the directory
  290.  @tt{install\l2e_ndx}, and LaTeX2e.NDX has been updated as well
  291. @item
  292.  Updated sampactn.e / sampactn.ex (see the reference to 29. 12. 1997 in
  293.  @hpt{History})
  294. @item
  295.  Please move all files from @tt{install\dvips} directory into
  296.  @tt{\EMTEX\data\dvips} directory.  Then you can easily use @hpt{Double-side or
  297.  slot 2 printing from dvips}
  298. @enditemize
  299.  Please, see the @hpt{History} of pmCSTeX to track for the changes I made in
  300.  pmCSTeX since your current version.
  301. @h2 Installation of pmCSTeX for EPM
  302. @label Installation of pmCSTeX
  303.  I hope you already unzip-ed pmCSTeX.zip in an empty directory.  Let us suppose
  304.  you correctly installed EPM to the directory E:\APPS\EPM.  Thus make directory
  305.  E:\APPS\EPM\CSTeX (note:  use your drive letters; I have applications on drive
  306.  @tt{E:} and the operating system on drive @tt{F:}).  Then
  307. @enumerate
  308. @item 
  309.  Move all files (not directories!)  from the @tt{install} directory into
  310.  @tt{\APPS\EPM\CSTeX}.  Since you cannot move this pmCSTeX.INF while reading it,
  311.  please exit it before the movement and then reload it back from
  312.  @tt{\APPS\EPM\CSTeX}.
  313. @item 
  314.  Move @tt{CSTeX.*} from one of the @tt{install\e-ex} directories into
  315.  @tt{\APPS\EPM\CSTeX}:  the users of the CSTeX distribution use the directory
  316.  e-ex.CS, all other world uses e-ex.NCS.  [Note:  @tt{install\e-ex.CS\CSTeX.e}
  317.  is compiled with the option @tt{CSTEX_CSTEX = 1}, and
  318.  @tt{install\e-ex.NCS\CSTeX.e} is compiled with the option @tt{CSTEX_CSTEX = 0},
  319.  see the section about the macro @hpt{recompiling}.)
  320. @item 
  321.  Move @tt{install\e-ex.CS\Profile.erx} or @tt{install\e-ex.NCS\Profile.erx} into
  322.  @tt{\APPS\EPM} (this is an "@tt{autoexec.bat}" for each file loaded into EPM),
  323.  but please take care when moving it:  you may already have this file which you
  324.  may have already modified---in that case only modify what is missing in your
  325.  Profile.erx.  At least you should add and @tt{'link pm4epm'} and @tt{'link
  326.  CSTeX'}, and something more for @hpt{pm_keys}, Czech keyboard, syntax
  327.  highliting, etc.
  328. @item 
  329.  Switch on the EPM option @tt{Settings/Misc/Rexx profile} so that EPM reads
  330.  Profile.erx for each file being loaded.
  331. @item
  332.  CSTeX distribution users should install the Czech keyboard driver for EPM
  333.  (implemented by Z. Wagner) if they are not satisfied with the typing machine
  334.  layout.  If you already use the original czech.e and czech.ex, you have to
  335.  replace it by the version compatible with pmCSTeX -- see also @hpt{Czech.E}.
  336.  Therefore backup the original czech.e and czech.ex and replace them by moving
  337.  the files @tt{install\e-ex.CS\czech.ex} and @tt{install\e-ex.CS\czech_PM.zip}
  338.  into the directory \APPS\EPM\CSTeX.
  339. @item
  340.  Move the file actions.lst from the directory @tt{install\apps-epm} into
  341.  @tt{\APPS\EPM}.  Be aware again---thi file can exist on your system, so:  add
  342.  only the changes of actions.lst, i.e.  add the lines @tt{CSTeX} and
  343.  @tt{pm4EPM}.
  344. @item 
  345.  Move all files from @tt{install\cmd.CS} or @tt{install\cmd.NCS} into your
  346.  @tt{\EMTEX\bin} directory.  You must replace these files if you had the
  347.  previous version of pmCSTeX (because of introducing the keyword EMTEXOPT),
  348.  except for the @tt{*dvips.cmd} files, that you may have modified yourself
  349.  (sheet alignment can be introduced either here or in the dvips.cnf file).
  350. @item 
  351.  Please move all files from @tt{install\dvips} directory into
  352.  @tt{\EMTEX\data\dvips} directory.  Then you can easily use @hpt{Double-side or
  353.  slot 2 printing from dvips}.
  354. @item 
  355.  CSTeX-distribution users should move the binary files
  356.  @tt{install\exe.CS\vlnka2.exe} and @tt{install\exe.CS\dvi-out2.exe} into
  357.  @tt{\EMTEX\bin} directory.  The original Turbo Pascal sources were compiled by
  358.  Speed Pascal for OS/2, so that kbdvio32.dll must be present somewhere on your
  359.  LIBPATH (I prefer the directory \UTILS).
  360.  If you are yet not using the @tt{cs2cs} convertor, then copy it somewhere on
  361.  your PATH (I have it in the directory @tt{\UTILS}).  The full package of this
  362.  programs, accompanied by the documentation and the source code, is available
  363.  from the author's (Ferdinand Prantl, Jr.)  ftp site,
  364.  @tt{ftp://aip1.fsv.cvut.cz/sys/pub/users/ferdi/cs2cs.zip}.
  365. @endenumerate
  366.  Now, edit config.sys and change it like (use the letters of the partitions
  367.  according to your hard disk, my system drive is @tt{F:}):
  368. @samplecode
  369.         SET EPMPATH=E:\APPS\EPM;E:\APPS\EPM\CSTeX;...;F:\OS2\APPS;...
  370. @endsamplecode
  371. Further, 
  372. @samplecode
  373.         SET EMTEXOPT=/mt65000 /mp65000
  374. @endsamplecode
  375.  (this change together with the update of .cmd files is dated 19.5.1996, see
  376.  @hpt{History}).
  377.  Add the path to your dictionary files US.dic, UK.dic, FR.dic, GR.dic etc...
  378.  (please, read about the @hpt{spell checker} for more details where to get these
  379.  files and how to ensure that they are used for both EPM and IBM Works):
  380. @samplecode
  381.         SET EPM_DICTIONARIES=e:\apps\epm\Dictionaries
  382. @endsamplecode
  383.  [Note:  it's now more then one year after the Czech IBM released their
  384.  "localized" version of Warp, but they are still not able to produce CZ.dic :-((
  385.  This and many other small things make really bad impression on the wonderful
  386.  Warp.)
  387.  I'm quite sure you want the on-line hypertext help about the LaTeX2e commands.
  388.  Thus move the files from the directory @tt{l2e_ndx} into the directory
  389.  @tt{%EMTEXDIR%\BOOK\ENGLISH} (like @tt{E:\EMTEX\BOOK\ENGLISH}).  You can read
  390.  @tt{@CTINDX} (in Czech) or @tt{@READNDX} (in English) how I have created
  391.  LaTeX2e.INF and LaTeX2e.NDX.  If you follow the instructions there you find
  392.  that you have to modify your config.sys:
  393. @samplecode
  394.         SET BOOKSHELF=..;E:\EMTEX\BOOK\ENGLISH;... 
  395.         SET EPMPATH=...;E:\EMTEX\BOOK\ENGLISH;...
  396.         SET HELPNDX=...+LaTeX2e.NDX
  397. @endsamplecode
  398.  Now reboot your computer. When it is done, go to @tt{E:\APPS\EPM\CSTeX} and 
  399.  type
  400. @verbatim
  401.         start epm 
  402. @endverbatim
  403.  A new menu item CSTeX should appear on the menu bar.  If not, something was
  404.  wrong and you should repair it (have a good chance!).
  405.  Now install the CSTeX toolbar.  Go to @tt{File/Settings/Toolbars}, use "Import"
  406.  file @tt{E:\APPS\EPM\CSTeX\CSTeX.bar}, name it @bf{CSTeX toolbar} and then
  407.  "Make current".  Admire it.  If you are not satisfied, change the toolbar as
  408.  you wish (I encourage you to remove it the next day after well sleeping, since
  409.  my toolbar is really good :-)) ...  but I accept that you may like another
  410.  one).
  411.  Please, now verify that you can run from the command line commands latex
  412.  (=latex2e), plaintex, latex209 etc.  (CSTeX-distribution users should use
  413.  cslatex, csplain, cslatex209 etc.).  You should have installed emTeX in such a
  414.  way, that you have latex.cmd, plain.cmd,...  (or latex.cmd = cslatex.cmd,
  415.  csplain.cmd, cslatex209.cmd,...)  in @tt{%EMTEXDIR%\bin}, see above.  So you
  416.  should be able to recompile any LaTeX document typing the command (in an OS/2
  417.  window)
  418. @samplecode
  419.         latex _any_latex_document_.tex
  420. @endsamplecode
  421.  You should be able to start the previewer by 
  422. @samplecode
  423.         start dvipm @dvipm.cnf _any_tex_document_.dvi
  424. @endsamplecode
  425.  (I supposed you copied lj.cnf or p6l.cnf or whatever resolution you want to the
  426.  file dvipm.cnf).  If the above does not work, configure emTeX properly.  You
  427.  find valuable information in files @tt{\EMTEX\BOOK} and @tt{\EMTEX\DOC}.
  428.  Check the last lines of @tt{%EMTEXDIR%\bin\maketexp.cmd} file if you want that
  429.  dvips generates fonts automatically (dvipm does that par definion).
  430.  If you want to run (La)TeX over your document from the command line (without
  431.  launching EPM), you can also use @tt{pmTeXit.cmd _your_file_.tex}.  However,
  432.  pmTeXit.cmd knows only about the @tt{Format:} keyword, so it is really better
  433.  to run TeXing from the EPM, namely if you are using AMS-LaTeX and the
  434.  @tt{Emtexopt:} keyword.  See @hpt{to do}.
  435.  Now you can customize your EPM:  when installing EPM for my friends, I usually
  436.  delete @tt{\OS2\epm.ini} and copy them my @tt{install\apps-epm\epm.ini} into
  437.  the directory \APPS\EPM---you can do that too it if you like.  You can play
  438.  with the values in File/Settings/Misc., and read their documentation (I think
  439.  you must have "REXX support" on; and I further prefer "Stream mode editing").
  440.  You may or may not want the automatic @hpt{syntax highlighting}.
  441.  Read @hpt{Czech.E} if you want to use the Czech keyboard in pmCSTeX or go to
  442.  @hpt{Tutorial}.  Please don't forget to read about the @hpt{syntax} of the
  443.  keywords on the first line of the Master file.
  444. @h2 Installing psview.cmd
  445.  psview package is in the subdirectory psview.  This is a nice small tool for
  446.  rapid PostScript file visualisation.  It is a keyboard-driven front-end to
  447.  GhostScript (not mouseable as gvpm).  Great for small PostScript files or for
  448.  writing your own commands.
  449.  Installation:  unzip the package.  Read and execute @tt{ReadMe}, which should
  450.  result in the following:
  451. @itemize
  452. @item 
  453.     *.ps (i.e. gs312.ps and ps_view.ps) are in your GhostScript directory 
  454.     (e.g. @tt{E:\GS\gs4.03})
  455. @item
  456.     *.cmd (at least psview.cmd which is used by pmCSTeX for EPM),
  457.     must be somewhere along your PATH
  458. @item 
  459.     finally insure that psview.cmd and gs.exe (=gsos2.exe) are on PATH; 
  460.     config.sys have sth. like (see the GS documentation)
  461.         @tt{SET GS_LIB=E:\GS\gs4.03;E:\GS\gs4.03\fonts;.\}
  462.     Note: there is already GhostScript 5.10 in December 1997.
  463. @enditemize
  464. @h2 Syntax highlighting
  465. @label syntax highlighting
  466.  There are people that do like syntax highlighting (yes, I do) and those they do
  467.  not like this colour circus.  This section deals with the installation of this
  468.  feature.  If you have copied all files and @hpt{pm_keys} from the pmCSTeX
  469.  distribution without changes, then it should work.  Just try to download any .h
  470.  or .cpp or .tex or ...  file into EPM.
  471.  I prefer the syntax highlighting as usually used in Turbo Vision---@em{yellow
  472.  letters on blue background}.  @bf{If you set those colours in the Settings of
  473.  EPM}, then you may find worth to copy the files from the directory
  474.  @tt{pm_hilit} to the directory \APPS\EPM to adjust the appropriate highlighting
  475.  files for this colour scheme.  Moreover, syntax highlighting for .log files
  476.  (created by TeX) are supported by the @tt{epmkwds.log} file, so as the
  477.  PostScript files (this is surely not complete; don't you have a list of all the
  478.  postscript commands?)  and @tt{awk} files (GNU @tt{awk} is a great and simple
  479.  C/REXX-like scripting language).  Please don't forget to backup the original
  480.  files @tt{epmkwds.*} files before you overwrite them.  Please see also @hpt{I
  481.  cannot see \begin} FAQ.
  482.  Now the installation (or the deinstallation if you proceed in the reversed
  483.  order) of the colour highliting:
  484.  In order to apply the colours into files listed on the command line after EPM
  485.  has been started, add the following line to your Profile.erx file (done in its
  486.  supplied version):
  487. @verbatim
  488.         'cstex_highlight_all S'
  489. @endverbatim
  490.  To let the files loaded from within EPM (e.g.  via menu) to be coloured, put
  491.  the following code into any @tt{*.e} file and compile it---I have it in
  492.  pm_keys.e (see @hpt{pm_keys}):
  493. @verbatim
  494.         defload
  495.         'a_togl_hilit S'
  496. @endverbatim
  497.  and recompile it.
  498.  Files are highlighted according to their extension listed in sampactn.e file
  499.  (and loaded from sampactn.ex) according to the colour scheme defined in the
  500.  file like @tt{epmkwds._extension_}.  The file @tt{epmkwds.c} contains the
  501.  syntax of the colouring.  Of course, you should have put the line
  502. @samplecode
  503.         'link sampactn'
  504. @endsamplecode
  505.  into your Profile.erx (also done in the supplied Profile.erx).
  506.  My sampactn.e and sampactn.ex included in the pmCSTeX distribution includes
  507.  also .sty, .cls and .dtx extensions for being TeX-like coloured, and the .log
  508.  file colour, and the fortran @tt{.f} files.  If you want to recompile
  509.  sampactn.e yourself, you need files @tt{english.e, stdconst.e} and
  510.  @tt{menuhelp.h} from epmmac.zip.
  511. @h2 My config.sys
  512. @label my config.sys
  513.  Occasionally problems appear when some global variables in config.sys are
  514.  missing.  Here is my config.sys if you want to have a look:
  515. @samplecode
  516. SET PATH=...;e:\apps\epm;F:\OS2\APPS;e:\emtex\bin;...
  517. SET DPATH=...;e:\apps\epm;F:\OS2\APPS;...
  518. LIBPATH=...;e:\apps\epm;F:\OS2\APPS\DLL;e:\emtex\dll;...
  519. SET BOOKSHELF=...;e:\apps\epm;e:\emtex\book\english;...
  520.    rem Someone prefers german instead of english
  521. SET HELP=...;e:\emtex\help;...
  522. rem ******************** emTeX *********************************
  523. SET EMTEXDRV=E
  524. SET EMTEXDIR=E:\EMTEX
  525. SET TEXINPUT=E:\EMTEX\TEXINPUT!
  526.   rem For plain only; *tex*.cmd scripts redefine this
  527. SET EMTEXOPT=/mt65000 /mp65000
  528.   rem This you MUST have!
  529. SET DVIDRVINPUT=E:\EMTEX\DOC;E:\EMTEX\DOC\ENGLISH
  530. SET DVIDRVFONTS=E:\EMTEX\fonts
  531.   rem In this case, I do not use the recommendation by E. Mattes to use \TEXFONTS directory
  532.   rem I do not like too much directories in the root
  533. SET MFJOBOPT=/3
  534.   rem for using the mf386 version of MetaFont
  535. SET INDEXSTYLE=E:\EMTEX\texinput\latex2e
  536.   rem sth like path for MakeIndex, .ist files?
  537. SET DVIPSHEADERS=E:\EMTEX\data\dvips
  538. SET TEXCONFIG=E:\EMTEX\data\dvips
  539. SET CSBIBALP=E:\EMTEX\data\csbibtex
  540. REM *** EPM
  541. SET EPMPATH=e:\apps\epm;e:\apps\epm\cstex;e:\apps\epm\epmmac;e:\apps\epm\epmmac2;
  542.    e:\emtex\book\english;e:\emtex\book\czech;F:\OS2\APPS
  543. SET HELPNDX=EPMKWHLP.NDX+EMX.NDX+LaTeX2e.NDX
  544. REM *** pmCSTeX for EPM
  545. SET TEXFORMATDEFAULT=latex
  546. SET EPM_DICTIONARIES=e:\apps\epm\Dictionaries\
  547.   rem where are the dictionaries UK.dic, FR.dic, GR.dic etc. located
  548. @endsamplecode
  549.  (Note:  there is @tt{SET EPMPATH=...;F:\opendoc\bin} under Merlin and OpenDoc)
  550. @h2 Spell checking in EPM
  551. @label spell checker
  552.  EPM comes with the US dictionary and synonym file (the EPM found on the Net,
  553.  and the EPM enclosed in the "localized" Czech Merlin).  If you want to proof
  554.  text written in another language, it could be easy if you have BonusPak for
  555.  other languages, because the IBM Works from your BonusPak uses the same
  556.  dictionary files as the EPM.  Thus go to the directory of IBM Works of the
  557.  desired language version on your CD-ROM BonusPak (shipped with OS/2 Warp 3.0)
  558.  and copy @tt{diction.@} file to your hard disc.  Unpack it by the command
  559.  @tt{unpack diction.@} and copy the dictionary files (US.dic, UK.dic,
  560.  francais.dic (I renamed this to FR.dic), GR.dic) to the desired location (I
  561.  prefer @tt{\apps\epm\Dictionaries}).  Then type the dictionary filename into
  562.  EPM Settings/Paths/Dictionary file and rename the default personal dictionary
  563.  lexam.adl to something like UK.adl, FR.adl etc.  There is/was another
  564.  confusion:  some versions of EPM called these files @tt{*.dct}; look at your
  565.  hard disk, and delete it or rename it to @tt{*.dic}.
  566.  Put into your config.sys:
  567. @samplecode
  568.         SET EPM_DICTIONARIES=e:\apps\epm\Dictionaries\
  569. @endsamplecode
  570.  The same dictionary should be set up from the IBM Works settings if you have
  571.  installed this package.
  572.  Then you can use the menu @tt{CSTeX/Spell-Checker} to easily switch between the
  573.  dictionaries of different languages, which saves your time and nerves for doing
  574.  that in File/Settings/Paths/Dictionary Files and Personal Dictionary.  The
  575.  chosen dictionary is used until you exit EPM.  You can make this change
  576.  permanent by entering and closing the Settings.
  577.  Note that your attempt to change the dictionary when Auto-spellcheck is on does
  578.  not change the dictionary.
  579.  Since it seems that there are people that don't have that BonusPak CD, I have
  580.  put some dictionaries somewhere on our ftp server and linked it to my WWW page.
  581.  Or have IBM put it somewhere?  (Well, I was badly surprised that the Czech
  582.  "localized" (!)  version of OS/2 Warp 4.0 Merlin contains only the US (!)
  583.  dictionary, even I complained about that in the beta-testing).
  584. @h2 Installation of advanced macros
  585. @label Installation of advanced macros
  586.  If you are too tired of installing pmCSTeX, you may skip this section and read
  587.  this section later.
  588.  Otherwise, you may install the following features:
  589. @ipfminitoc
  590.  These they are independent of the @tt{CSTeX} macro functionality, and included
  591.  into the pmCSTeX package since they are fine when writing TeX files.
  592.  See also:  @hpt{recompiling EPM}
  593. @h3 TeX-aware paragraph reformatting
  594. @label Alt-P
  595.  The hotkey @tt{Alt-P} is used for reformatting the current paragraph to the
  596.  current margins (see also @tt{Alt-Z} in @hpt{pm_keys}).  However, the default
  597.  reflowing routine is not TeX-aware, i.e.  it breaks lines with comments (text
  598.  after the @tt{%} character) and reformats into lines also the @tt{\begin{sth}
  599.  ... \end{sth}} LaTeX environments.
  600.  I have modified the macros responsible for the reformatting process.  If these
  601.  are installed (see below), then the TeX-aware function is activated when
  602.  editing @tt{*.tex, *.latex, *.sty, *.dtx, *.cls} files, see also the constant
  603.  TEX_EXTENSIONS in @tt{install\advanced\PM_MyCNF.e}).  If no text is marked and
  604.  @tt{Alt-P} is pressed, then the paragraph reflowing stops at the first blank
  605.  line (default) or at line containing:
  606. @itemize
  607. @item
  608.   @tt{%}     --- comment 
  609. @item
  610.   @tt{\begin} --- new environment
  611. @item
  612.   @tt{\end}     --- end of environment
  613. @item
  614.   @tt{\item}     --- new item
  615. @item
  616.   @tt{\label}     --- label
  617. @item
  618.   @tt{\[, \], \(, \)} --- math environments
  619. @enditemize
  620. Notes: 
  621. @enumerate
  622. @item
  623.  For adding another TeX-reflow-stopping keyword (e.g. @tt{$ ... $}), change the 
  624.  @tt{pm_reflow_is_tex_endline} procedure in the source code.
  625. @item
  626.  The usual reflow routine is used when reformatting block mark of text.
  627.  A warning appears in that case. If you wish to modify this routine as well, you 
  628.  are welcome. I never needed that.
  629. @endenumerate
  630. @h- Installation
  631.  There are the following two methods of installing the TeX-aware modifications:
  632. @enumerate
  633. @item
  634.  @bf{Easy installation} which overlays the hotkey @tt{Alt-P} defined in
  635.  epm.ex. To do that you need to put AltP4TeX.ex file somewhere in your EPMPATH 
  636.  and add the statement
  637. @verbatim
  638.         'link AltP4TeX'  /* Paragraph reflow (Alt-P hotkey) is TeX aware */
  639. @endverbatim
  640.  to your Profile.erx.  The source code is in file AltP4TeX.e.  Both files are in
  641.  the directory @tt{pmCSTeX\install\advanced\AltP\easy}.
  642. @item
  643.  @bf{Advanced installation} which requires to @hpt{recompile EPM.ex}. 
  644.  Proceed in the following way:
  645. @itemize
  646. @item
  647.  Save or move EPM.ex to something like @tt{epm_ex.00}
  648. @item
  649.  Go to EPMMAC directory.
  650.  Rename the original stdkeys.e and stdprocs.e to something 
  651.  like @tt{stdkeys_e.00 and stdprocs_e.00}
  652. @item
  653.  Execute command
  654. @verbatim
  655.         gpatch -p0 <AltP-TeX.diff
  656. @endverbatim
  657.  (adjust paths to @hpt{gpatch} and @tt{AltP-TeX.diff} as needed).
  658. @item
  659.  Recompile EPM.e (@tt{etpm epm} or @tt{etpm /v epm})
  660. @enditemize
  661. @endenumerate
  662. @h3 TeX tags
  663. @label TeX tags
  664.  Have you ever used the EPM menu item @tt{View / Tags / Scan current file}?  If
  665.  not, try it when editing a C/C++, Pascal or .cmd file.  It will display list of
  666.  all tags (i.e.  procedures and constants), and allow you to move quickly to
  667.  their definitions.  The support for tags is compiled into epm.ex by including
  668.  tags.e.  You can create a Toolbar item with @tt{Function:  *} and
  669.  @tt{Parameter:  tagscan}.
  670.  The support for TeX-related files is not in the standard EPM.  This has been
  671.  contributed by Vladimir Kisil (@tt{vk@cage.rug.ac.be}) and its function and
  672.  installation is presented below.
  673. @h- TeX files (*.tex, *.latex, *.sty, *.dtx, *.cls)
  674.  Menu @tt{Tags / Scan current file} displays nested list of commands:
  675. @verbatim
  676. \part
  677. \chapter
  678. \section
  679.     \subsection
  680.          \subsection
  681.            \paragraph
  682.            \subparagraph
  683.              \caption
  684.                \label
  685. @endverbatim
  686. @h- TeX log files (*.log)
  687. Menu @tt{Tags / Scan current file} displays list of messages:
  688. @verbatim
  689. ! TeX Errors
  690.     LaTeX (Font) Warning
  691.         Overflow
  692. @endverbatim
  693. @h- BibTeX files (*.bib)
  694. Menu @tt{Tags / Scan current file} displays list of BibTeX entries:
  695. @verbatim
  696.  @ARTICLE
  697.  @BOOK
  698.  @PROCEEDINGS
  699.  etc.
  700. @endverbatim
  701. @h- Installation
  702.  There are two possible ways of installing tags with TeX file support.  Both
  703.  come out from the same TeXtags.e file which is a modified version of tags.e.
  704.  Note that it has been modified in accordance with suggestions in its beginning
  705.  thus you will not lose any functionality for other types of files (C, C++, E,
  706.  REXX, Pascal, etc.)  written in tags.e.  The modified version is in the
  707.  directory @tt{pmCSTeX\install\advanced\tags}.
  708. @enumerate
  709. @item
  710.  @bf{Easy installation} which overlays the tag scan definition in epm.ex.  Link
  711.  precompiled TeXtags.ex file over existing EPM.ex file.  To do that you need to
  712.  put TeXtags.ex file in your EPM directory and add a statement
  713. @verbatim
  714.         'link TeXtags'
  715. @endverbatim
  716.  to your Profile.erx.
  717. @item
  718.  @bf{Advanced installation} which requires to @hpt{recompile EPM.ex}. 
  719.  Proceed in the following way:
  720. @itemize
  721. @item
  722.   Save or move EPM.ex to something like @tt{epm_ex.00}
  723. @item
  724.   Go to EPMMAC directory.
  725.   Rename the original tags.e to something like @tt{tags_e.00}
  726. @item
  727.   Execute command
  728. @verbatim
  729.         gpatch -p0 <tags-tex.diff
  730. @endverbatim
  731.   (adjust paths to @hpt{gpatch} and @tt{tags-tex.diff} as needed).
  732. @item
  733.  Recompile EPM.e (@tt{etpm epm} or @tt{etpm /v epm})
  734. @enditemize
  735. @endenumerate
  736. @h3 Generalized Ctrl-[, Ctrl-] for TeX
  737. @label Ctrl-[ and Ctrl-]
  738.  Currently, hotkeys @tt{ Ctrl-[} and @tt{Ctrl-]} let the cursor jump between
  739.  parenthesis.  The following patch generalizes these hotkeys for searching the
  740.  corresponding keyword in TeX constructs in TeX files:
  741. @verbatim
  742.         \if.. \else \fi
  743.         \begin.. \end..
  744.         \begin{ \end{     or  \begin{..} \end{..}   (depends on COMPILE IF choice)
  745.         \left \right
  746. @endverbatim
  747.  Technical note: routine @tt{passist()} in assist.e has been patched.
  748. @h- Installation:
  749.  The installation requires to recompile @hpt{recompile EPM.ex}. 
  750.  Proceed in the following way:
  751. @itemize
  752. @item
  753.   Save or move EPM.ex to something like @tt{epm_ex.00}
  754. @item
  755.   Go to EPMMAC directory.
  756.   Rename the original asssist.e to something like @tt{assist_e.00}
  757. @item
  758.   Execute command
  759. @verbatim
  760.         gpatch -p0 <assist-tex.diff
  761. @endverbatim
  762.   (adjust paths to @hpt{gpatch} and @tt{assist-tex.diff} as needed)
  763. @item
  764.  Recompile EPM.e (@tt{etpm epm} or @tt{etpm /v epm}), move epm.ex to its 
  765.  appropriate location.
  766. @enditemize
  767. @h3 Making backup copies of files before save
  768. @label making backup copies of files before save
  769. @label Making backup copies of files before save
  770.  EPM can make a backup copy of a file to be saved. This requires to recompile 
  771.  EPM.e with @tt{BACKUP_PATH} defined in your MyCNF.e. If this variable is
  772. @verbatim
  773.     BACKUP_PATH='='    
  774. @endverbatim
  775.  then the backup copy is made in the directory of the saved file. Otherwise you 
  776.  can specify unique directory to keep copies of all edited files, e.g.
  777. @verbatim
  778.     BACKUP_PATH='d:\tmp\epm_save'    
  779. @endverbatim
  780.  The original routine denotes the backup file by trailing @tt{$} character. 
  781.  Since this is rather unique (in my opinion), usually editors name that file 
  782.  @tt{.bak} or with trailing @tt{~}). Thus I patched the EPM routines to accept 
  783.  the following:
  784. @enumerate
  785. @item
  786.  Backup file is denoted by trailing @tt{~}.
  787. @item
  788.  Making backup copies can be switched on or off via the command 
  789.  dialog @tt{Ctrl/I} in EPM by the respective command
  790. @verbatim
  791.     backup_enable 1
  792.     backup_enable 0
  793. @endverbatim
  794.  or in Profile.erx via 
  795. @verbatim
  796.     'backup_enable 1'
  797.     'backup_enable 0'
  798. @endverbatim
  799.  Furthermore, backing up can be allowed for file with some specified extensions 
  800.  (files for programming) and not for the other (text or postscript files). 
  801.  Again, in the command dialog of EPM, you can use either of 
  802. @verbatim
  803.    set_backup_extensions ''
  804.    set_backup_extensions 'AWK C CC CPP HTML TEX'
  805. @endverbatim
  806.  or in Profile.erx
  807. @verbatim
  808.    'set_backup_extensions'
  809.    'set_backup_extensions AWK C CC CPP HTML TEX'
  810. @endverbatim
  811.  to allow all files to be backed up or only @tt{.awk}, @tt{.c}, @tt{.cc} et al. 
  812.  The default definition is in stdprocs.e, where you can choose between @tt{''}
  813.  and @tt{TEX_EXTENSIONS ' AWK ASM BIB E F F GP HTM HTML JAVA M PAS'}
  814.  (before recompiling EPM).
  815. @endenumerate
  816. @h- Installation:
  817.  The installation requires to recompile @hpt{recompile EPM.ex}. 
  818.  Proceed in the following way:
  819. @itemize
  820. @item
  821.  Save or move EPM.ex to something like @tt{epm_ex.00}
  822. @item
  823.  Go to EPMMAC directory.
  824.  Here you can save the original versions of @tt{stdprocs.e}, @tt{e3emul.e}, 
  825.  @tt{slnohost.e}, and @tt{saveload.e}.
  826. @item
  827.  Execute command
  828. @verbatim
  829.         gpatch -p0 <backup-files.diff
  830. @endverbatim
  831.  (adjust paths to @hpt{gpatch} and @tt{backup-files.diff} as needed)
  832. @item
  833.  Add the following two lines to your MyCNF.e:
  834. @verbatim
  835. -- backing up files before save?
  836. BACKUP_PATH='='
  837. @endverbatim
  838. @item
  839.  Recompile EPM.e (@tt{etpm epm} or @tt{etpm /v epm}), move new epm.ex to its 
  840.  appropriate location.
  841. @item
  842.  You may add the following to your Profile.erx if you like to change the default 
  843.  behaviour of backing up (otherwise, the default setting are taken):
  844. @verbatim
  845.     backup_enable 1
  846.     set_backup_extensions ''
  847. @endverbatim
  848. @enditemize
  849. @h3 TeX, BibTeX (C, REXX etc.) assistance
  850. @label syntax assistance
  851.  Syntax assistance extended for TeX, in order to save some keystrokes, has been
  852.  contributed by Vladimir Kisil (@tt{vk@cage.rug.ac.be}).  It consists of
  853.  @tt{myassist.e} compiled if @tt{WANT_MY_ASSIST=1} and of some @tt{*.asi} files.
  854.  See the directory @tt{install\advanced\TeXassist} for more details.
  855. @h2 Recompiling EPM
  856. @label Recompiling EPM
  857. @label recompiling EPM
  858. @label recompile EPM.ex
  859. @label recompile EPM
  860.  If you have not yet recompiled EPM macros (EPM.ex) to suit your needs, you may
  861.  find the following notes useful.
  862. @enumerate
  863. @item
  864.  Get @tt{epmmac.zip} from the Net.  Unzip it in e.g.  @tt{\APPS\EPM\EPMMAC}, add
  865.  this directory into EPMPATH in the CONFIG.SYS and reboot.
  866. @item
  867.  Make a back-up copy of EPM.ex (e.g.  @tt{EPM_ex.00}).
  868. @item
  869.  It is possible that after the installation of EPM you will obtain EPM.ex with
  870.  the READ-ONLY attribute set.  In this case the E-compiler ETPM.EXE will not
  871.  overwrite this version of EPM.ex.  The trap is that no error or warning message
  872.  is issued in this case.  So after a "success-seems-to-be" compilation you will
  873.  have still the old EPM.ex with the old functionality.  You should clear
  874.  READ-ONLY attribute of EPM.ex by @tt{attrib} command or just delete it.
  875. @item
  876.  Go to @tt{\APPS\EPM\EPMMAC}.  Read the documentation and FAQ in @tt{read.me}.
  877.  Recompile:  @tt{etpm epm}.  Replace old epm.ex by the compiled version, kill
  878.  all EPM sessions and start EPM with any file to edit.
  879. @item
  880.  If this is your first try of recompiling EPM.ex and you have not read the
  881.  documentation in details you have probably obtained the new EPM with a menu
  882.  very different from the distributed one.  All trick is the definitions in
  883.  MyCNF.e.  You may try to rename my @tt{PM_MyCNF.e} to @tt{MyCNF.e} and
  884.  recompile again.  Otherwise, the configuration EPMGCNF.SMP file rather than
  885.  MYCNF.SMP should be taken for the base for your MyCNF.e file to obtain an
  886.  EPM.ex most close to the distributed one.
  887.  Note:  you can use my configuration file @tt{install\advanced\PM_MyCNF.e}, if
  888.  you rename it to MyCNF.e and copy to the EPMMAC directory.
  889. @item
  890.  Explanation of some constants useful to put in MyCNF.e is listed now:
  891. @itemize
  892. @item
  893.  @bf{Layout of the menu items: }
  894.  The point is @tt{STD_MENU_NAME} constant in MyCNF.e file. Check that your 
  895.  MyCNF.e file contains the following line
  896. @verbatim
  897.         STD_MENU_NAME = 'fevshmnu.e' -- (undef) Use WFEVSH menu style
  898. @endverbatim
  899.  This will produce the usual EPM menu layout.  See @tt{EPM User's guide |
  900.  Changing the default configuration | Summary of configuration constants} for
  901.  more information on @tt{STD_MENU_NAME}.
  902. @item
  903.  If you recompile EPM.ex you may wish to make the highlighting oval for the
  904.  @bf{Find / Replace} dialog more notable than in the default EPM.ex.
  905.  If you like the oval of @bf{Find next error} in pmCSTeX, you may put
  906. @verbatim
  907.         LOCATE_CIRCLE_STYLE  =  4
  908.         LOCATE_CIRCLE_COLOR1 = 13
  909.         LOCATE_CIRCLE_COLOR2 = 13
  910. @endverbatim
  911.  somewhere in you MYCNF.e file. The place inside a statement 
  912. @verbatim
  913.         compile if defined(BLACK)
  914.         ...
  915.         compile endif
  916. @endverbatim
  917.  or the end of MyCNF.e are the most appropriate to do that.  See @tt{EPM User's
  918.  guide}:  @bf{Changing the default configuration | Summary of configuration
  919.  constants} for more information on these constants, or search there for
  920.  @tt{LOCATE_CIRCLE_STYLE} and @tt{MAGENTA} strings.
  921. @item
  922.  Menu items representing the EPM documentation are available if this is defined 
  923.  in MyCNF.e:
  924. @verbatim
  925.         SUPPORT_USERS_GUIDE = 1
  926.         SUPPORT_TECHREF = 1
  927. @endverbatim
  928. @item
  929.  With this option the EPM does not add the eoln char after with the selected 
  930.  word (Alt-W): 
  931. @verbatim
  932.         WORD_MARK_TYPE = 'CHAR'
  933. @endverbatim
  934. @item
  935.  Bug fix: please correct the minor bug in file @tt{load.e}. The wrong line
  936. @verbatim
  937.         compile if defined(TEX_FILE_TYPES)
  938. @endverbatim
  939.  should be corrected to
  940. @verbatim
  941.         compile if defined(TEX_FILETYPES)
  942. @endverbatim
  943. @item
  944.  For various functions (both constants should keep the same string):
  945. @verbatim
  946.         TEX_FILETYPES  = 'TEX LATEX STY CLS DTX'
  947.         TEX_EXTENSIONS = 'TEX LATEX STY CLS DTX'
  948. @endverbatim
  949. @enditemize
  950. @item
  951.  You can add TeX aware paragraph reformatting, see @hpt{Alt-P}.
  952. @item
  953.  You can replace tags.e from the standard distribution by the version enhanced
  954.  for TeX, .log and BibTeX files.  See @hpt{TeX tags}.
  955. @item
  956.  You can add @hpt{syntax assistance} enhanced for TeX and BibTeX files.
  957. @endenumerate
  958. @h2 Information for users of Czech.E
  959. @label Czech.E
  960.  If you use the macro Czech.E that implements the Czech keyboard in EPM (by Z.
  961.  Wagner), you would encounter some collisions with the Greek keyboard.  That's
  962.  why you should replace Czech.E by Czech_PM.E (from Czech_PM.zip file in this
  963.  package), is it has been explained earlier.  I have added one global variable
  964.  that keeps the status of the Czech keyboard (and I have commented out the
  965.  beeps; you can restore them if you like them).
  966.  Pokud p
  967. ijdete na d
  968. vod t
  969. ch koliz
  970.  a oprav
  971. te to, dejte mi pros
  972.  Now, go to @hpt{Tutorial}.
  973. @if false
  974. ***********************************************************
  975. @endif
  976. @h1 Tutorial 
  977. @label Tutorial
  978.  Welcome to the tutorial! I suppose you launched EPM in the @tt{demo} 
  979.  directory by the command 
  980. @samplecode
  981.         start epm example.tex inc.tex
  982. @endsamplecode
  983.  If there is no CSTeX menu item in the EPM, reboot the computer.  Try Tutorial
  984.  again.  If there is no progress, consult the @hpt{Installation}.
  985.  Now click on the word @tt{description} (in example.tex file).  Press Ctrl/H.
  986.  Help should appear.  If not, LaTeX2e.INF and LaTeX2e.NDX ware not installed
  987.  correctly.  Further, if you press Ctrl/H on @tt{\mistake}, you get the warning
  988.  "Unable to find entry...".  It means this keyword is not listed in LaTeX2e.NDX.
  989.  Now press Ctrl/H with the cursor being on the word @tt{\allowbreak}.  Nothing
  990.  happens:  it's correct---this is TeX primitive and it is also not documented in
  991.  LaTeX2e.INF.
  992.  You edit example.tex.  Choose @tt{CSTeX/(La)TeX document /b}.  Then latex.cmd
  993.  will be launched to proceed your file (CSTeX-distribution users should have
  994.  their LaTeX.cmd command script equal to csLaTeX.cmd).  It finished.  There was
  995.  one mistake.  However, tex386 has not stopped due to the @tt{/b} (=batchmode)
  996.  command line parameter passed into tex386.  So you now press Shift-F12 and the
  997.  error will be localized.  Press several times F12 to localize and read the .log
  998.  file in the edit ring.  Go back to example.tex, correct the mistake, and press
  999.  Shift-F12 again.  "No more errors" message should appear.  Then start
  1000.  Previewer.  Usually you are re(La)TeXing your document while dvipm is
  1001.  simultaneously on your screen, so you can hear the beep when tex386 has
  1002.  finished and dvipm is reloading the document (it must be enabled via the dvipm
  1003.  menu).
  1004.  In the above procedure the tex386 window has been minimized so you cannot
  1005.  interact with this program.  For the interactive work, you can use the menu
  1006.  item "CSTeX/(La)TeX document".  It (La)TeXes your document on foreground using
  1007.  the usual interactive mode.
  1008.  Now click on any paragraph (a block of the text) and click on the toolbar icon
  1009.  @tt{[TeXit]}.  The current paragraph should be recompiled and automatically 
  1010.  updated by dvipm (haven't you forget to set @tt{Auto reload} in dvipm?).
  1011.  Now play with it yourself.  Also, read the other part of this documentation for
  1012.  more details.  For full details, read the source code of pm4EPM.e and CSTeX.e,
  1013.  as well as all EPM manuals @tt{:-))}.  If there some problems, please correct
  1014.  them and send me the solution.  Have fun!
  1015.  Please don't forget to read about the @hpt{syntax} of the keywords on the first
  1016.  line of the Master file.  Those supplied in the example.tex
  1017. @samplecode
  1018.  % Format: latex  emtexopt: */mp85500* dvips: *-p 123* ViewOpts: */tr1 +inverse*
  1019. @endsamplecode
  1020.  mean the following: 
  1021. @itemize
  1022. @item
  1023.  Format of the document is latex, i.e. use latex.cmd script to recompile it,
  1024. @item
  1025.  before launching the above script, the environmental variable is enlarged 
  1026.  (with respect to its value from the config.sys) by the option @tt{/mp85500}, 
  1027.  so that tex386 has larger pool size so it can process the AMS-LaTeX documents, 
  1028. @item
  1029.  if you are dvipsing (@tt{.dvi}->@tt{.ps}) the .dvi file, then only pages up to 
  1030.  the page 123 are printed (makes no sense in example.tex anyway), 
  1031. @item
  1032.  @tt{ViewOpts} are passed into the full-screen previewer and to the printer 
  1033.  drivers. 
  1034. @enditemize
  1035. @if false
  1036. ***********************************************************
  1037. @endif
  1038. @h1 Usage
  1039. @label Usage
  1040.  Please go yourself through all the CSTeX menu options, icons and actions that
  1041.  you can icon-ify.  This manual will probably never be too complete.  You are
  1042.  welcome to contribute.
  1043.  However, it should not mine, since "ordinary" users will hardly change the
  1044.  code, and the programmers will do it easily.  Anyway, you are welcome to have a
  1045.  look at .e files what's really inside.  They are readable...
  1046. @h2 Syntax of expansions
  1047. @label Syntax of expansions
  1048. @label Syntax of expansions:
  1049. @label Syntax
  1050. @label syntax
  1051.   You edit a file. It is called working file. If its first line contains
  1052. @samplecode
  1053.   %  .......   Master: b.tex   .....
  1054. @endsamplecode
  1055.  then b.tex is its master file to which all actions like latexing, previewing
  1056.  etc.  will be related.  If there is no @tt{Master:} keyword on its first line,
  1057.  this file is both Working and Master.
  1058.  The first line of the Master file can contain other keywords which are expanded
  1059.  by pm4EPM.e.  CSTeX.e reacts to the following keywords:
  1060. @samplecode
  1061.   % .... Format: cslatex209  .....
  1062. @endsamplecode
  1063. @samplecode
  1064.   % .... Format: plain .....
  1065. @endsamplecode
  1066.  This is used to texing the document.  .cmd file of the same name as is that of
  1067.  the format is called to compile the document (in the above example,
  1068.  @tt{cslatex209.cmd} and @tt{plain.cmd} are called, respectively).  If no
  1069.  @tt{Format:} is present, environmental variable @tt{LATEXFORMATDEFAULT} is
  1070.  searched.  If that is not defined, default format @tt{latex} is used.
  1071.  Synonym to the @tt{Format: myformat} is @tt{%&myformat} starting the command
  1072.  line; this allows to accept cweb/unix style of format determination.
  1073. @samplecode
  1074.   % .... EMTEXOPT: */mp85500*  .....
  1075. @endsamplecode
  1076.  This keyword is added to the environmental variable EMTEXOPT before
  1077.  @tt{_format_.cmd} is started.  The above option I use for AMS-LaTeX and
  1078.  AMS-fonts.  Another example:  if you want to get rid of the user interaction
  1079.  even in the CSTeX/(La)TeX document, then replace @tt{*/mp85500*} by
  1080.  @tt{*/mp85500 /b*} or by @tt{*/b*}.  See the emTeX documentation for more
  1081.  details @tt{(\emtex\doc\(english or german)\tex.doc)}.
  1082. @samplecode
  1083.   % .... dvips: *-p 3 -l 9 -A*  .....
  1084. @endsamplecode
  1085.  This keyword enables passing parameters into dvips (in this case, only the odd
  1086.  pages between page 3 and 9 are postscripted).  Look at @tt{dvips} documentation
  1087.  (or type @tt{dvips} at the command prompt) for more details.
  1088. @samplecode
  1089.   % .... makeindex: * -s mystyle *  .....
  1090. @endsamplecode
  1091.  Options that are passed into the MakeIndex program.  See its documentation for
  1092.  more details.
  1093. @samplecode
  1094.   % .... ViewOpts: */tr1 +zoom:4 +inverse*  .....
  1095. @endsamplecode
  1096.  The string between those stars (*) or any pair of same chars is taken as the
  1097.  argument for printer/viewer command line.  That means not for "Viewer document"
  1098.  (interactive dvipm), but for "Preview before print" and "Print".  Consult
  1099.  @tt{\emtex\doc\english\dvidrv.doc} for more details about the available
  1100.  switches, or type @tt{/??} at the @tt{dvi*} prompt.
  1101.  If you are Editing settings of an icon on the toolbar, there is "Parameters"
  1102.  line related to "Action".  This Parameter is expanded as described directly in
  1103.  the pm4EPM.e file.  They are not used by CSTeX.e (yet).
  1104. @h2 CSTeX menu items explanation
  1105. @label CSTeX menu items explanation
  1106. @h- (La)TeX document
  1107.  Compiles document on foreground:  @tt{start /c /win /f cmd.exe /c %format.cmd
  1108.  %N} Abbreviation @tt{%N} expands to the master file in the Unix style and
  1109.  @tt{%format} to the format of the document.
  1110. @h- (La)TeX document /b
  1111.  As above, but TeXing is started on the background.  Well, in both cases, you
  1112.  should have used @tt{\batchmode} TeX command in the beginning of your file to
  1113.  force tex386 go smoothly over errors (you locate errors later using Shift-F12).
  1114. @h- (La)TeX paragraph
  1115.  Compiles the current paragraph of the edited text.  The paragraph is the text
  1116.  block between two blank lines, or a line block of text (marked by @tt{Alt-L}
  1117.  ...  @tt{Alt-L}, for instance).  A temporary file @tt{$cstex$.tex} is written,
  1118.  which contains everything from the first line to the @tt{\begin{document}}
  1119.  statement of the Master file, then the current paragraph, and the file is
  1120.  terminated by @tt{\end{document}}.  After reLaTeXing, the .dvi and .log files
  1121.  are copied over those of the Master file.
  1122. @h- Locate next error
  1123.  @bf{A. Error searching:} 
  1124.  If .log file is loaded, then search for the next error.  If .log file is not
  1125.  loaded, load it to the editor and search for the first error.  If it is loaded,
  1126.  refresh it and start from the beginning.
  1127.  (Technical note:  the above works fine for me; I think there is no need to
  1128.  implement in next_error to check the file on the harddisk whether it has
  1129.  changed or not every time when next_error function is invoked by the user.)
  1130.  @bf{B. Warning searching:} 
  1131.   If you position the cursor in .log file on a line which is like one of these:
  1132. @verbatim
  1133. Overfull \hbox (19.0473pt too wide) detected at line 5
  1134. Overfull \hbox (19.94281pt too wide) in alignment at lines 95--104
  1135. Underfull \hbox (badness 10000) in paragraph at lines 356--373
  1136. LaTeX ...whatever, e.g. Warning: or Font Info:.... line 138.
  1137. @endverbatim
  1138.  then the @bf{Locate next error} will find the location of the warning from that
  1139.  line.
  1140.  Otherwise the method @bf{A.} is in action, of course.  That's what you use
  1141.  normally.
  1142. @h- PostScript menus
  1143.  dvips will be used to convert .dvi -> .ps.  Then you can launch either gvpm
  1144.  program (it is the GhostView for OS/2, available from any net server mirroring
  1145.  the ghostscript staff) or use the DOS previewer psview (available at
  1146.  ftp.muni.cz:pub/tex/local/postscript/psview.zip).  If you print from dvips,
  1147.  then the output goes to the @tt{prn} port.  See also the keyword @tt{dvips:}
  1148.  applicable for the Master's first line, which is described in the section
  1149.  @hpt{Syntax}.
  1150.  If you use the menu item dvips-it, then pmCSTeX will beep when it is finished,
  1151.  so that you can reload the file in GhostView or send it into a PostScript
  1152.  printer.  You can switch this beep off, see @hpt{recompiling}.
  1153. @h- Printing menus
  1154.  Menu for printing using dvihplj and 300 dpi was well tested.  Others not.  If
  1155.  you have other printer not listed explicitly in the menu, then .cmd script will
  1156.  be called with @tt{myprt1.cmd} or @tt{myprt2.cmd}.  For previewing,
  1157.  @tt{myprt1.cnf} or @tt{myprt2.cnf} will be used.  You should prepare them
  1158.  yourself, according to @tt{\emtex\bin\prt*.cmd} and @tt{\emtex\data\*.cnf}
  1159.  files.
  1160. @h- Editor / Include
  1161.  The file whose name is under the cursor is included into the editor.  The
  1162.  routine is implemented such that it looks to the current directory, then to
  1163.  @tt{..\units}, then to @tt{\emtex\texinput}, then to some of the
  1164.  @tt{\emx\include} directories.  You can easily add your favourite directories
  1165.  to the source code of CSTeX.e and recompile the macros.
  1166.  Moreover, not only the file under cursor, but as well as those files with
  1167.  .h, .c, .cpp, .sty, .tex are searched. Try it and see. 
  1168. @h- CStoCS (
  1169.  verze) 
  1170.  Pokud nem
  1171. te konverzn
  1172.  program cs2cs (dal jsem ho do modulu os2.zip?), tak si
  1173.  ho st
  1174. mo od jeho autora:
  1175.  @tt{ftp://aip1.fsv.cvut.cz/users/ferdi/cs2cs.zip}
  1176. @h- Spell / Czech,Slovak,English (
  1177.  verze)
  1178.  Pravopis se oprav
  1179.  v DOSovsk
  1180. m programu @tt{%EMTEXDIR%\cstug\texspell.exe},
  1181.  kter
  1182.  je sou
  1183.  diskety CSTeXu pro registrovan
  1184. leny CSTUGu.  M
  1185.  smysl
  1186. vat pouze pro opravy 
  1187. tiny 
  1188. i sloven
  1189. tiny do t
  1190.  doby, ne
  1191. m IBM
  1192.  laskav
  1193.  CZ.DIC anebo SK.DIC, bude-li to v
  1194. bec n
  1195. kdy.  U
  1196.  by s t
  1197. m taky
  1198.  mohli trochu pohnout, 
  1199.  1999: slovn
  1200. ky, tedy alespo
  1201. si soubory @tt{*.dic}, jsou sou
  1202.  Netscapu 
  1203.  4.61. Ov
  1204. em zase nejdou 
  1205. st v EPM, cosi s nimi pad
  1206. . See @hpt{bugs}. 
  1207. @h- Other TeX programs
  1208.  Drawing programs:  TeXcad is well-known, Qfig probably less.  But there are
  1209.  XFree86 ported to OS/2 (@tt{http://set.gmd.de/~veit/os2/xf86os2.html}) so I'm
  1210.  really glad that I can use Xfig for OS/2.  Since you run XFree86 in a separate
  1211.  full-screen session, there is no item for it.  PageDraw is a good tool for
  1212.  PostScript drawings---it runs in Win-OS2 session, so the author should be asked
  1213.  for a native OS/2 version.
  1214. @h- TeXclean
  1215.  Deletes all files @tt{*.aux *.log *.dlg *.dvi *.toc *.lot *.lof *.blg *.idx
  1216.  *.ind *.glo *.gls *.hp *.mfj *.pri *.bak}
  1217. @h2 Hotkeys in CSTeX
  1218. @label hotkeys
  1219. @label Hotkeys in CSTeX
  1220.  These hotkeys are defined:
  1221. @h- Ctrl/1
  1222.  It brings menu with paragraph, section, chapter...
  1223. @h- Ctrl/3
  1224.  It brings menu with LaTeX environments.  If there is a line-mark, then surround
  1225.  the marked text block by the choosen environment; otherwise insert the
  1226.  environment and a blank line in between
  1227. @h- Ctrl/4
  1228.  It brings menu with AMSLaTeX environments If there is a line-mark, then
  1229.  surround the marked text block by the choosen environment; otherwise insert the
  1230.  environment and a blank line in between
  1231. @h- Ctrl/5
  1232.  It brings menu with LaTeX font sizes
  1233. @h- Ctrl/6
  1234.  It brings menu with @tt{textrm, textsf, texttt, textmd, textbf, textup, textit,
  1235.  textsl, textsc, emph, textnormal}
  1236. @h- Ctrl/7
  1237.  It brings menu with @tt{rmfamily, sffamily, ttfamily, mdseries, bfseries, upshape,
  1238.  itshape, slshape, scshape, em, normalfont}
  1239. @h- Alt-G
  1240.  Switches the keyboard to the Greek keyboard.  After pressing Alt-G and pressing
  1241.  a key, its Greek character (in TeX syntax) will be typeset instead.  E.g.
  1242.  @tt{Alt-G a} produces @tt{\alpha}.
  1243.  Note:  if the keyboard is not switched to the keyboard layout you was using
  1244.  before, then change the end of @tt{DEFPROC pm_TypeGreek()} according to any
  1245.  global flag your personal keyboard provides.
  1246.  And finally, here is the translation table:
  1247. @table 5 4 3 5 7 3 5 3 4 3 5 6 2 2
  1248. a     
  1249.  b    
  1250.  c   
  1251.  d     
  1252.  e       
  1253.  f   
  1254.  g     
  1255.  h   
  1256.  i    
  1257.  k     
  1258.  l      
  1259. -     
  1260.  -    
  1261.  -   
  1262.  D     
  1263.  -       
  1264.  F   
  1265.  G     
  1266.  -   
  1267.  -    
  1268.  -     
  1269.  L      
  1270. alpha 
  1271.  beta 
  1272.  chi 
  1273.  delta 
  1274.  epsilon 
  1275.  phi 
  1276.  gamma 
  1277.  eta 
  1278.  iota 
  1279.  kappa 
  1280.  lambda 
  1281. @endtable
  1282. @table  5 2 5 3 5 3 10 6 8 2 7 4 
  1283. o     
  1284.  q     
  1285.  r   
  1286.  s     
  1287.  t   
  1288.  u          
  1289.  v      
  1290.  w        
  1291.  y       
  1292. O     
  1293.  Q     
  1294.  -   
  1295.  S     
  1296.  -   
  1297.  -          
  1298.  -      
  1299.  -        
  1300.  Y       
  1301. omega 
  1302.  theta 
  1303.  rho 
  1304.  sigma 
  1305.  tau 
  1306.  varepsilon 
  1307.  varphi 
  1308.  vartheta 
  1309.  upsilon 
  1310.  zeta 
  1311. @endtable
  1312. @h2 Hotkeys in pm_keys
  1313. @label pm_keys
  1314.  There are some hotkeys you may or may not find useful.  You can either add
  1315. @verbatim
  1316.         'link pm_keys'
  1317. @endverbatim
  1318.  into Profile.erx, or copy the hotkey definitions into your MyKeys.E file (then
  1319.  recompile it).  Currently, I use these definitions:
  1320. @h- Ctrl/Y
  1321.  It deletes the current line (as Ctrl/BackSpace does).  I'm used to this key
  1322.  sequence from Borland-like editors.
  1323. @h- Alt-1
  1324.  Generalizes / enhances the standard EPM file load hotkey, equivalent to
  1325.  @tt{CSTeX/Editor/Include}.
  1326. @h- Alt-3
  1327.  Inserts @tt{\begin{}}
  1328. @h- Alt-4 
  1329.  Inserts @tt{\end{}}
  1330. @h- Alt-5
  1331.  Inserts @tt{\[  \]}
  1332. @h- Alt-6
  1333.  Inserts @tt{$$  $$}
  1334. @h- Alt-Z
  1335.  It brings a dialog with margin setup.  Easier then going to
  1336.  @tt{File/Settings...}
  1337. @h- Alt-Q
  1338.  This hotkey provides either of the following two actions:
  1339.  1. quickly makes \begin{equation} ...  \end{equation} environment with two two
  1340.  comment lines above and below.  Thus pressing @tt{Alt-Q} on this line would do:
  1341. @verbatim
  1342.    \begin{equation}
  1343.    \end{equation}
  1344. @endverbatim
  1345.  2. If the line under the cursor contains only \begin{equation}, it changes it
  1346.  into \begin{eqnarray}.  If there is \begin{eqnarray}, it is changed to
  1347.  \begin{align}, and if there is \begin{align}, it transforms back to
  1348.  \begin{equation}.  The same rotation works for the \end{equation},
  1349.  \end{eqnarray} and \end{align} lines too, as well as for the @tt{\begin} and
  1350.  @tt{\end} versions of @tt{equation*}, @tt{eqnarray*} and @tt{align*}
  1351.  environments.
  1352.  Note for future:  this could be more powerful if this command would change both
  1353.  @tt{\begin{..}} and @tt{\end{..}} simultaneously.
  1354. @if false
  1355. ***********************************************************
  1356. @endif
  1357. @h1 Recompiling the macros
  1358. @label recompiling
  1359. @label recompile
  1360.  Your need stdconst.e from epmmac.zip (see hobbes.nmsu.edu:os2/editors).  This
  1361.  file has to be on your EPMPATH.
  1362.  The following commands will compile CSTeX EPM macros:
  1363. @samplecode
  1364.         etpm pm4EPM
  1365.         etpm CSTeX
  1366. @endsamplecode
  1367.  You can recompile CSTeX.e into two menu schemes depending on the constant
  1368.  CSTEX_CSTEX:
  1369. @h- CSTEX_CSTEX=1
  1370.  This produces CSTeX for EPM that is distributed together with CSTeX'96
  1371.  distribution.  It includes support for all our favourite CS features and
  1372.  programs
  1373. @h- CSTEX_CSTEX=0
  1374.  This disables compilation of the features specific for CSTeX'96 distribution
  1375. @h- CSTEX_CS2CS=1
  1376.  Uses OS/2 program cs2cs.exe for Czech encodings conversion (this program does
  1377.  not come with CSTeX'96 distribution yet, get it from
  1378.  @tt{ftp://aip1.fsv.cvut.cz/users/ferdi/cs2cs.zip}
  1379. @h- CSTEX_CS2CS=0
  1380.  Uses DOS program cstocs.exe for Czech encodings conversion (included in
  1381.  CSTeX'96 distribution, but due to cs2cs.exe it became obsolete now)
  1382. @h- PM_DICTIONARIES=1
  1383.  Adds dictionary (language) menu for EPM spell checking+synonyms
  1384. @h-  CSTEX_USEMASTERDIR=1
  1385.  The master file is firstly searched in the directory of the working file, then
  1386.  in the current directory; if
  1387. @h-  CSTEX_USEMASTERDIR=0
  1388.  then the master file is searched in the current directory, i.e.  in the
  1389.  directory where the EPM was started from.  The choice =1 is much better if EPM
  1390.  runs permanently (@tt{EPM /i}).
  1391. @h- Two options in DEFINIT routine in CSTeX.e
  1392.  @tt{cstex_true_tex_background=1} is default option that minimizes window of the
  1393.  background TeXing.  Set @tt{cstex_true_tex_background=0} to get the whole
  1394.  window.  @tt{cstex_background_beep=0} is default option to avoid beep when
  1395.  background texing has finished (dvipm can do it for you).  Set
  1396.  @tt{cstex_background_beep=1} if you would prefer this beep.
  1397.  You can do the appropriate changes in both files---as you wish.  In fact, you
  1398.  should changed the menus and related things if some build-in options do not
  1399.  suite your customs.  I tried to write the code as simple as possible---I'm not
  1400.  professional EPM programmer.
  1401.  However, KEEP IN MIND that you can distribute the files derived from CSTeX ONLY
  1402.  IF the original distribution of pmCSTeX.zip comes with them!  People need to
  1403.  know where that comes from, whom they can make donations to or who is the
  1404.  person to blame...
  1405. @if false
  1406. ***********************************************************
  1407. @endif
  1408. @h1 Conclusion
  1409.  This release of pmCSTeX for EPM works perfectly for me, but that need not be
  1410.  the case for you.  If it does not work, please verify the installation of EPM,
  1411.  go again through the @hpt{Installation}, and read about @hpt{Bugs}.  If this
  1412.  did not help, then let me know about your problems.
  1413.  You can also write me about your suggestions or even your solutions to your
  1414.  suggestions, what should be additionally included etc.  Thanks.
  1415. @h2 History 
  1416. @label History
  1417. @description
  1418. @item @bf{ 16. 4. 2000 }
  1419. @itemize
  1420. @item
  1421.  @hpt{License} explicitly added (required by (La)TeX packages catalogue).
  1422. @item
  1423.  @hpt{Syntax of expansions:}
  1424.  synonym to the @tt{Format: myformat} is @tt{%&myformat} starting the command
  1425.  line; this allows to accept cweb/unix style of format determination.
  1426. @item
  1427.  Installing all advanced features via diff files and @hpt{gpatch} instead of the
  1428.  distribution of modified source files.
  1429. @item
  1430.  Added patch for @hpt{making backup copies of files before save}.
  1431. @item
  1432.  Documented the idea of solving the red oval instability in the @hpt{bugs} 
  1433.  section.
  1434. @item
  1435.  Czech specific: added updated version of dvi-out2 (contributed by Jaromir
  1436.  Kuben).
  1437. @item
  1438.  New @hpt{hotkeys} Alt-3,Alt-4, Alt-5, Alt-6.
  1439. @item
  1440.  Czech specific: added updated version of vlnka (contributed by Jaromir
  1441.  Kuben). Previous vlnka2.exe removed, added new @tt{vlna.exe}. 
  1442. @item
  1443.  Czech specific: added EPM for TeX short guide @tt{EPMpopisJK.INF} by Jaromir 
  1444.  Kuben. 
  1445. @item
  1446.  Added TeX @hpt{syntax assistance}, to save some keystrokes, by Vladimir Kisil
  1447.  (@tt{vk@cage.rug.ac.be}).  See the directory @tt{install\advanced\TeXassist} 
  1448.  for more details.
  1449. @enditemize
  1450. @item @bf{ 15. 3. 1999 }
  1451. @itemize
  1452. @item
  1453.  enhancement for @hpt{Ctrl-[ and Ctrl-]} hotkeys in order to search pair 
  1454.  construct (La)TeX keywords
  1455. @enditemize
  1456. @item @bf{ 6. 3. 1999 }
  1457. @itemize
  1458. @item
  1459.  enhancement for Ctrl/3,4 @hpt{Hotkeys in CSTeX} for the inclusion of
  1460.  (AMS-)LaTeX environments:  if a line-marked block (Alt-L) exists, then surround
  1461.  it by the choosen environment; otherwise environment inserted at the cursor
  1462.  position (as before)
  1463. @enditemize
  1464. @item @bf{ 14. 12. 1998 }
  1465. @itemize
  1466. @item
  1467.  Improvement:  skipping text between @tt{Overfull/Underfull} and @tt{[]}
  1468.  (sometimes produced a warning about wrong number of corrupted .log file
  1469.  because of parenthesis)
  1470. @item
  1471.   Improvement: skipping text from @tt{LaTeX Warning:} until blank line
  1472. @enditemize
  1473. @item @bf{ 18. 1. 1998 }
  1474. @itemize
  1475. @item
  1476.   Figured out how to make @hpt{Double-side or slot 2 printing from dvips}
  1477. @item
  1478.   Bugfix:  the greek keyboard was switching off Auto-spellcheck.
  1479. @item
  1480.   Generalization of the @bf{Locate next error} function (available from the menu, 
  1481.   as the toolbar icon or as hotkey Shift-F12). 
  1482.   If you put the cursor in .log file on a line which is like
  1483. @verbatim
  1484. Overfull \hbox (19.0473pt too wide) detected at line 5
  1485. Overfull \hbox (19.94281pt too wide) in alignment at lines 95--104
  1486. Underfull \hbox (badness 10000) in paragraph at lines 356--373
  1487. LaTeX ...whatever, e.g. Warning: or Font Info:.... line 138.
  1488. @endverbatim
  1489.   then the @bf{Locate next error} will find the location of the warning from that 
  1490.   line.
  1491.   Otherwise, i.e.  from non-@tt{.log} files or having there cursor on another line
  1492.   (which is usual when searching for true errors), the behaviour of this 
  1493.   function is unchanged.
  1494. @enditemize
  1495. @item @bf{ 5. 1. 1998 }
  1496. @itemize
  1497. @item
  1498.   (La)TeXing the paragraph: now accepts the current paragraph as well as the line block 
  1499.   of text, if selected; see @hpt{CSTeX menu items explanation}
  1500. @item
  1501.   Bugfix in the Czech version: reversed parameters of Master and Options when 
  1502.   calling @tt{csdvips}
  1503. @item
  1504.   This documentation updated for the @hpt{Installation of advanced macros}
  1505. @enditemize
  1506. @item @bf{ 29. 12. 1997 }
  1507. @itemize
  1508. @item
  1509.   TeX->PS routine---thus you can use the action @tt{cstex_texit_and_dvips} for 
  1510.   making a toolbar icon (now: only menu item @bf{(La)TeX and dvips document})
  1511. @item
  1512.   Change in sampactn.e (syntax highlighting): @tt{*.ps, *.eps} and @tt{*.pdx} 
  1513.   files are coloured according to @tt{epmkwds.ps}
  1514. @enditemize
  1515. @item @bf{ 15. 12. 1997 }
  1516. @itemize
  1517. @item
  1518.   In the pm_keys.e, I have joined @tt{Alt-Q} and @tt{Ctrl-Q} into @tt{Alt-Q}, since I have found 
  1519.   how the @tt{Ctrl-Q} and the @tt{ALL} command can be useful
  1520. @item
  1521.  Moreover, the new version of @tt{Alt-Q} work on TeX-like files only (i.e.  files
  1522.  with extension @tt{TEX, LATEX, STY, CLS} or @tt{DTX}
  1523. @item
  1524.  View documentation menu item enhanced to browse pmCSTeX.INF and LaTeX2e.INF
  1525. @enditemize
  1526. @item @bf{ 11. 11. 1997 }
  1527. @itemize
  1528. @item
  1529.  Bug fix:  EPM crashed when (La)TeXing a paragraph invoked from a very deep
  1530.  directory (this was caused by EPM's string length limitation)
  1531. @item
  1532.  View documentation menu item added (note:  this routine works if the EPM has been
  1533.  compiled with @tt{WANT_SEARCH_PATH})
  1534. @item
  1535.  Call of the macro @tt{already_in_ring} replaced by its expansion (did not work
  1536.  for two users who recompiled EPM without the E3EMUL support)
  1537. @item
  1538.  @hpt{FAQ} added to the documentation
  1539. @enditemize
  1540. @item @bf{ 24. 9. 1997 }
  1541. @itemize
  1542. @item
  1543.  TeXing a paragraph was not working if another EPM session (or EPM server) on
  1544.  different partition was running simultaneously
  1545. @enditemize
  1546. @item @bf{ 16. 7. 1997 }
  1547. @itemize
  1548. @item
  1549.  @tt{Alt-1} (in @hpt{pm_keys}) load file hotkey in @hpt{pm_keys} accepts also
  1550.  absolute filenames as well as those in Unix format (forward slashes)
  1551. @enditemize
  1552. @item @bf{ 13. 4. 1997 }
  1553. @itemize
  1554. @item
  1555.  @tt{Alt-1} (in @hpt{pm_keys}) load file hotkey replaced by my generalization. 
  1556. @item
  1557.   Options for MakeIndex are now available. 
  1558. @item
  1559.   PostScript: psview.cmd added (i.e. psview.bat converted for OS/2 and changed its 
  1560.   option in the menu). 
  1561. @item
  1562.   PostScript: dvips-it + pause added. 
  1563. @item
  1564.   Spell-checker: warning if the selected dictionary does not exist, Spain 
  1565.   dictionary added. Greek keyboard: ksi->xi fixed. 
  1566. @item
  1567.   Other programs (CSTeX version): dvi-out2 works in current directory and shows 
  1568.   the messages.
  1569. @enditemize
  1570. @item @bf{ 5. 2. 1997 }
  1571. @itemize
  1572. @item
  1573.  Bugfix for a typo in the previously updated version of the protection against 
  1574.  damaged .log files.
  1575. @enditemize
  1576. @item @bf{ 30. 1. 1997 and 3. 2. 1997 }
  1577. @itemize
  1578. @item
  1579.  The oval over the mistakes found is now thicker and light_magenta, 
  1580.  thus easier to distinguish
  1581. @enditemize
  1582. @item @bf{ 26. 1. 1997 }
  1583. @itemize
  1584. @item
  1585.  'TeXclean' now deletes @tt{*.bak} files too
  1586. @item
  1587.  'Highlight all' now does correctly go back to the first file
  1588. @enditemize
  1589. @item @bf{ 15. 1. 1997 }
  1590. @itemize
  1591. @item
  1592.  Documentation rewritten, packed together in order to release the beta 
  1593.  version of the pmCSTeX for EPM, the version for the year 1997
  1594. @enditemize
  1595. @item @bf{ 4. 1. 1997 }
  1596. @itemize
  1597. @item
  1598.  The master file is firstly searched in the directory of the working file, then 
  1599.  in the current directory (compilation option @tt{CSTEX_USEMASTERDIR})
  1600. @item
  1601.  Menu item "Cykl" taken away (well, it was there for some historical reasons and
  1602.  I never used it under EPM)
  1603. @enditemize
  1604. @item @bf{ 30. 11. 1996 }
  1605. @itemize
  1606. @item
  1607.  (Czech version):  za
  1608. ny dvi-out2.exe, vlnka2.exe (pascalsk
  1609.  zdroj
  1610. ch DOSovsk
  1611. ch program
  1612.  byly kone
  1613.  zkopilovan
  1614.  pro OS/2).  Update se
  1615.  provede takto:  tyhle dva nov
  1616. e a nov
  1617.  csdvips.cmd se zkop
  1618.  %EMTEX%\bin
  1619. @enditemize
  1620. @item @bf{ 28. 10. 1996 }
  1621. @itemize
  1622. @item
  1623.  Dictionaries FR.dic, UK.dic, US.dic, etc. are taken from the directory defined
  1624.  by the EPM_DICTIONARIES environmental variable. If this does not exist, then
  1625.  from the directory \APPS\EPM. See also @hpt{spell checker}
  1626. @enditemize
  1627. @item @bf{ 22. 10. 1996 }
  1628. @itemize
  1629. @item
  1630.  For the CS version: separate BibTeX, MakeIndex and csBibTeX, csMakeIndex
  1631.  (csBibTeX has been compiled in 1994 and it is not compatible with the new emTeX
  1632.  directory structure)
  1633. @enditemize
  1634. @item @bf{ 9. 10. 1996 }
  1635. @itemize
  1636. @item
  1637.   CSTeX.e: in @tt{DEFC cstex_highlight_all} added @tt{nextfile} after the loop;
  1638.  but then taken away because of other link; I'll check it in future.    
  1639. @item
  1640.   Profile.erx: remarks should be enclosed in @tt{/*  */} instead of only a
  1641.  semicolon prefix
  1642. @enditemize
  1643. @item @bf{ 22. 7. 1996 }
  1644. @itemize
  1645. @item
  1646.  Hotkeys Ctrl/1, Ctrl/6, Ctrl/7 added
  1647. @enditemize
  1648. @item @bf{ 11. 6. 1996 }
  1649. @itemize
  1650. @item
  1651.  Added dictionary (language) menu for EPM spell checking+synonyms. The
  1652.  corresponding compile option is PM_DICTIONARIES
  1653. @enditemize
  1654. @item @bf{ 8. 6. 1996 }
  1655. @itemize
  1656. @item
  1657.  Final release---upload to hobbes, leo and CTAN
  1658. @enditemize
  1659. @item @bf{ 7. 6. 1996 }
  1660. @itemize
  1661. @item
  1662.  Meaning of @tt{Alt-Q} changed, added @tt{Ctrl-Q} hot key; spell-checker
  1663.  discussion
  1664. @enditemize
  1665. @item @bf{ 28. 5. 1996 }
  1666. @itemize
  1667. @item
  1668.  TeXing action works even when you ask for it from within .log file
  1669. @item
  1670.  'Locate Next Error': oval drawing for ...long line with an error works now 
  1671.  better
  1672. @enditemize
  1673. @item @bf{ 26. 5. 1996 }
  1674. @itemize
  1675. @item
  1676.  Typo/bug from 19. 5. corrected
  1677. @item
  1678.  sampactn.e replaced according to new EPM 6.03b
  1679. @enditemize
  1680. @item @bf{ 19. 5. 1996 }
  1681. @itemize
  1682. @item
  1683.  EMTEXOPT keyword added (see @hpt{syntax}) so you don't need to change your .cmd
  1684.  files if you use AMS-LaTeX or memory consuming documents.  Therefore EMTEXOPT
  1685.  environmental variable has to be established and it should contain fixed memory
  1686.  parameters (see @hpt{Installation}).  These were previously in .cmd files and
  1687.  they have been changed in this release.  Using this EMTEXOPT trick there is no
  1688.  more need to have @tt{\batchmode} command in the Master file.  Document being
  1689.  (La)TeXed on background is iconified, but this can be changed (see
  1690.  @hpt{recompiling})
  1691. @enditemize
  1692. @item @bf{ 16. 5. 1996 }
  1693. @itemize
  1694. @item
  1695.  Suggestions and minor changes reported by Wolfgang Kronberg 
  1696.  (@tt{kroni@bite.shnet.org}) taken into account
  1697. @item
  1698.  Section about @hpt{syntax highlighting} written
  1699. @enditemize
  1700. @item @bf{ 15. 5. 1996 }
  1701. @itemize
  1702. @item
  1703.  Annoying message "I think you re(La)TeXed..." taken away
  1704. @item
  1705.  dvips option into pm4EPM (i.e. new expandable keyword dvips for the Master's 
  1706.  first line included)
  1707. @enditemize
  1708. @item @bf{ 9. 5. 1996 }
  1709. @itemize
  1710. @item
  1711.  Odstran
  1712. no zdvojen
  1713.  ~V v menu View a vlnka
  1714. @enditemize
  1715. @item @bf{ 6. 5. 1996 }
  1716. @itemize
  1717. @item
  1718.  Announcement in comp.os.os2.announce
  1719. @item
  1720.  cstocs.exe replaced by cs2cs.exe
  1721. @enditemize
  1722. @item @bf{ 2. 5. 1996 }
  1723. @itemize
  1724. @item
  1725.  AMS-LaTeX environments support  (@tt{Ctrl/4} hotkey in @hpt{pm_keys})
  1726. @enditemize
  1727. @item @bf{ 28. 4. 1996 }
  1728. @itemize
  1729. @item
  1730.  Only small changes
  1731. @enditemize
  1732. @item @bf{ 1. 3. 1996 }
  1733. @itemize
  1734. @item
  1735.  First public announcement
  1736. @enditemize
  1737. @item @bf{ 6. 2. 1996 }
  1738. @itemize
  1739. @item
  1740.  Distribution for my colleagues
  1741. @enditemize
  1742. @item @bf{ 30. 1. 1996 }
  1743. @itemize
  1744. @item
  1745.  First useable version for myself
  1746. @enditemize
  1747. @enddescription
  1748. @h2 FAQ---Frequently Asked Questions
  1749. @label FAQ
  1750.  There are some Frequently Asked Questions listed here.
  1751. @ipfminitoc
  1752. @h3 How to run MetaFont, gnuplot, awk... on the edited file
  1753.  The syntax with the first line @tt{Format:} keyword makes it possible to run
  1754.  any command over the edited file.  For instance, you are editing a
  1755.  @tt{mypic.mf}:
  1756. @samplecode
  1757.         % Format: runmf
  1758.         ... some MetaFont code here...
  1759. @endsamplecode
  1760.  A click on the @bf{TeXit} icon, or the Shift-F11 hotkey, will run the batchfile
  1761.  @tt{runmf.cmd} on the currently edited file (or even more, you can use
  1762.  Master:).
  1763.  Note that even the icon is called @bf{TeXit}, it can run whatever you write in
  1764.  the appropriate script, like @tt{mf386.exe}, or @tt{gnuplot.exe} if @tt{gp.cmd}
  1765.  states for @tt{@gnuplot %1 %2 %3 %4 %5 %6 %7 %8 %9}:
  1766. @samplecode
  1767.         # Format: gp
  1768.         set title "Hello, gnuplot"
  1769.         set grid
  1770.         plot sin(x)/x
  1771.         pause -1
  1772. @endsamplecode
  1773.  Note:  I use EPM to edit configuration files for my calculations in physics;
  1774.  the only necessity is to write a batch file that launches the correct
  1775.  application.  Furthermore, writing a syntax highlighting file is a matter of
  1776.  maybe 10 minutes (well, someone could contribute the @tt{epmkwds.mf} file for
  1777.  MetaFont).
  1778. @h3 Incorrection version
  1779.  A message like @tt{Incorrection version...} is displayed in the EPM status
  1780.  window.  That means that you have started EPM earlier than 6.03b.  Please
  1781.  verify your configuration, namely:
  1782. @itemize
  1783. @item
  1784.  Is @tt{\Apps\EPM} cited before @tt{\OS2\Apps} in @tt{PATH} and @tt{LIBPATH}?
  1785.  See @hpt{Installation of pmCSTeX} or @hpt{my config.sys}).  Remember that Warp
  1786.  3.0 is shipped with EPM 5.51, see @hpt{Installation on Warp 3.0}.
  1787. @item
  1788.  Have you correctly installed EPM 6.03b?  One user was convinced that he
  1789.  installed this product well, but he was reading the installation instructions
  1790.  by EPM 6.0 while installing EPM 6.03b into the same directory.  Thus some .dll
  1791.  files were locked and they were not overwritten, he got a crazy mixture of two
  1792.  versions!  Hint:  backup previous version, delete it complete, install the new
  1793.  one.
  1794. @enditemize
  1795. @h3 How to read previous EPM messages?
  1796.  What has EPM written to the bottom status bar?  Look at the menu:
  1797.  @tt{View/Messages}.
  1798. @h3 I cannot see \begin etc. keywords
  1799. @label I cannot see \begin
  1800.  The highlighting @tt{epmkwds} files enclosed in pmCSTeX are suited for the
  1801.  yellow&blue combination of foreground&background.  Thus, if you prefer the
  1802.  default EPM setting of black&white, then do NOT use my epmkwds files, otherwise
  1803.  you will not see any TeX keyword.  See also @hpt{syntax highlighting}. If you 
  1804.  want to use my highlighting files for non-yellow&blue combination, then you 
  1805.  should process them by a script for @tt{sed, awk, REXX,...} to convert the 2nd 
  1806.  and 3rd column to a combination that pleases your eyes.
  1807. @h3 You don't like my hotkeys
  1808.  You may redefine them or take completely away.  Look at pm_keys.e,
  1809.  change/delete them, and @hpt{recompile} it.
  1810. @h3 Nefunguje mi 
  1811. vesnice
  1812. ti si, pros
  1813. m, @hpt{Bugs}, zpr
  1814.  naspod.
  1815. @h3 Double-side or slot 2 printing from dvips 
  1816. @label Double-side or slot 2 printing from dvips
  1817.  Finally, I have found the way how to print double side from dvips (17.  1.
  1818.  1998!)!  It uses the @tt{-h} option of @tt{dvips} and the correct header files.
  1819.  Thus, from within EPM, use:
  1820. @verbatim
  1821. %  ...   dvips: * -h 2sideP.ps *
  1822. @endverbatim
  1823.   for double-side printing on portrait sheet,
  1824. @verbatim
  1825. %  ...   dvips: * -h 2sideL.ps *
  1826. @endverbatim
  1827.   for double-side printing on landscape sheet, or
  1828. @verbatim
  1829. %  ...   dvips: * -h Slot2.ps *
  1830. @endverbatim
  1831.  for printing on transparencies or on the paper deposited in the slot 2 of the
  1832.  postscript printer.
  1833. @h- Installation: 
  1834.  For use withing pmCSTeX, all should be prepared as described in sections
  1835.  @hpt{Installation of pmCSTeX} or @hpt{Upgrading pmCSTeX}.  If you want to use
  1836.  this feature on another TeX installation/platform, then copy those files into
  1837.  your TeX directory tree and use them in commands like
  1838. @verbatim
  1839.         dvips -h 2sideL.ps my_text.dvi
  1840. @endverbatim
  1841. @h3 Tags are fine, but are there "permanent" tags?
  1842.  Use the @tt{ALL *string_to_find*} command (invoke command line by @tt{Ctrl/I}).
  1843.  Then use (repeatedly) @tt{Ctrl/Q}.
  1844. @h3 I have a question/I have found a bug...
  1845.  Ok, write me a mail.  But please, be sure that you have read this manual
  1846.  completely, it is sometimes difficult to figure out what's wrong on your
  1847.  system.  Remember that a lot of users have installed this product without
  1848.  problems.  If you find a bug, please read the @hpt{Bugs} section first, and
  1849.  then let me know about it by e-mail if that insect has not been documented up
  1850.  to now.
  1851. @h3 Renaming a file
  1852.  Instead of using the menu options, EPM offers a more direct way to change the
  1853.  name of the file your working on.  Place the mouse pointer over the title bar
  1854.  and double-click the right mouse button.  The title bar will change to an edit
  1855.  field so that you can change the file name.  When you're done, click the mouse
  1856.  anywhere off the title bar.
  1857.  Source of this trick:  @tt{http://ourworld.compuserve.com/homepages/luvabo/}
  1858. @h3 Running EPM as a server
  1859.  Running @tt{epm /r /i} installs EPM as an editor server.  All further downloads
  1860.  into it by @tt{epm /r myfile.dat} are much faster (e.g., you can setup an
  1861.  @em{Alternate editor} in @bf{File Commander/2} by @tt{epm /r} or by @tt{start
  1862.  epm /r /i}).
  1863. @h3 Saving file with LF or CRLF line ends
  1864.  You can change miscellaneous default save options in Profile.erx.  Among them,
  1865.  the following line saves the files in Unix `LF' convention:
  1866. @verbatim
  1867.         'universal default_save_options /u'
  1868. @endverbatim
  1869.  Later on, if you want to save an edited file in the standard OS/2 `CRLF'
  1870.  format, then you can use the command @tt{save /o}
  1871. @h3 Make a backup file copy before save
  1872.  Do you want to backup the previous version of your edited file before 
  1873.  overwriting it by the @tt{Save} command? Well, this is described in the section 
  1874.  @hpt{Making backup copies of files before save}.
  1875. @h3 Automaticke vygenerovani pk fontu z ps fontu
  1876. Prispel pan J. Kuben: Pokud jde o automaticke vygenerovani pk fontu z ps fontu,
  1877. je to reseno pomoci dvips. To se zavola (pri nastaveni prvniho radku) 
  1878. @verbatim
  1879.       % dvips *-Pnic*
  1880. @endverbatim
  1881.  Soubor @tt{emtex\data\dvips\nic.cfg} ukazuje na prazdny seznam ps fontu 
  1882.  @tt{emtex\data\dvips\prazdny.map}. Davka @tt{emtex\exe\epm\csdvips.cmd} (musi 
  1883.  byt v ceste) je upravena tak, ze nastavi @tt{set maketexpk=make_pk}. Tento
  1884.  soubor vola dvips a predava mu parametry (protoze mu bylo receno, ze nejsou ps
  1885.  fonty). Rexx soubor @tt{emtex\exe\make_pk.cmd} (musi byt v ceste) je treba
  1886.  naeditovat. V uvodni casti je treba nastavit cesty podle konkretni instalace
  1887.  (kde jsou ps fonty, konfiguracni soubory, kam se budou ukladat pk fonty).
  1888.  Ten pak prohlizi soubor @tt{emtex\data\dvips\adobe.sez}, kde je ulozen seznam ps
  1889.  fontu, ktere jsou k dispozici, nazev zdrojaku a parametry, s nimiz se vola 
  1890.  @tt{ps2pk} (musi byt v ceste; pouzivam verzi 1.6).  Tento soubor je mozne podle
  1891.  potreby rozsirovat.  Parametry odpovidaji syntaxi z @tt{psfonts.map}.  Pokud
  1892.  neni font v seznamu nalezen, vola se @tt{emtex\exe\maketexp.cmd}, a tudiz 
  1893.  @tt{mfjob} (opet je treba nastavit cesty podle instalace).  Dvipm ma pak
  1894.  pripravene pk fonty a pri dalsim volani dvips se smaze @tt{-Pnic}, aby se 
  1895.  spravne pouzily ps fonty.
  1896. @h3 What is gpatch?
  1897. @label gpatch
  1898.  gpatch means GNU @tt{patch} program.  It is usually called @tt{patch} 
  1899.  on Unix system. Since there is already another @tt{\os2\patch.exe} 
  1900.  program by IBM distributed with OS/2, it makes sense to call GNU patch 
  1901.  @tt{gpatch.exe}. You can download the whole GNU @tt{patch} package
  1902.  as @tt{gnupatch.zip} from hobbes or leo.
  1903.  Note: diff-files enclosed in pmCSTeX were produced by 
  1904. @verbatim
  1905.       diff  -uw  xxx-original.e  xxx-modified.e >xxx.diff
  1906. @endverbatim
  1907. @h3 Various .dic files from IBM
  1908.  There are several versions of the dictionary *.dic files from IBM all 
  1909.  around. The latest are distributed together with Netscape 4.61 (April 
  1910.  2000). However, these are not compatible to the .dic files of EPM, obviously 
  1911.  because of its @tt{oslexam.dll}. Anybody knows how to use the new 
  1912.  dictionaries with EPM, mainly those for languages lacking an EPM dictionary?
  1913. @h2 Known bugs and missing features
  1914. @label Bugs
  1915. @label bugs
  1916.  @bf{pmCSTeX for EPM} related bugs and missing features:
  1917. @enumerate
  1918. @item
  1919.  The command @tt{'link pm_keys'} must be the first one in the Profile.erx,
  1920.  otherwise Ctrl/Y will not work for @tt{*.c*} and @tt{*.h} files.  This occured
  1921.  after 4.1.1997.  Probably a clash with CKEYS.E keyset or whatever else, when I
  1922.  redefine those @tt{EDIT_KEYS}.
  1923. @item
  1924.  The @tt{makeindex} first line keyword (see @hpt{Syntax of expansions}) was
  1925.  added according to demand of one person, but I've got no feedback.  Whether
  1926.  this works or not for you, please let me know.
  1927. @item
  1928.  Using "Next error", an error is found correctly but the current file (the file
  1929.  with the error) is switched off to .log file.  I don't know why, this comes
  1930.  irregularly, is there something wrong what is on the stack of EPM?  Because
  1931.  just before the return command the current file is correct.
  1932. @item
  1933.  CSTEX distribution users:  Jsou probl
  1934. my s @tt{csbibtex}em, kter
  1935.  se do
  1936.  distribuce CSTEX'96 dostal z CSTEX'94:  neakceptuje novou adres
  1937. ovou strukturu
  1938.  emTeXu, nezn
  1939.  dlouh
  1940. na .aux soubor
  1941. @item
  1942.  Czech.E users:  V prvn
  1943. m okn
  1944.  ringu funguje 
  1945. vesnice bez probl
  1946. em v dal
  1947. ch ji nen
  1948.  spustit (p
  1949. es @tt{Alt-[}).  Mus
  1950.  se napsat
  1951. koliv 
  1952. smeno (nap
  1953. .  @tt{Alt-G a}) a teprve potom d
  1954. t @tt{Alt-[}.
  1955. kdo, pro
  1956.  se to chov
  1957.  takto?
  1958. @item
  1959.  pmTeXit.cmd:  change it so that it accepts not only the @tt{Format:} keyword,
  1960.  but also the @tt{EmtexOpt:} and @tt{Master:} keywords.  (This means, you are
  1961.  welcome to do that---I haven't used pmTeXit.cmd for more than one year, since I
  1962.  do everything from within the EPM).
  1963. @item
  1964.  @tt{(La)TeX paragraph} is now targeted for use in LaTeX documents only.  Plain
  1965.  TeX documents should end by @tt{\bye} command instead of @tt{\end{document}}. 
  1966.  However, there was no demand for plain TeX paragraph TeXing until now, so there
  1967.  is no need to code this.
  1968. @endenumerate
  1969.  General @bf{EPM} related bugs and missing features:
  1970. @enumerate
  1971. @item
  1972.  I could disable the menu of changing the dictionary file when the
  1973.  Auto-spellcheck is on.  Just I would have to find/receive from you a trick how
  1974.  to detect it.
  1975. @item
  1976.  Sometimes actions from the menu items cannot be fired, while toolbar and
  1977.  hotkeys action are still working normally.  Any idea?  I have a suspiction that
  1978.  this could be related to the EPM's string length limitation.
  1979. @item
  1980.  Sometimes the syntax highliting stops working for the files newly loaded.
  1981.  Anyone knows why?
  1982. @item
  1983.  The same problem of the instability of the red oval over the first error found
  1984.  in .log file as in EPMTEX occured if the syntax highlighting is on.  The reason
  1985.  has been discovered recently:  it is caused by @tt{defload} syntax 
  1986.  highlighting method, since the the syntax highlighting is made AFTER ALL macros
  1987.  are finished, thus the oval is re-coloured.
  1988.  Workaround is not 'trivial'. However, I was hacking this in 1998 and I have 
  1989.  figured out that this problem could be solved by patching routine 
  1990.  @tt{ toggle_parse()} in stdctrl.e. pmCSTeX would set on global variables with 
  1991.  the filename and oval positions, which will be executed at the end of the 
  1992.  syntax colouring routine. If anybody is wishing to implement this idea, please 
  1993.  submit the patch for inclusion into pmCSTeX.
  1994. @item
  1995.  Netscape 4.61 contains new dictionaries; the most important are localized ones
  1996.  not available for EPM before (@tt{czech.dic}, for instance).  However, these
  1997.  dictionaries do not work with EPM.  Do you have an idea what to do?
  1998. @endenumerate
  1999. @h2 To do!
  2000. @label to do
  2001. @label To do
  2002.   @bf{Use EPM and (La)TeX every day! Have a nice day/night writing your beautiful 
  2003. documents.}
  2004. @if false
  2005.   eof pmCSTeX.emxdoc
  2006. @endif
  2007.