%
% $Id: freefem.tex,v 1.3 1997/09/09 21:18:47 prudhomm Exp $
%
% SUMMARY:      
% USAGE:        
%
% AUTHOR:       Christophe Prud'homme
% ORG:           
% E-MAIL:       Christophe.Prudhomme@asci.fr
%
% ORIG-DATE:     2-Nov-96 at 15:12:29
% LAST-MOD:     15-Sep-97 at 01:47:06 by Christophe Prud'homme
%
% DESCRIPTION:  
%
% $Log: freefem.tex,v $
% Revision 1.3  1997/09/09 21:18:47  prudhomm
% updated some document files
% updated configure.in
%
% Revision 1.2  1997/02/08 16:26:41  prudhomm
% Splitted freefem.tex into parts each parts containing a chapter of the documentation
%
% Revision 1.1  1997/02/04 00:07:49  prudhomm
% added Makefiles and freefem.tex in repository
% ok latex2html works
% hyperlatex doesn't work anymore
%
% DESCRIP-END.

\documentclass[11pt,a4paper]{report}
\usepackage{a4}
\usepackage{makeidx}
\usepackage{fancyheadings} 

%% conflits avec hyperlatex
%\usepackage{html}

% le package ci dessous est deconseill{\'e}: sature le r{\'e}seau par des requ{\^e}tes sur
%le serveur web
% par ailleurs l'attrait esth{\'e}tique n'est pas {\'e}vident
%\usepackage{htmllist}  


\usepackage{xspace}
\usepackage{longtable}
\usepackage{hyperlatex}


\usepackage[dvips]{graphicx}
\usepackage{xspace}
\usepackage{pstricks}
\usepackage{colortab}
\usepackage{pst-plot}
\usepackage{gradient}
%\T \input pstricks.con

\T \input{rgb.con}

\W\usepackage{emulate}





\W \newcommand{\vskip}{<p>}
\W \newcommand{\hrule}{<hr>}

\newcommand{\HlxIcons}{}
\newcommand{\toppanel}{\EmptyP{\HlxPrevUrl\HlxUpUrl\HlxNextUrl}{%
    \EmptyP{\HlxPrevUrl}
    {\xlink{\htmlimage[ALT="Previous"]{\HlxIcons{}previous.xbm}}{\HlxPrevUrl}}
    {\htmlimage[ALT="Previous"]{\HlxIcons{}previous.xbm}}
    \EmptyP{\HlxUpUrl}
    {\xlink{\htmlimage[ALT="Up"]{\HlxIcons{}up.xbm}}{\HlxUpUrl}}
    {\htmlimage[ALT="Up"]{\HlxIcons{}up.xbm}}
    \EmptyP{\HlxNextUrl}
    {\xlink{\htmlimage[ALT="Next"]{\HlxIcons{}next.xbm}}{\HlxNextUrl}}
    {\htmlimage[ALT="Next"]{\HlxIcons{}next.xbm}}\\
    \EmptyP{\HlxPrevUrl}
    {\textbf{Previous: }\xlink{\HlxPrevTitle}{\HlxPrevUrl}\\}{}%
    \EmptyP{\HlxUpUrl}
    {\textbf{Up: }\xlink{\HlxUpTitle}{\HlxUpUrl}\\}{}%
    \EmptyP{\HlxNextUrl}
    {\textbf{Next: }\xlink{\HlxNextTitle}{\HlxNextUrl}\\}{}%
    \htmlrule{}}{}}

\newcommand{\bottompanel}{\EmptyP{\HlxPrevUrl\HlxUpUrl\HlxNextUrl}{%
    \EmptyP{\HlxPrevUrl}
    {\xlink{\htmlimage[ALT="Previous"]{\HlxIcons{}previous.xbm}}{\HlxPrevUrl}}
    {\htmlimage[ALT="Previous"]{\HlxIcons{}previous.xbm}}
    \EmptyP{\HlxUpUrl}
    {\xlink{\htmlimage[ALT="Up"]{\HlxIcons{}up.xbm}}{\HlxUpUrl}}
    {\htmlimage[ALT="Up"]{\HlxIcons{}up.xbm}}
    \EmptyP{\HlxNextUrl}
    {\xlink{\htmlimage[ALT="Next"]{\HlxIcons{}next.xbm}}{\HlxNextUrl}}
    {\htmlimage[ALT="Next"]{\HlxIcons{}next.xbm}}}{}}


%% qq macros
\newcommand{\Html}{\textsc{Html}\xspace }
\newcommand{\latex}{\LaTeX\xspace }
\newcommand{\latexinfo}{\texttt{latexinfo}\xspace }
\newcommand{\texinfo}{\texttt{texinfo}\xspace }
\newcommand{\dvi}{\textsc{Dvi}\xspace }
\newcommand{\latohtml}[0]{\LaTeX2Html\xspace}
\newcommand{\hyperla}[0]{Hyper\LaTeX\xspace}


%%%%%%%%%%%%%%%%%%%%
%% Faire coexister hyperlatex et latex2html
%%% LINKS TO EXTERNAL DOCUMENTS
\T\newcommand{\htmladdnormallinkfoot}[2]{ #1\footnote{#2}}
\W\newcommand{\htmladdnormallinkfoot}[2]{ \xlink{#1}{#2}}

\newcommand{\htmladdnormallink}[2]{ \xlink{#1}{#2} }

\newcommand{\htmladdimg}[1]{\htmlimage{#1}}

\W\newcommand{\ref}[1]{\link{X}{#1}}

%%% HYPERREF 
\T\newcommand{\hyperref}[4]{#2\ref{#4}#3}
\W\newcommand{\hyperref}[4]{\link{#1}{#4}}

%%% HTMLREF
\newcommand{\htmlref}[2]{\link{#1}{#2}}
%%%%%%%%%%%%%%%%%%%%

%% Html stuff for hyperlatex
\htmltitle{GFem language documentation}
\htmlname{gfem}
\htmldirectory{html}
\htmllevel{html3.2}

\W \setcounter{secnumdepth}{4}
\W \setcounter{htmldepth}{4}

\newenvironment{gifquote}[1]{%
  \begin{quote}
    \begin{gif}{#1}
      }{%
    \end{gif}
  \end{quote}}
%% Index stuff
\makeindex


%% Fancy Headings
\renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{\markright{#1}}
\begin{latexonly}
  \rfoot{\leftmark\\\rightmark}
\end{latexonly}

\begin{htmlonly}
  \renewcommand{\psframebox}[1]{}
\end{htmlonly}

%% Ps Tricks
\begin{latexonly}
  
  \newcommand{\gradtabular}[2]{
    \begin{figure}[htbp]
      \begin{center}
        \leavevmode \newsavebox{#1} \savebox{#1} { #2 }
        \psframebox[linestyle=none,fillstyle=gradient,gradmidpoint=1.05,gradbegin=white,gradend=LightBlue,framesep=0]{
          \usebox{#1} }
      \end{center}
    \end{figure}    }
\end{latexonly}

%% Title Authors Date
\title{\LARGE \textbf{FreeFEM Documentation}
  {\small A language for the finite element method}
  }
\author{
  Olivier Pironneau\\
  \texttt{pironneau@ann.jussieu.fr}\\
  Laboratoire d'analyse num{\'e}rique\\
  Universit{\'e} Pierre et Marie Curie\\
  Tour 55-65\\
  75005 Paris\\
  \\
  Christophe Prud'homme\\
  \texttt{Christophe.Prudhomme@asci.fr}\\
  Laboratoire d'analyse num{\'e}rique \\
  Universit{\'e} Pierre et Marie Curie\\
  Tour 55-65\\
  75005 Paris}
\date{}

%% OK let's begin now
\begin{document}
\maketitle

\include{copyright}

\begin{latexonly}
  \pagestyle{fancy}  
\end{latexonly}

\include{intro}

\include{install}

\include{generalities}

\include{adaptation}

\include{examples}


\T \nocite{*}
\bibliographystyle{plain}
%% FIXME add my slides + papers from pironneau here
\bibliography{biblio}

\W \section*{Index}
\W \htmlprintindex
\T \printindex

\T\tableofcontents

\end{document}


