home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / t / tex / !DaTeX / !Help next >
Encoding:
Text File  |  1994-06-02  |  17.5 KB  |  644 lines

  1.                    Help file for DaTeX
  2.                    ===================
  3.  
  4.                       Version 3.10
  5.  
  6.                  © Vampire Products 1994
  7.                  
  8. This product is FreeWare. You are free to copy it
  9. providing all accompanying files are included and no
  10. charge, other than to cover costs, is made.
  11.  
  12. 0. Contents
  13. -----------
  14. 1 What is DaTeX?
  15. 2 Starting DaTeX
  16. 3 Using DaTeX
  17.    3.1 The Control Window
  18.       3.1.1 Editing a TeX document
  19.       3.1.2 Viewing a DVI file
  20.       3.1.3 Printing the DVI file
  21.       3.1.4 Viewing the last log
  22.       3.1.5 Opening the directory viewer
  23.       3.1.6 Tidying the directory
  24.       3.1.7 Processing the document
  25.    3.2. The Choices window
  26.       3.2.1 The Save icon
  27.       3.2.2 The Apply icon
  28.       3.2.3 The Multi-task option
  29.       3.2.4 The Virtual option
  30.       3.2.5 Memory allocation
  31.          3.2.5.1 The sliding bar
  32.          3.2.5.2 The < and > arrows
  33.          3.2.5.3 The writable icon
  34.       3.2.6 The Auto Run option
  35.       3.2.7 The Auto Edit option
  36.       3.2.8 The Print to file option
  37.       3.2.9 The Printer menu icon
  38.    3.3 The Create as Window
  39.       3.3.1 Creating LaTeX documents
  40.    3.4 The Task Output Window
  41.       3.4.1 Pausing the task
  42.       3.4.2 Resuming the task
  43.       3.4.3 Killing the task
  44. 4 Printers
  45. 5 The DaTeX$Options system variable
  46. 6 ArMaTuReS support
  47. 7 Problems
  48.    7.1 !Virtual
  49.    7.2 DVI converter names
  50.    7.3 Task input
  51. 8 Acknowledgements
  52. 9 Disclaimer
  53. 10 Contacting me
  54.  
  55.  
  56. 1. What is DaTeX?
  57. -----------------
  58.  
  59.   DaTeX is a WIMP front-end to the ArmTeX suite of
  60. programs ported by Mark Sinke. It assumes that you
  61. already have ArmTeX installed and set up how you
  62. like it.
  63.  
  64. So why should you use DaTeX if TeX already exists?
  65. The answer to this is that it allows you to do
  66. things that running TeX from the command line does
  67. not letyou do easily.
  68.  
  69.   1 - View the DVI file automatically when finished
  70.       processing.
  71.  
  72.   2 - Multi-task whilst processing a document.
  73.  
  74.   3 - Process the DVI file and send it to the
  75.       printer
  76.  
  77.   4 - Easy creation of new TeX documents with a set
  78.       of customizable default files.
  79.  
  80.   5 - Automatic re-processing of LaTeX documents
  81.       with cross-references when necessary.
  82.  
  83.   6 - Support for Virtual (See problems below)
  84.  
  85.   7 - Support for ArMaTuReS
  86.  
  87. N.B. DaTeX is heavily biased towards using LaTeX
  88.      since that is the format I use most often.
  89.  
  90. 2. Starting DaTeX
  91. -----------------
  92.  
  93.   To start DaTeX double click on the !DaTeX icon in
  94. the directory viewer. The application will load and
  95. appear on the right side of the icon bar.
  96.  
  97. You can use some of the available options without
  98. having TeX "visible" to the system but it isn't all
  99. that useful. I suggest that you add the line
  100.   Filer_Run <your apps directory path>.!DaTeX
  101. to the TeXPaths file, inserting the appropriate
  102. path name to automatically load DaTeX when using
  103. TeX.
  104.  
  105.  
  106. 3. Using DaTeX
  107. --------------
  108.  
  109.   To inform DaTeX which file to process drag either
  110. the directory containing the TeX file, or the TeX
  111. file itself to the DaTeX icon on the icon bar.
  112. Double-clicking on TeX or LaTeX files will also
  113. achieve the same effect but only if DaTeX is running.
  114. What happens next depends on the options you have
  115. selected (see Choices window below).
  116.  
  117. One of four things will happen :-
  118.  
  119.   1 - The document will be processed
  120.   2 - The document will be loaded into an editor
  121.   3 - Both of the above
  122.   4 - The Control window will appear
  123.  
  124. The default is for the Control window to appear.
  125.  
  126.   To process the current document either use the
  127. Control window, or click the Left mouse button on
  128. the DaTeX icon.
  129.  
  130.   To view the DVI file either use the Control
  131. window or click the Right mouse button on the DaTeX
  132. icon.
  133. When using the DaTeX icon, if the TeX file has been
  134. updated it is automatically re-processed before
  135. viewing.
  136.  
  137.  
  138. 3.1 The Control Window
  139. ----------------------
  140.  
  141.   This is the main DaTeX control area. The current
  142. document is displayed in the box.
  143.  
  144. This window is opened when the Control menu option
  145. is selected or if no Auto options are set.
  146.  
  147. There are a number of available options :-
  148.  
  149.   1 - Edit the document
  150.   2 - View the document
  151.   3 - Print the document
  152.   4 - View the last log for the document
  153.   5 - Open a directory viewer containing the
  154.       document
  155.   6 - Remove all the non-essential files from the
  156.       document directory
  157.   7 - Process the document
  158.   
  159. 3.1.1 Editing a TeX document
  160. ----------------------------
  161.  
  162.   When the Edit Document icon is selected, or if
  163. the Auto Edit option is set, DaTeX will attempt to
  164. load the the TeX file into an editor. If an editor
  165. is already loaded it will pass it to that editor,
  166. if not the default editor is loaded and the TeX
  167. file is passed to that.
  168.  
  169.  
  170. 3.1.2 Viewing a DVI file
  171. ------------------------
  172.  
  173.   If a DVI viewer is already loaded, DaTeX will
  174. pass that the DVI file, otherwise the default
  175. viewer will be loaded and the file passed to it.
  176.  
  177. If the View Document icon was selected, the current
  178. DVI file will be viewed, however if the DaTeX icon
  179. was clicked with the Right mouse button a check
  180. will first be made to see if the TeX file has been
  181. altered since the DVI file was created. If it has
  182. been then the TeX file will be re-processed and the
  183. resulting DVI will be viewed.
  184.  
  185.  
  186. 3.1.3 Printing the DVI file
  187. ---------------------------
  188.  
  189.   If the Print Document icon is selected then the
  190. DVI file will be passed to the currently selected
  191. DVI converter (See Printers below). The resulting
  192. file will then be sent to the !Printers application,
  193. unless the Print to file option has been set (see
  194. Choices window below).
  195.  
  196. DaTeX does not check whether the correct printer
  197. type has been activated, it relies on the !Printers
  198. application to do any necessary checks.
  199.  
  200.  
  201. 3.1.4 Viewing the last log
  202. --------------------------
  203.  
  204.   Whenever TeX processed a document it stores a
  205. log of the files included and any errors that occur.
  206. Choosing the View Last Log icon will load this into
  207. a editor for perusal should you wish to refer to
  208. something, e.g. how you corrected an error.
  209.  
  210.  
  211. 3.1.5 Opening the directory viewer
  212. ----------------------------------
  213.  
  214.   Selecting the Open Directory icon will open the
  215. directory viewer which contains the current TeX
  216. document.
  217.  
  218.  
  219. 3.1.6 Tidying the directory
  220. ---------------------------
  221.  
  222.   Selecting the Tidy Directory icon will remove the
  223. TeX information files such as 'aux','log','toc',
  224. from the current TeX documents directory.
  225.  
  226.  
  227. 3.1.7 Processing the document
  228. -----------------------------
  229.  
  230.   The bottom line of icons determine how TeX should
  231. process the document. Choosing the LaTeX icon
  232. processes the file as a LaTeX document, choosing
  233. the SliTeX icon processes it as a SliTeX document,
  234. etc.
  235.  
  236. This determines how the document will be processed
  237. when clicking on the DaTeX icon.
  238.  
  239.  
  240. 3.2 The Choices window
  241. ----------------------
  242.  
  243.   This window allows you to configure how DaTeX
  244. works. It is opened by selecting the Choices menu
  245. option. If the window is closed without selecting
  246. the Save or Apply icons then any changes made are
  247. discarded.
  248.  
  249.  
  250. 3.2.1 The Save icon
  251. -------------------
  252.  
  253.   Selecting the Save icon will close the Choices
  254. window, save the current options as the default
  255. options on start up, and apply the changes for the
  256. rest of the session.
  257.  
  258.  
  259. 3.2.2 The Apply icon
  260. --------------------
  261.  
  262.   Selecting the Apply icon will close the Choices
  263. window and apply the changes made to the rest of
  264. the session.
  265.  
  266.  
  267. 3.2.3 The Multi-task option
  268. ---------------------------
  269.  
  270.   If the Multi-task option is set then when
  271. processing a TeX document it will be run in a 
  272. TaskWindow, allowing you to continue using the
  273. desktop while it is running. You do not have to
  274. have a TaskWindow providing editor loaded to use
  275. this facility.
  276.  
  277. If this option is not selected then when processing
  278. a TeX document it takes over control from the
  279. desktop and only returns it when the processing is
  280. complete.
  281. This is faster than running in a TaskWindow.
  282.  
  283.  
  284. 3.2.4 The Virtual option
  285. ------------------------
  286.  
  287.   If the Virtual option is set then DaTeX will
  288. attempt to use the !Virtual application to enable
  289. larger documents to be processed. When set the
  290. amount of memory allocated is in terms of Mb of
  291. disc swap space rather than Kb of RAM.
  292.  
  293. If this option is set then all processing will be
  294. multi-tasking since !Virtual only operates in the
  295. desktop.
  296.  
  297. N.B. At the time of release I have not been able to
  298.      run TeX under Virtual correctly. See the
  299.      problem section below for details.
  300.      
  301.      
  302. 3.2.5 Memory allocation
  303. -----------------------
  304.  
  305.   Memory is allocated in pages although the display
  306. is in Kilobytes. Therefore machines with less
  307. memory have a greater degree of control when
  308. selecting the required amount.
  309.   You cannot allocate more than the current amount
  310. of free memory, although if this later changes the
  311. amount allocated is not updated.
  312.  
  313.   There are three methods of altering the amount of
  314. memory assigned to TeX when processing.
  315.  
  316.  
  317. 3.2.5.1 The sliding bar
  318. -----------------------
  319.  
  320.   Dragging the red bar will alter the amount of
  321. memory to the percentage of the area covered, i.e.
  322. dragging it half way will allocated 50% of the
  323. total memory of the machine. You cannot drag the
  324. bar further than the amount of free memory available
  325.  
  326.  
  327. 3.2.5.2 The < and > arrows
  328. --------------------------
  329.  
  330.   Clicking on these icons will increase and
  331. decrease the amount of memory respectively.
  332. Clicking with the Left button in/decreases by one
  333. page, clicking with the Right button reverses the
  334. action. Holding the Shift key down while clicking
  335. will alter the value by 8 pages.
  336.  
  337.  
  338. 3.2.5.3 The writable icon
  339. -------------------------
  340.  
  341.   Entering a value in the writable icon and
  342. pressing Return will set the amount to the nearest
  343. lowest number of pages.
  344.  
  345.  
  346. 3.2.6 The Auto Run option
  347. -------------------------
  348.  
  349.   If the Auto Run option is set then when a new
  350. document is dragged to DaTeX it is automatically
  351. processed depending on its file type.
  352.   If the type of the file is unknown a message box
  353. will appear asking how to process the document.
  354. Selecting Cancel will abort the process, otherwise
  355. the document will be processed according to the
  356. icon selected.
  357.  
  358.  
  359. 3.2.7 The Auto Edit option
  360. --------------------------
  361.  
  362.   If the Auto Edit option is set then when a new
  363. document is dragged to DaTeX it is automatically
  364. loaded into an editor.
  365.  
  366.  
  367. 3.2.8 The Print to file option
  368. ------------------------------ 
  369.  
  370.   If the Print to file option is set then, when
  371. printing a DVI file, the converted DVI file is not
  372. sent to the !Printers application, it is retained
  373. in the document directory.
  374.  
  375.  
  376. 3.2.9 The Printer menu icon
  377. ---------------------------
  378.  
  379.   Clicking on this icon produces a menu containing
  380. the available printer types. Selecting one of these
  381. sets the type of file created when the Print
  382. Document icon of the Control menu is selected.
  383. See the Printers options below for details on
  384. creating new printer types.
  385.  
  386.  
  387. 3.3 The Create as Window
  388. ------------------------
  389.  
  390.   This window appears when following the Create
  391. menu options. It is a standard RISC OS Save As
  392. window.
  393.  
  394.   When creating a new document a default file is
  395. copied as the TeX file based on the type of
  396. document being created. These files reside in the
  397. Defaults directory of the !DaTeX application and
  398. can be altered to suit your needs.
  399.  
  400.  
  401. 3.3.1 Creating LaTeX documents
  402. ------------------------------
  403.  
  404.   The Create->LaTeX option is different to the
  405. other options in that it must be selected to show
  406. the window.
  407.   This is because this window has a separate menu
  408. attached to it. This menu allows the type of LaTeX
  409. document style to be created to be chosen.
  410. The four default styles, Article,Report,Book and
  411. Letter, are available together with a writable
  412. user style.
  413.  
  414.   The only way to remove this window is to select
  415. either the Save or Cancel icon.
  416.  
  417.  
  418. 3.4 The Task Output Window
  419. --------------------------
  420.  
  421.   If the Multi-task option is set then all output
  422. from a DaTeX job will be sent to this window. The
  423. window retains all the output by automatically
  424. adjusting the size of its work area.
  425.  
  426. When any new output is sent to the window it
  427. automatically scrolls to the bottom of the work
  428. area.
  429.  
  430.   When a job is running, the DaTeX iconbar icon
  431. will change to show the word 'Running' under the
  432. icon.
  433.  
  434.   The function of the DaTeX icon changes when a job
  435. is running. When clicked, if the Output window is
  436. closed it will open it, otherwise it ignores the
  437. Left and Right mouse buttons.
  438.  
  439.   When the job is complete, the DaTeX icon will
  440. return to showing the word 'DaTeX'. The window
  441. title will also change by having ' - Completed'
  442. appended to it.
  443.  The message 'Press SPACE or click mouse to clear'
  444. will appear at the bottom of the window. Performing
  445. one of these options will clear the work area and
  446. free up the additional memory used.
  447.  If the Output window is closed when the job
  448. completes then the memory is not freed until the
  449. window is opened and one of the above is performed.
  450.  
  451.   Clicking the menu button over this window allows
  452. you to control the task.
  453.  
  454. 3.4.1 Pausing the task
  455. ----------------------
  456.  
  457.   Selecting the Pause menu option will halt the
  458. current job. This is useful if you wish to do some
  459. short processor intensive work.
  460. When the job is paused, the DaTeX icon will change
  461. to show the word 'Paused'.
  462.  
  463. 3.4.2 Resuming the task
  464. -----------------------
  465.  
  466.   Selecting the Resume menu option will resume
  467. execution of a previously paused job. The DaTeX
  468. icon will change to show that the job is now
  469. running.
  470.  
  471. 3.4.3 Killing the task
  472. ----------------------
  473.  
  474.   Selecting the Kill menu option will terminate the
  475. current job. This should only be used if really
  476. necessary since TeX does not tidy up when it is
  477. terminated in this way; it does not close any files
  478. it has opened.
  479.  
  480.  
  481.  
  482. 4. Printers
  483. -----------
  484.  
  485.   In order to print a DVI file it must first be
  486. converted into a format the printer understands.
  487. This is achieved by use of dedicated DVI converter
  488. programs, one for each type.
  489.  
  490. DaTeX allows you to configure which converter you
  491. wish to use by altering the Printers file inside
  492. the !DaTeX application directory. There are 5
  493. predefined printer types :-
  494.  
  495.   1 - PostScript
  496.   2 - Dot-matrix
  497.   3 - Apple Laser Writer
  498.   4 - Hewlett-Packard DeskJet
  499.   5 - Hewlett-Packard LaserJet
  500.   
  501. The PostScript printer uses the 'dvips' converter
  502. program, and the Dot-matrix printer uses the 
  503. 'dvieps' convertor.
  504.  
  505. The format of the Printers file is
  506.  
  507. <Number of printers defined>
  508. <Menu name> <filetype> <output name> <converter> [<options>]
  509. ...
  510.  
  511. Where
  512.  
  513.   <menu name> = The name that appears in the
  514.       Choices window Printers menu
  515.   <filetype>  = The hex value of the filetype to
  516.       identify the output file
  517.   <output name> = The name of the file that will
  518.       contain the converted output.
  519.   <converter> = The name of the command to start
  520.       the DVI converter
  521.   <options>   = Any options needed to be given to
  522.       the converter
  523.       
  524.  Each section can be separated by any number of
  525. tabs or spaces.
  526. Any line that begins with a '#' will be ignored.
  527.  
  528. If a '%0' appears in the options it will be
  529. replaced by the document name (not the DVI
  530. filename).
  531.  
  532. The output name is used to send the converted data
  533. to the printer. This is necessary since there is
  534. no easy way to determine the name of the output
  535. file from the command, only dvips allows you to
  536. specify the name.
  537.  
  538. DaTeX only read this file once, at start up, so if
  539. any changes are made to it, DaTeX must be restarted.
  540.  
  541.  
  542. 5. The DaTeX$Options system variable
  543. ------------------------------------
  544.  
  545.   When starting up a new job, DaTeX looks at the
  546. DaTeX$Options system variable to determine the
  547. colours of the Output window, and whether ArmTeX or
  548. ArMaTuReS is being used.
  549.  
  550.   The only recognised options are :-
  551.   
  552.   F<colour> - the colour of the output text
  553.   B<colour> - the colour of the background
  554.   TOAL      - ArMaTuReS is being used (see below)
  555.   
  556. Anything else will produce a warning box before
  557. continuing.
  558.  
  559.  
  560. 6. ArMaTuReS support
  561. --------------------
  562.  
  563.   By setting the DaTeX$Options system variable to
  564. contain the word 'TOAL' DaTeX will alter how it
  565. starts a TeX job to use the ArMaTuReS commands.
  566. This has as yet not been tested since I removed
  567. ArMaTuReS to make room for ArmTeX!
  568.  
  569.  
  570. 7. Problems
  571. -----------
  572.  
  573.   The following is a list of all known problems.
  574.  
  575. 7.1 !Virtual
  576. ------------
  577.  
  578.   The bigest problem encountered so far is that I
  579. have been unable to get 'bigvirtex' running Virtual
  580. despite the fact that the documentation says it
  581. will!
  582.  
  583. 7.2 Task input
  584. --------------
  585.  
  586.   There is currently no way of indicating that the
  587. current job has stopped because it requires some
  588. input from the user. The only way I can see of
  589. achieving this is to periodically send a
  590. non-printable character to the task and see if it
  591. is echoed back, but this is very messy :-(
  592.  
  593. 7.2 Lack of memory
  594. ------------------
  595.  
  596.   Currently if there is no memory left when a TeX
  597. job is started it simply doesn't display an output
  598. window. Therefore, if the job requires input the
  599. only way the user can tell is if the disk stops being
  600. accessed :-(
  601.  
  602. 8. Acknowledgements
  603. -------------------
  604.  
  605. I would like to thank Richard Joseph for designing
  606. the DaTeX icon, its much better than the TeX logo
  607. I was using!
  608.  
  609. I would also like to thank Alun Jones for providing
  610. me with an easy to install version of ArmTeX.
  611.  
  612. And lastly, Mark Sinke for doing such a good job of
  613. porting TeX.
  614.  
  615.  
  616. 9. Disclaimer
  617. -------------
  618.  
  619.   I accept no responsibilty for any damage or loss
  620. of data resulting from the use of this program. If
  621. it does occur please let me know so I can fix the
  622. problem :-)
  623.   In any case you should be making regular backups
  624. of any important data :-)
  625.  
  626.  
  627. 10. Contacting me
  628. -----------------
  629.  
  630.   If you wish to contact me to report any problems,
  631. or even just to compliment me on writing such a 
  632. magnificent program :-), then I can be reached at
  633.  
  634.    Email: daa93@aber.ac.uk
  635.    
  636.    Snail: David Arnold
  637.           Dept. Computer Science
  638.           University of Wales
  639.           Aberystwyth
  640.           Dyfed
  641.           SY23 3DB
  642.  
  643.  
  644. That's all the help you get! Enjoy DaTeX!