fpc-html.tex 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. %
  24. %
  25. \newcommand{\Declaration}{\item[Declaration]\ttfamily}
  26. \newcommand{\Description}{\item[Description]\rmfamily}
  27. \newcommand{\Errors}{\item[Errors]\rmfamily}
  28. \newcommand{\SeeAlso}{\item[See also]\rmfamily}
  29. %
  30. % The environments
  31. %
  32. \newenvironment{functionl}[2]{\subsection{#1}%
  33. \index{#1}\label{fu:#2}\begin{FPCList}}{\end{FPCList}}
  34. \newenvironment{procedurel}[2]{\subsection{#1}%
  35. \index{#1}\label{pro:#2}\begin{FPCList}}{\end{FPCList}}
  36. \newenvironment{function}[1]{\begin{functionl}{#1}{#1}}{\end{functionl}}
  37. \newenvironment{procedure}[1]{\begin{procedurel}{#1}{#1}}{\end{procedurel}}
  38. \newcommand{\seefl}[2]{
  39. \htmlref{#1}{fu:#2}
  40. }
  41. \newcommand{\seepl}[2]{
  42. \htmlref{#1}{pro:#2}
  43. }
  44. %
  45. % Now the ones without label.
  46. %
  47. \newcommand{\seef}[1]{\seefl{#1}{#1}}
  48. \newcommand{\seep}[1]{\seepl{#1}{#1}}
  49. %
  50. \newcommand{\seet}[1]{
  51. \htmlref{#1}{sec:types}
  52. }
  53. \newcommand{\seem}[2] {\texttt{#1} (#2) }
  54. \newcommand{\var}[1]{\texttt {#1}}
  55. \newcommand{\file}[1]{\textsf {#1}}
  56. %
  57. % Abbreviations
  58. %
  59. \newcommand{\linux}{\textsc{LinuX} }
  60. \newcommand{\dos} {\textsc{dos} }
  61. \newcommand{\msdos}{\textsc{ms-dos} }
  62. \newcommand{\ostwo}{\textsc{os/2} }
  63. \newcommand{\windowsnt}{\textsc{WindowsNT} }
  64. \newcommand{\windows}{\textsc{Windows} }
  65. \newcommand{\docdescription}[1]{}
  66. \newcommand{\docversion}[1]{}
  67. \newcommand{\unitdescription}[1]{}
  68. \newcommand{\unitversion}[1]{}
  69. \newcommand{\fpc}{Free Pascal }
  70. \newcommand{\gnu}{gnu }
  71. %
  72. % Useful references.
  73. %
  74. \newcommand{\progref}{\htmladdnormallink{Programmer's guide}{../prog/prog.html}\ }
  75. \newcommand{\refref}{\htmladdnormallink{Reference guide}{../ref/ref.html}\ }
  76. \newcommand{\userref}{\htmladdnormallink{Users' guide}{../user/user.html}\ }
  77. \newcommand{\unitsref}{\htmladdnormallink{Unit reference}{../units/units.html}\ }
  78. \newcommand{\seecrt}{\htmladdnormallink{CRT}{../crt/crt.html}}
  79. \newcommand{\seelinux}{\htmladdnormallink{Linux}{../linux/linux.html}}
  80. \newcommand{\seestrings}{\htmladdnormallink{strings}{../strings/strings.html}}
  81. \newcommand{\seedos}{\htmladdnormallink{DOS}{../dos/dos.html}}
  82. \newcommand{\seegetopts}{\htmladdnormallink{getopts}{../getopts/getopts.html}}
  83. \newcommand{\seeobjects}{\htmladdnormallink{objects}{../objects/objects.html}}
  84. \newcommand{\seegraph}{\htmladdnormallink{graph}{../graph/graph.html}}
  85. \newcommand{\seeprinter}{\htmladdnormallink{printer}{../printer/printer.html}}
  86. \newcommand{\seego}{\htmladdnormallink{GO32}{../go32/go32.html}}
  87. %
  88. % Nice environments
  89. %
  90. % For Code examples (complete programs only)
  91. \newenvironment{CodEx}{}{}
  92. % For Tables.
  93. \newenvironment{FPCtable}[2]{\begin{table}\caption{#2}\begin{center}\begin{tabular}{#1}}{\end{tabular}\end{center}\end{table}}
  94. % The same, but with label in third argument (tab:#3)
  95. \newenvironment{FPCltable}[3]{\begin{table}\caption{#2}\label{tab:#3}\begin{center}\begin{tabular}{#1}}{\end{tabular}\end{center}\end{table}}
  96. %
  97. % Commands to reference these things.
  98. %
  99. \newcommand{\seet}[1]{table (\ref{tab:#1}) }
  100. \newcommand{\seec}[1]{chapter (\ref{ch:#1}) }
  101. \newcommand{\sees}[1]{section (\ref{se:#1}) }