# CVS: phpweather/docs/src/latex apidoc.tex,NONE,1.1 intro.tex,NONE,1.1 main.tex,NONE,1.1 phpweather-a4.tex,NONE,1.1 phpweather-letter.tex,NONE,1.1

Update of /cvsroot/phpweather/phpweather/docs/src/latex
In directory usw-pr-cvs1:/tmp/cvs-serv19685

apidoc.tex intro.tex main.tex phpweather-a4.tex
phpweather-letter.tex
Log Message:
The LaTeX sources. By running one of either phpweather-a4.tex or
phpweather-letter.tex you can produce the documentation for either A4
or Letterpaper.

--- NEW FILE ---
\chapter{API Documentation}

The following information has been generated from the doc-comments found in
the sources for \phpw.

%%%%%%%%%%%%%%%%
% Start of class base_object.

\section{\class{base\_object}}

\begin{figure}[!hb]
\centering
\includegraphics{base_object}
\caption{The relationship between \class{base\_object} and other classes.}
\end{figure}

Provides some basic capabilities like error-handling and handling
of defaults.

[...2892 lines suppressed...]

\item[string \variable{\&\$}{country}] parameter is passed by reference. The name of the country that corresponds to the country-code is stored here. \end{description} \item[Return value] \textbf{array}\hspace{\labelsep} An associative array with the ICAO as the key and the name of the station as the values. The name of the country is not added to the name of the station. \end{funcdesc} % End of function get_icaos() %%%%%%%% % End of class db_null. %%%%%%%%%%%%%%%% --- NEW FILE --- \chapter{Introduction} This is a guide as to how you should use \phpw. \section{What is \phpw?} \phpw is script written in PHP that can decode a METAR. The METAR is fetched from the web and cached, so that the script runs faster the second time someone asks for that particular METAR. About 3000 airports from around the world makes these METARs, so there's a good chance that you live near one of them. The METARs contain information about the temperature, the wind speed and direction, the clouds, the current weather, and so on. The reports are updated once or twice an hour. \section{Output} \phpw produces a special kind of output known as \emph{pretty print}. It looks roughly like this: \begin{quote} This is a report for \emph{Aalborg, Denmark}. The report was made \emph{33} minutes ago, at \emph{21:50} UTC. The wind was blowing at a speed of \emph{2.1} meters per second (\emph{4.6} miles per hour) from \emph{east} (\emph{100$^\circ$}). The temperature was \emph{16}$^\circ$C (\emph{61}$^\circ$F), with a dew-point at \emph{15}$^\circ$C (\emph{59}$^\circ\$F). The atmospheric pressure was
\emph{1017} hPa (\emph{30.03} inHg). The relative humidity was
\emph{93.8\%}. There were no clouds below \emph{1524} meter
(\emph{5000} feet) and no cumulonimbus clouds. The overall visibility
was greater than \emph{10} kilometers (\emph{6.2} miles).
\end{quote}

--- NEW FILE ---
% The documentclass is defined in phpweather-x.php, where x is either a4 or letter.
%\usepackage{palatcm}
%\usepackage{palatino}
\usepackage{xspace}
\usepackage{graphicx}
\usepackage[bf]{caption2}
\renewcommand{\rmdefault}{ppl}

\usepackage{makeidx}
\makeindex

\usepackage{url}
\newcommand{\Email}{\begingroup \urlstyle{rm}\Url}
\newcommand{\email}[1]{\Email{<#1>}}

\newcommand{\function}[1]{\textsf{#1(~)}\index{#1@\textsf{#1()}}}
\newcommand{\functiondef}[1]{\textsf{#1}}
\newcommand{\funcdesclabel}[1]{\emph{#1:}}
\newenvironment{funcdesc}%
{\begin{list}{}{%
\renewcommand{\makelabel}{\funcdesclabel}%
\setlength{\itemsep}{0.25\baselineskip}%
%                  \setlength{\topsep}{0pt}%
\setlength{\partopsep}{0pt}%
\setlength{\parsep}{0pt}%
}%
}%
{\end{list}%
}

\newcommand{\classdef}[1]{\textsf{#1}}
\newcommand{\class}[1]{Class \textsf{#1}\index{#1@Class \textsf{#1}}}
\newcommand{\variable}[2]{\textsf{\textbf{#1#2}}\index{#2@\textsf{\textbf{\protect\makebox[0cm][r]{#1}#2}}}}
\newcommand{\icao}[1]{\textsf{#1}}

\newcommand{\filename}{\begingroup \urlstyle{tt}\Url}
\urldef{\AUTHORS}\filename{AUTHORS}

\newcommand{\phpw}{\emph{PHP Weather}\xspace}
pdftitle={PHP Weather Usage Guide},
pdfauthor={Martin Geisler, et al},
pdfsubject={Documentation for PHP Weather}
]{hyperref}
\title{\phpw Usage Guide}
\author{Martin Geisler \email{[EMAIL PROTECTED]}\thanks{I would like to thank all
the people who have helped me make \phpw. See the file \AUTHORS{} for a list.}}
\begin{document}

\pagenumbering{roman}

\maketitle

\tableofcontents

\clearpage
\pagenumbering{arabic}

\include{intro}

%%%%%%%%%%
%
% API doc.
%
%%%%%%%%%%

\include{apidoc}

\printindex

\end{document}

--- NEW FILE ---
\documentclass[a4paper]{report}
\input{main}
--- NEW FILE ---
\documentclass[letterpaper]{report}
\input{main}

_______________________________________________
PHPWeather-checkins mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/phpweather-checkins