fpc-html.tex 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. \usepackage{ifthen}
  21. %
  22. % Html navigation search button
  23. %
  24. \htmladdtonavigation{\htmladdnormallink{\htmladdimg{../buttons/search.gif}}{javascript:opensearch()}}
  25. %
  26. % FPC environments
  27. %
  28. % List
  29. \newenvironment{FPCList}{\begin{htmllist}}{\end{htmllist}}
  30. % For Tables.
  31. \newenvironment{FPCtable}[2]{\begin{table}\caption{#2}\begin{center}\begin{tabular}{#1}}{\end{tabular}\end{center}\end{table}}
  32. % The same, but with label in third argument (tab:#3)
  33. \newenvironment{FPCltable}[3]{\begin{table}\caption{#2}\label{tab:#3}\begin{center}\begin{tabular}{#1}}{\end{tabular}\end{center}\end{table}}
  34. %
  35. % Html Refs
  36. %
  37. \newcommand{\seefl}[2]{\htmlref{#1}{fu:#2}}
  38. \newcommand{\seepl}[2]{\htmlref{#1}{pro:#2}}
  39. \newcommand{\seetyl}[1]{\htmlref{#1}{sec:types}}
  40. \newcommand{\seec}[1]{chapter \htmlref{#1}{ch:#1}}
  41. \newcommand{\sees}[1]{section \htmlref{#1}{se:#1}}
  42. \newcommand{\seeo}[1]{See \htmlref{#1}{option:#1}}
  43. \newcommand{\seet}[1]{table (\htmlref{#1}{tab:#1}) }
  44. %
  45. % Function/procedure environments
  46. %
  47. \newenvironment{functionl}[2]{\subsection{#1}\index{#1}\label{fu:#2}\begin{FPCList}}{\end{FPCList}}
  48. \newenvironment{procedurel}[2]{\subsection{#1}\index{#1}\label{pro:#2}\begin{FPCList}}{\end{FPCList}}
  49. \newenvironment{function}[1]{\begin{functionl}{#1}{#1}}{\end{functionl}}
  50. \newenvironment{procedure}[1]{\begin{procedurel}{#1}{#1}}{\end{procedurel}}
  51. \newenvironment{typel}[2]{\subsection{#1}\index{#1}\label{ty:#2}\begin{FPCList}}{\end{FPCList}}
  52. \newenvironment{type}[1]{\begin{typel}{#1}{#1}}{\end{typel}}
  53. \newcommand{\Declaration}{\item[Declaration]\ttfamily}
  54. \newcommand{\Description}{\item[Description]\rmfamily}
  55. \newcommand{\Errors}{\item[Errors]\rmfamily}
  56. \newcommand{\SeeAlso}{\item[See also]\rmfamily}
  57. %
  58. % Ref without labels
  59. %
  60. \newcommand{\seef}[1]{\seefl{#1}{#1}}
  61. \newcommand{\seep}[1]{\seepl{#1}{#1}}
  62. \newcommand{\seety}[1]{\seetyl{#1}{#1}}
  63. %
  64. % man page references don't need labels.
  65. %
  66. \newcommand{\seem}[2]{\texttt{#1} (#2) }
  67. %
  68. % for easy typesetting of variables.
  69. %
  70. \newcommand{\var}[1]{\texttt {#1}}
  71. \newcommand{\file}[1]{\textsf {#1}}
  72. %
  73. % Useful references.
  74. %
  75. \newcommand{\progref}{\htmladdnormallink{Programmers' guide}{../prog/prog.html}\xspace}
  76. \newcommand{\refref}{\htmladdnormallink{Reference guide}{../ref/ref.html}\xspace}
  77. \newcommand{\userref}{\htmladdnormallink{Users' guide}{../user/user.html}\xspace}
  78. \newcommand{\unitsref}{\htmladdnormallink{Unit reference}{../units/units.html}\xspace}
  79. \newcommand{\seecrt}{\htmladdnormallink{CRT}{../crt/crt.html}\xspace}
  80. \newcommand{\seelinux}{\htmladdnormallink{Linux}{../linux/linux.html}\xspace}
  81. \newcommand{\seestrings}{\htmladdnormallink{strings}{../strings/strings.html}\xspace}
  82. \newcommand{\seedos}{\htmladdnormallink{DOS}{../dos/dos.html}\xspace}
  83. \newcommand{\seegetopts}{\htmladdnormallink{getopts}{../getopts/getopts.html}\xspace}
  84. \newcommand{\seeobjects}{\htmladdnormallink{objects}{../objects/objects.html}\xspace}
  85. \newcommand{\seegraph}{\htmladdnormallink{graph}{../graph/graph.html}\xspace}
  86. \newcommand{\seeprinter}{\htmladdnormallink{printer}{../printer/printer.html}\xspace}
  87. \newcommand{\seego}{\htmladdnormallink{GO32}{../go32/go32.html}\xspace}
  88. %
  89. % Commands to reference these things.
  90. %
  91. \newenvironment{remark}{\par\makebox[0pt][r]{\bfseries{}Remark:\hspace{.25em}}}{\par}
  92. \newcommand{\olabel}[1]{\label{option:#1}}
  93. %
  94. % some OSes
  95. %
  96. \newcommand{\linux}{\textsc{linux}\xspace}
  97. \newcommand{\dos} {\textsc{dos}\xspace}
  98. \newcommand{\msdos}{\textsc{ms-dos}\xspace}
  99. \newcommand{\ostwo}{\textsc{os/2}\xspace}
  100. \newcommand{\windows}{\textsc{Windows}\xspace}
  101. \newcommand{\windowsnt}{\textsc{Windows NT}\xspace}
  102. \newcommand{\fpc}{Free Pascal\xspace}
  103. \newcommand{\gnu}{\textsc{gnu}\xspace}
  104. \newcommand{\atari}{\textsc{Atari}\xspace}
  105. \newcommand{\amiga}{\textsc{Amiga}\xspace}
  106. \newcommand{\win}{\textsc{Win32}\xspace}
  107. \newcommand{\freebsd}{\textsc{FreeBSD}\xspace}
  108. %
  109. % Some versions
  110. %
  111. \newcommand{\fpcversion}{0.99.12}
  112. %
  113. % PDF support
  114. %
  115. \latex{%
  116. \newif\ifpdf
  117. \ifx\pdfoutput\undefined
  118. \pdffalse
  119. \else
  120. \pdfoutput=1
  121. \pdftrue
  122. \fi
  123. }
  124. %
  125. % end of fpc-html.tex
  126. %