home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / packages / LaTeXinfo.shar.2 / macsyma.sty < prev    next >
Encoding:
Text File  |  1990-07-22  |  2.6 KB  |  87 lines

  1. % Copyright 1987 Mike Clarkson.
  2. % Portions of this document may be copyright
  3. % Massachusetts Institute of Technology
  4. %
  5. % To make a TeX copy of this manual:
  6. %    make sure texinfo.tex in on TeX's path
  7. %    tex users-doc
  8. %    texindex users-doc.pg
  9. %    texindex users-doc.vr
  10. %    texindex users-doc.fn
  11. %    texindex users-doc.cp
  12. %    tex users-doc
  13.  
  14. % To make a GNU Emacs copy of this manual:
  15. %    execute the following GNU Emacs code
  16. %
  17. % (load-library "texinfmt")
  18. % (defun texinfo-format-dots ()
  19. %   (texinfo-discard-command)
  20. %   (insert "..."))
  21. % (defun make-manual ()
  22. %   (interactive)
  23. %   (put 'f 'texinfo-format 'texinfo-format-noop)
  24. %   (put 'v 'texinfo-format 'texinfo-format-noop)
  25. %   (put 'o 'texinfo-format 'texinfo-format-noop)
  26. %   (put 'fb 'texinfo-format 'texinfo-format-noop)
  27. %   (put 'vb 'texinfo-format 'texinfo-format-noop)
  28. %   (put 'concept  'texinfo-format 'texinfo-format-defn)
  29. %   (put 'filen 'texinfo-format 'texinfo-format-code)
  30. %   (put 'flushr 'texinfo-format 'texinfo-format-noop)
  31. %   (put 'head  'texinfo-format 'texinfo-format-head)
  32. %   (put 'DOTS 'texinfo-format 'texinfo-format-dots) ;; DUMB
  33. %   (let ((lastmessage "Formatting Info file..."))
  34. %     (message lastmessage)
  35. %     (texinfo-format-buffer-1)
  36. %     (message
  37. %      (setq lastmessage
  38. %        "Making tags table for Info file..."))
  39. %     (Info-tagify)
  40. %     (message (concat lastmessage
  41. %              (if (interactive-p)
  42. %              "done.  Now save it." "done."))))
  43. %   )
  44. %
  45. % (defun texinfo-format-head ()
  46. %   (kill-line)
  47. %   (delete-char 1)
  48. %   (insert (texinfo-parse-arg-discard))
  49. %   (goto-char texinfo-command-start))
  50. %
  51. %    Then M-x make-manual
  52.  
  53. \voffset= -30pt
  54. \textheight 580pt     % increase from 536pt
  55. \textwidth  450pt    % increase from 360pt
  56. \hoffset= -45pt        % compensate to keep centered
  57. \if@twoside 
  58.     \reversemarginpar    % I assume the binding side is the
  59.     \oddsidemargin 70pt     % bigger margin, so reverse the
  60.     \evensidemargin 38pt     % placement  of marginpars
  61.     \marginparwidth 40pt    % less of a margin to work with
  62.   \else \oddsidemargin 54pt \evensidemargin 54pt \marginparwidth 83pt 
  63.     \fi
  64.  
  65.  
  66. % Preliminary stuff before texinfo format is turned on
  67. \def\Macsyma{{\bf Macsyma}}
  68.  
  69. \def\f#1{\fnindex{#1}{\sf #1}}
  70. \def\v#1{\vrindex{#1}{\sf #1}}
  71. \def\o#1{{\sf #1}}
  72. \def\fb#1{\fnindexbold{#1}{\large\sf #1}}
  73. \def\vb#1{\vrindexbold{#1}{\large\sf #1}}
  74. \def\concept#1{\cpindex{#1}#1}
  75. \def\filen#1{\tpindex{#1}{\tt #1}}
  76.  
  77. \def\ExampleInFile#1{\*\noindent There is an example in the file: \filen{#1}.}
  78. \def\DemoInFile#1{\*\noindent There is a demo in the file: \filen{#1}.}
  79. \def\UsageInFile#1{\*\noindent There are some usage notes in the file: 
  80. \filen{#1}.}
  81.  
  82. %\def\pcp#1{\marginpar{{\scriptsize #1}}\kyindex{#1}}
  83. \def\pcp#1{}
  84.  
  85.  
  86.