fpc-html.tex 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %
  2. % $Id$
  3. % This file is part of the FPC documentation.
  4. % Copyright (C) 1997, by Michael Van Canneyt
  5. %
  6. % The FPC documentation is free text; you can redistribute it and/or
  7. % modify it under the terms of the GNU Library General Public License as
  8. % published by the Free Software Foundation; either version 2 of the
  9. % License, or (at your option) any later version.
  10. %
  11. % The FPC Documentation is distributed in the hope that it will be useful,
  12. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. % Library General Public License for more details.
  15. %
  16. % You should have received a copy of the GNU Library General Public
  17. % License along with the FPC documentation; see the file COPYING.LIB. If not,
  18. % write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. % Boston, MA 02111-1307, USA.
  20. %
  21. % Dummy
  22. \newenvironment{FPCList}{\begin{description}}{\end{description}}
  23. \newcommand{\functionl}[7]{
  24. \subsection{#1}
  25. \label{fu:#2}
  26. \index{#1}
  27. \subsubsection*{Declaration:}
  28. \texttt {Function #1 #3 : #4;}
  29. \subsubsection*{Description:}
  30. #5
  31. \subsubsection*{Errors:}
  32. #6
  33. \subsubsection*{See also:}
  34. #7
  35. }
  36. \newcommand{\procedurel}[6]{
  37. \subsection{#1}
  38. \label{pro:#2}
  39. \index{#1}
  40. \subsubsection*{Declaration:}
  41. \texttt {Procedure #1 #3 ;}
  42. \subsubsection*{Description:}
  43. #4
  44. \subsubsection*{Errors:}
  45. #5
  46. \subsubsection*{See also:}
  47. #6
  48. }
  49. \newcommand{\seefl}[2]{
  50. \htmlref{#1}{fu:#2}
  51. }
  52. \newcommand{\seepl}[2]{
  53. \htmlref{#1}{pro:#2}
  54. }
  55. %
  56. % Now the ones without label.
  57. %
  58. \newcommand{\seef}[1]{\seefl{#1}{#1}}
  59. \newcommand{\seep}[1]{\seepl{#1}{#1}}
  60. %
  61. \newcommand{\seet}[1]{
  62. \htmlref{#1}{sec:types}
  63. }
  64. \newcommand{\seem}[2] {\texttt{#1} (#2) }
  65. \newcommand{\var}[1]{\texttt {#1}}
  66. \newcommand{\file}[1]{\textsf {#1}}
  67. %
  68. % procedures without args
  69. %
  70. \newcommand{\Procedurel}[5]{\procedurel{#1}{#2}{}{#3}{#4}{#5}}
  71. \newcommand{\Functionl}[6]{\functionl{#1}{#2}{}{#3}{#4}{#5}{#6}}
  72. %
  73. % Procedures without labels.
  74. %
  75. \newcommand{\procedure}[5]{\procedurel{#1}{#1}{#2}{#3}{#4}{#5}}
  76. \newcommand{\function}[6]{\functionl{#1}{#1}{#2}{#3}{#4}{#5}{#6}}
  77. \newcommand{\Procedure}[4]{\procedure{#1}{}{#2}{#3}{#4}}
  78. \newcommand{\Function}[5]{\function{#1}{}{#2}{#3}{#4}{#5}}
  79. \newcommand{\linux}{\textsc{LinuX} }
  80. \newcommand{\dos} {\textsc{dos} }
  81. \newcommand{\msdos}{\textsc{ms-dos} }
  82. \newcommand{\ostwo}{\textsc{os/2} }
  83. \newcommand{\windowsnt}{\textsc{WindowsNT} }
  84. \newcommand{\docdescription}[1]{}
  85. \newcommand{\docversion}[1]{}
  86. \newcommand{\unitdescription}[1]{}
  87. \newcommand{\unitversion}[1]{}
  88. \newcommand{\fpc}{Free Pascal }
  89. \newcommand{\gnu}{gnu }
  90. %
  91. % Useful references.
  92. %
  93. \newcommand{\progref}{\htmladdnormallink{Programmer's guide}{../prog/prog.html}\ }
  94. \newcommand{\refref}{\htmladdnormallink{Reference guide}{../ref/ref.html}\ }
  95. \newcommand{\userref}{\htmladdnormallink{Users' guide}{../user/user.html}\ }
  96. \newcommand{\unitsref}{\htmladdnormallink{Unit reference}{../units/units.html}\ }
  97. \newcommand{\seecrt}{\htmladdnormallink{CRT}{../crt/crt.html}}
  98. \newcommand{\seelinux}{\htmladdnormallink{Linux}{../linux/linux.html}}
  99. \newcommand{\seestrings}{\htmladdnormallink{strings}{../strings/strings.html}}
  100. \newcommand{\seedos}{\htmladdnormallink{DOS}{../dos/dos.html}}
  101. \newcommand{\seegetopts}{\htmladdnormallink{getopts}{../getopts/getopts.html}}
  102. \newcommand{\seeobjects}{\htmladdnormallink{objects}{../objects/objects.html}}
  103. \newcommand{\seegraph}{\htmladdnormallink{graph}{../graph/graph.html}}
  104. \newcommand{\seeprinter}{\htmladdnormallink{printer}{../printer/printer.html}}
  105. \newcommand{\seego}{\htmladdnormallink{GO32}{../go32/go32.html}}
  106. %
  107. % Nice environments
  108. %
  109. % For Code examples (complete programs only)
  110. \newenvironment{CodEx}{}{}
  111. % For Tables.
  112. \newenvironment{FPCtable}[2]{\begin{table}\caption{#2}\begin{center}\begin{tabular}{#1}}{\end{tabular}\end{center}\end{table}}
  113. % The same, but with label in third argument (tab:#3)
  114. \newenvironment{FPCltable}[3]{\begin{table}\caption{#2}\label{tab:#3}\begin{center}\begin{tabular}{#1}}{\end{tabular}\end{center}\end{table}}
  115. %
  116. % Commands to reference these things.
  117. %
  118. \newcommand{\seet}[1]{table (\ref{tab:#1}) }
  119. \newcommand{\seec}[1]{chapter (\ref{ch:#1}) }
  120. \newcommand{\sees}[1]{section (\ref{se:#1}) }