help.tex 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. \documentstyle{article}
  2. \title{The REDUCE reference format}
  3. \begin{document}
  4. %\maketitle
  5. The REDUCE reference format is used to create material for help systems on
  6. various platforms. In particular, it is designed to allow formatting in
  7. \LaTeX{} as well as automatic translation into a format suitable for
  8. help systems like MS-Windows help or GNU info.
  9. The structure of the text is specified by suitable \verb|section|,
  10. \verb|\subsection|, and \verb|subsubsection| commands.
  11. Every entry in the reference text is given by a special environment.
  12. The following environments of one argument are defined:
  13. \begin{verbatim}
  14. \begin{Declaration}{id} ... \end{Declaration}
  15. \begin{Operator}{id} ... \end{Operator}
  16. \begin{Switch}{id} ... \end{Switch}
  17. \begin{Variable}{id} ... \end{Variable}
  18. \end{verbatim}
  19. The argument denotes the object to be explained. The side effects of
  20. these environments are
  21. \begin{enumerate}
  22. \item An appropriate node is defined in the info output.
  23. \item An index entry is generated.
  24. \item A cross reference is generated. This can be used in the
  25. \verb|\ref|, \verb|\pageref|, \verb|\nameref|, and \verb|\see|
  26. commands.
  27. \end{enumerate}
  28. Additional index entries or cross reference keys can be generated as usual,
  29. with the \verb|\index| and \verb|\label| commands.
  30. Within each of these environments the following special environments
  31. may be used:
  32. \begin{itemize}
  33. \item
  34. \begin{verbatim}
  35. \begin{Syntax} ... \end{Syntax}
  36. \end{verbatim}
  37. This is for the syntax description. (add description here)
  38. \item
  39. \begin{verbatim}
  40. \begin{Comments} ... \end{Comments}
  41. \end{verbatim}
  42. This is for the explanation.
  43. \item
  44. \begin{verbatim}
  45. \begin{Examples} ... \end{Examples}
  46. \end{verbatim}
  47. This is similar to a two-column tabular environment and is to show
  48. REDUCE input and output on the same line.
  49. \item
  50. \begin{verbatim}
  51. \begin{Related} ... \end{Related}
  52. \end{verbatim}
  53. This is similar to an \verb|itemize| environment. Every entry
  54. starts with a \verb|\item[|{\it name\/}\verb|]| command and refers
  55. to related entries in the reference guide.
  56. \end{itemize}
  57. The following new commands are defined:
  58. \begin{itemize}
  59. \item \verb|\name{|{\it id\/}\verb|}| for identifiers of all sorts.
  60. \item \verb|\nameref{|{\it id\/}\verb|}| is an abbreviation for
  61. \verb|name| followed by \verb|\ref|.
  62. \item \verb|\see{|{\it id\/}\verb|}| is an abbreviation for ``see
  63. also'' followed by the reference.
  64. \end{itemize}
  65. Since the input is to be translated automatically into some simple
  66. format, many of the normal \LaTeX{} commands are not allowed in the
  67. text. There is, however, the possibility to include certain text only
  68. in the printed version, or in the info version of the document. To
  69. this end there is one new command,
  70. \begin{quotation}
  71. \verb|\IFTEX{|\TeX{} text\verb|}{|info text\verb|}|
  72. \end{quotation}
  73. and two new environments,
  74. \begin{verbatim}
  75. \begin{TEX} ... \end{TEX}
  76. \begin{INFO} ... \end{INFO}
  77. \end{verbatim}
  78. For example, a mathematical formula like $\exp(x)$ must be written as
  79. follows:
  80. \begin{verbatim}
  81. \IFTEX{$\exp(x)$}{exp(x)}
  82. \end{verbatim}
  83. The following commands and environments are only allowed in the first
  84. argument to the \verb|\IFTEX| command or in the body of a
  85. \verb|TEX| environment:
  86. \begin{itemize}
  87. \item All math mode commands and environments (\verb|$|, \verb|\(|,
  88. \verb|\)|, \verb|\[|, \verb|\]|, and the \verb|displaymath|,
  89. \verb|equation|, \verb|eqnarray|, and \verb|array|
  90. environments).
  91. \item All size changing commands like \verb|\normalsize|,
  92. \verb|\large|, etc., or their environment forms.
  93. \item All typeface changing commands like \verb|\it|, \verb|\sf|,
  94. except \verb|\em| to emphasize a given portion of text. The
  95. same applies to the corresponding environment forms.
  96. \item The \verb|*|-variants of the \verb|\verb| command and the
  97. \verb|verbatim| environment.
  98. \item The \verb|picture|, \verb|tabbing|, and \verb|tabular|
  99. environments.
  100. \item All float environments, like \verb|table| and \verb|figure|.
  101. \item (what's missing here?)
  102. \end{itemize}
  103. \end{document}