home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
e
/
epmtex12.zip
/
EPMTEX.DOC
< prev
next >
Wrap
Text File
|
1993-02-19
|
12KB
|
314 lines
TeX Macro Enhancements for EPM 5.51
Version 1.2c
Jon Hacker
Feb 17, 1993
Disclaimer:
~~~~~~~~~~~
See the attached license.txt file that I more or less pilfered from IBM's
license agreement.
Introduction:
~~~~~~~~~~~~
The E macro file tex.e when compiled with the IBM enhanced Editor translator
ETPM.EXE will add a TeX pull down menu to the EPM menu bar to files with
extensions .tex*, .sty, or .bbl. A custom TeX extension can also be
specified by defining MY_TEX_FILE_TYPE in the user's mycnf.e file.
Menu items in the TeX pull down menu allow the user to TeX (or LaTeX), preview
(portrait and landscape), and print (portrait and landscape) the TeX file
currently active in EPM. A custom 'user' mode may also be defined for special
needs unique to the user.
The E macro file texkeys.e when included will add TeX syntax assist and TeX
accelerator keys to files with extensions .tex*, .sty, or .bbl. A custom
TeX extension can also be specified by defining MY_TEX_FILE_TYPE in the user's
mycnf.e file.
German users are advised to read the section 'Support for German Users' at the
end of this document.
Installation:
~~~~~~~~~~~~
For installation instructions see the file install.doc included with this
package.
Using the EPM Pull Down Menu for TeX:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is a brief description of the menu items that appear on the TeX sub-menu
after installing the tex.e portion of EPMTeX V1.2c. The TeX menu will only
be loaded for files with extensions .tex*, .bbl, and .sty. You can
also specify an extension of your own choice by defining the variable
MY_TEX_FILE_TYPE in your mycnf.e file.
(Note: this is a new feature, please let me know what you think of it!)
>TeX Document.
Calls the version of TeX specified by the variable TEX_EXEC in the tex.e file
(or LATEX_EXEC if latex mode is selected) with the name of the current file
appended. Note that the appended filename is specified with UNIX type
directory delimiters (ie. '/') so that TeX will not barf.
If a 'user' mode was defined (see install.doc) then the executable file
specified by the variable TEX_USER_EXEC in the tex.e file (or LATEX_USER_EXEC
if latex mode is selected) will be run with the name of the current file
appended when the 'user' mode is selected.
If the Auto Save option is checked in the TeX pulldown menu, the current file
will first be saved to disk if the version in EPM memory has been modified.
>Preview Document
Calls the TeX previewer specified by the variable TEX_VIEW_EXEC (or
TEX_VIEWLA_EXEC if landscape mode is selected) with the name of the
associated DVI file for the current file loaded in EPM appended.
The TeX previewer specified by the variable TEX_VIEW_EXEC should be the
previewer used for portrait orientation. The TeX previewer specified by the
variable TEX_VIEWLA_EXEC should be the previewer used for landscape
orientation.
If the Auto LOG Delete option is checked in the TeX pulldown menu, the
associated LOG file for the current file will be automatically deleted if
it exists.
>Print Document
Calls the TeX dvi printer driver specified by the variable TEX_PRINT_EXEC (or
TEX_PRINTLA_EXEC if landscape mode is selected) with the name of the
associated DVI file for the current file loaded in EPM appended.
The TeX printer driver specified by the variable TEX_PRINT_EXEC should be the
printer driver used for portrait orientation. The TeX printer driver
specified by the variable TEX_PRINTLA_EXEC should be the printer driver used
for landscape orientation.
If the Auto LOG Delete option is checked in the TeX pulldown menu, the
associated LOG file for the current file will be automatically deleted if
it exists.
> Delete LOG File
If file exists, this command will delete the associated LOG file for the
current file loaded in EPM.
> Delete DVI File
If file exists, this command will delete the associated DVI file for the
current file loaded in EPM.
> Latex Mode
If enabled (checkmark beside menu entry), the version of TeX specified by the
variable LATEX_EXEC is called to TeX the document. Otherwise, the version of
TeX specified by the variable TEX_EXEC is called to TeX the document.
> 'User' Mode
If TEX_USER_MENU_TEXT was defined in tex.e, it will show up here.
If enabled (checkmark beside menu entry), the version of TeX specified by the
variable TEX_USER_EXEC (or LATEX_USER_EXEC if in latex mode) is called to TeX
the document. Otherwise, the version of TeX specified by the variable
TEX_EXEC (or LATEX_EXEC if in latex mode) is called to TeX the document.
> Landscape Mode
If enabled (checkmark beside menu entry), the landscape versions of the TeX
previewer and printer driver are used (specified by TEX_VIEWLA_EXEC and
TEX_PRINTLA_EXEC respectively). Otherwise, the portrait versions of
the TeX previewer and printer driver (specified by TEX_VIEW_EXEC and
TEX_PRINT_EXEC respectively) are used.
> Auto LOG Delete
If enabled (checkmark beside menu entry) the associated LOG file for the
current file will be automatically deleted if it exists when a preview or
print command is executed.
> Auto Save
If enabled (checkmark beside menu entry) the current file will first be
saved to disk if the version in EPM memory has been modified before the
document is TeX'd.
> Syntax Expansion
NOTE:
This option is not available if TeX syntax assist was not included at compile
time (default is to include it. Set TEX_SYNTAX_ASSIST = 0 to not include it.).
If enabled (checkmark beside menu entry) then the built-in TeX syntax
expansions will be enabled. This is equivalent to typing 'expand on' at the
EPM command line. The start-up mode is defined by the configuration constant
MY_EXPAND_ON described in the EPM documentation.
> Debug mode
If enabled (checkmark beside menu entry) the contents of the command
line sent to the OS/2 'start' command will be displayed on the EPM message
line. This can be useful when debugging the various TeX commands during the
installation of the EPMTeX enhancements. It is normally turned off. Note
that a list of recent messages can be retrieved in EPM under
options->messages.
Using the TeX Syntax Assist for EPM:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The TeX syntax assist provided with EPMTeX was developed by Jo Koenen. If you
have suggestions, or better yet source code, that will expand the functionality
of this section we would love to hear from you.
This is a brief description of the syntax assist and accelerator keys
added if TEX_SYNTAX_ASSIST is included at compile time.
> Syntax Expansion:
If TEX_SYNTAX_ASSIST = 1 is specified in your mycnf.e file, then the following
syntax expansions will be defined.
Loading a file with the extension .tex*, .sty or .bbl into EPM enables the
following enhancements: (the vertical bar | denotes the cursor position)
1. \be (including the blank after \be !!) will be expanded to
\begin{|}
now you can enter a TeX-word like itemize
\begin{itemize}
press enter and you get
\begin{itemize}
|
\end{itemize}
2. \it (including the blank) will be expanded to
\item |
3. \ci (including the blank) will be expanded to
\cite{|}
That's all I (Jo) have done so far, but it is all source code, therefore
it's expandable. Every suggestion is welcome.
>Accelerator Keys:
If TEX_WANT_ACCELERATOR_KEYS = 1 is specified in your mycnf.e file and syntax
expansion is enabled, then the following TeX accelerator keys will be defined.
Key assignments (the vertical bar | marks the curor position):
alt-a:=eqnarray|
alt-b:=\begin{|} \end{}
alt-c:=\cite{|}
alt-f:=\frac{|}{}
alt-i:=itemize|
alt-l:=\label{|}
alt-m:=\mbox{|}
alt-q:=equation|
alt-r:=\begin{tabular}{|c||}
\end{tabular}
{ :={|}
$ :=$|$
Configuration Constants:
~~~~~~~~~~~~~~~~~~~~~~~
The following configuration constants may be included in your mycnf.e file to
control syntax expansion support and define the start-up behaviour of the
'Latex mode', 'User mode' (if defined), 'Landscape mode', 'Auto LOG delete',
'Auto Save', and 'Debug mode' options.
TEX_SYNTAX_ASSIST
Set to 1 to include TeX Syntax assist in EPM. Set to 0 to not include
this option. Default is (1), option on.
TEX_WANT_ACCELERATOR_KEYS
Set to 1 to include TeX keyboard accelerator key definitions in EPM. Set to
0 to leave the keyboard alone. Default is (0), option off. Requires
TEX_SYNTAX_ASSIST = 1 to be set to have affect.
TEX_LATEX_MODE
Set to 0 to turn EPMTeX latex mode off at start-up. Set to 1 to turn mode on
at start-up. Default is (0), latex mode off.
TEX_USER_MODE
Set to 0 to turn EPMTeX 'user' mode off at start-up. Set to 1 to turn mode
on at start-up. Default is (0), user mode off. The 'user' mode is only
defined if TEX_USER_MENU_TEXT is defined in tex.e (see install.doc).
TEX_LANDSCAPE_MODE
Set to 0 to turn EPMTeX landscape mode off at start-up. Set to 1 to turn
mode on at start-up. Default is (0), landscape mode off.
TEX_AUTO_DELETE_LOG
Set to 0 to turn EPMTeX log file auto-delete option off at start-up. Set to 1
to turn option on at start-up. Default is (1), option on.
TEX_AUTO_SAVE_DOC
Set to 0 to turn EPMTeX smart save before TeX option off at start-up. Set to
1 to turn option on at start-up. Default is (1), option on.
TEX_DEBUG_MODE
Set to 0 to turn EPMTeX debug mode off at start-up. Set to 1 to turn option
on at start-up. Default is (0), option off.
Support for German Users:
~~~~~~~~~~~~~~~~~~~~~~~~
German users who compiled the german versions of epmtex.e (see install.doc for
more info) have an additional mode for german hyphenation.
> German Mode
If enabled (checkmark beside menu entry), the version of TeX specified by the
variable TEX_USER_EXEC (or LATEX_USER_EXEC if in Latex mode) is called to TeX
the document. Otherwise, the version of TeX specified by the variable
TEX_EXEC (or LATEX_EXEC if in latex mode) is called to TeX the document. The
german mode can be used to specify support for german hyphenation (ie.
plaing and lplaing format files). It is an example of the use of the 'user'
mode of EPMTeX.
Support for emTeX's DVIPM betatest 1.4s:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is only available in the German version for now (Jo wrote it). If
there is enough interest I will put it in the general version as well.
The current release of DVIPM 1.4s has the following bug: viewing a DVI-file
and TeXing this file again without closing dvipm causes an error because TeX
can't write to the DVI-file opened by the previewer. Therefore, you can't
use the reload feature of DVIPM since the file has to be unloaded before
TeXing and loaded again to view the DVI-file. This will be changed in
release 1.4t. In the german mode I included a workaround.
> Copy to temp.dvi
Copies myfile.dvi to temp.dvi
> Preview temp.dvi
loads the previewer with temp.dvi
Now it's possible to TeX the document, while the DVIPM is running with temp.dvi.
Copying myfile.dvi to temp.dvi works without an error although temp.dvi is used by
the previewer. File Reload with DVIPM reads the new temp.dvi. As a timesaving
result, DVIPM has to be loaded only once.