home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / tex / 15491 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.1 KB  |  75 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!mcsun!Germany.EU.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!sgiblab!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!kowari.cpsg.com.au!als
  3. From: als@kowari.cpsg.com.au (Anthony Shipman)
  4. Subject: Re: HyperTeX
  5. Message-ID: <als.728067825@marloo.kowari.cpsg.com.au>
  6. Lines: 62
  7. Sender: news@kowari.cpsg.com.au (USENET News System)
  8. Nntp-Posting-Host: marloo.cpsg.com.au
  9. Organization: Computer Power Software Group Pty Ltd
  10. References: <16B569888.UPP201@rhrz.uni-bonn.de> <1j6g54INNcr8@life.ai.mit.edu> <ALIEN.93Jan18172626@vulcan.essex.ac.uk> <1jqadtINN50f@life.ai.mit.edu>
  11. Date: Tue, 26 Jan 1993 17:03:45 GMT
  12.  
  13. bkph@wheat-chex.ai.mit.edu (Berthold K.P. Horn) writes:
  14. >In article <ALIEN.93Jan18172626@vulcan.essex.ac.uk> alien@essex.ac.uk ("Adrian F Clark") writes:
  15. >   Maybe someone could post definitions for the \specials involved, so
  16. >   that we can consider extending existing previewers in a compatible
  17. >   way.
  18.  
  19.  
  20. >OK, here is a brief summary of some of the relevant \special's supported
  21. >by DVIWindo - along with some hype about `electronic publishing' :-*
  22.  
  23. >(*) Hyper-text buttons are set up using:
  24.  
  25. >\special{button: <width> <height> <mark> [<file>]}
  26.  
  27. >This creates a sensitive area of specified width and height, with the
  28. >lower left corner at TeX's current point.  The semantics of this is
  29. >that if the user clicks the left mouse button in the hypertext button 
  30. >area, viewing is transferred to the corresponding labelled mark 
  31. >(possibily in another DVI file).  
  32.  
  33.  
  34.  
  35. I have my own hypertext-ish dvi browser.  Its specials are:
  36.  
  37.  
  38. \special{hyper button {ht} {dp} {wd} {local <tag>}}
  39.  
  40.     This places a hyper button on the page with the given box dimensions.
  41.  
  42.     The <tag> is expected to be the page number within the current 
  43.     document.  The number may be in roman or decimal.
  44.  
  45.     The action of the button is to jump to the given page number.
  46.  
  47. \special{hyper button {ht} {dp} {wd} {jump <tag>}}
  48.  
  49.     The <tag> is expected to be a document name followed by the tag string
  50.     with white space between them.  The action of the button is to jump
  51.     to the given document at the page that contains the given tag.
  52.  
  53. ========
  54.  
  55. The parameters are designed to be easy to generate from TeX macros.  The
  56. box dimensions come directly from \wd etc.  I think it is important to have
  57. the \dp parameter to cover the descenders in a label.  The {} are optional
  58. braces around a number as for me this makes it easier to write the macros.
  59.  
  60. The browser draws a thin box around the buttons.
  61.  
  62. The document, tag string pair is mapped through a database to a dvi file path
  63. and page number.  Hyper jumps can only be to page boundaries in my system.
  64. The database is generated from the output of auxillary files produced
  65. while processing the documents.
  66.  
  67. In the future the document, tag string pair could be replaced by a 
  68. HyTime-like idref.
  69.  
  70. --
  71. Anthony Shipman                 "You've got to be taught before it's too late,
  72. CP Software Export Pty Ltd,      Before you are six or seven or eight,
  73. 19 Cato St., East Hawthorn,      To hate all the people your relatives hate,
  74. Melbourne, Australia, 3121       You've got to be carefully taught."  R&H
  75.