1 |
#! /usr/bin/env sh |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/doc/api_reference/build_main,v 1.2 2004/03/28 19:28:34 edhill Exp $ |
4 |
# |
5 |
# A script to generate the main LaTeX file given the list of sections. |
6 |
|
7 |
the_date=`date +%B`" "`date +%d`", "`date +%Y` |
8 |
|
9 |
cat <<EOF > api_main.tex |
10 |
%%% |
11 |
%%% ======= DO NOT EDIT THIS FILE !!! ======= |
12 |
%%% |
13 |
%%% This file has been generated by the script |
14 |
%%% |
15 |
%%% $0 |
16 |
%%% |
17 |
%%% and will be automatically deleted by |
18 |
%%% |
19 |
%%% "make clean" |
20 |
%%% |
21 |
%%% ======= DO NOT EDIT THIS FILE !!! ======= |
22 |
%%% |
23 |
\documentclass[11pt]{book} |
24 |
|
25 |
\usepackage{amsmath} |
26 |
\usepackage{html} |
27 |
\usepackage{hthtml} |
28 |
\usepackage{graphicx} |
29 |
|
30 |
\usepackage[dvips]{epsfig} |
31 |
\def\scalefig#1{\epsfxsize #1\textwidth} |
32 |
|
33 |
\bibliographystyle{plain} |
34 |
|
35 |
\usepackage{color} |
36 |
\usepackage[dvips]{hyperref} |
37 |
\definecolor{darkgreen}{rgb}{0,0.4,0} |
38 |
\definecolor{darkblue}{rgb}{0,0,0.4} |
39 |
\definecolor{darkred}{rgb}{0.5,0,0} |
40 |
\hypersetup{breaklinks=true, |
41 |
colorlinks=true, |
42 |
linkcolor=darkgreen, |
43 |
citecolor=darkblue, |
44 |
pagecolor=darkred, |
45 |
pdftitle={MITgcm Release 1 Documentation}, |
46 |
pdfauthor={MITgcm-support@mitgcm.org}, |
47 |
pdfkeywords={oceanography, ocean model, general circulation model, |
48 |
non-hydrostatic, finite volume, inverse methods, adjoint method} |
49 |
} |
50 |
|
51 |
\def\p#1{{\partial \over {\partial #1}}} |
52 |
\def\pp#1#2{{\partial #1 \over {\partial #2}}} |
53 |
\def\dd#1#2{{d #1 \over {d #2}}} |
54 |
\def\bq{\begin{equation}} |
55 |
\def\bqa{\begin{eqnarray}} |
56 |
\def\eq{\end{equation}} |
57 |
\def\eqa{\end{eqnarray}} |
58 |
|
59 |
\def\h{ {1\over2} } |
60 |
\def\txt{\mbox{\$2^\circ\$ x \$2.5^\circ \,\$}} |
61 |
\def\fxf{\mbox{\$4^\circ\$ x \$5^\circ \,\$}} |
62 |
|
63 |
\def\blankpage{ \vspace*{\fill} \vspace{5in} \vfill \newpage} |
64 |
|
65 |
|
66 |
\begin{document} |
67 |
|
68 |
\bodytext{bgcolor="#FFFFFFFF"} |
69 |
|
70 |
\title{MITgcm API Reference Manual} |
71 |
\author{--- The MITgcm Development Team ---} |
72 |
\date{$the_date} |
73 |
\maketitle |
74 |
|
75 |
\tableofcontents |
76 |
|
77 |
\chapter{API References} |
78 |
|
79 |
EOF |
80 |
|
81 |
echo "Building: api_main.tex" |
82 |
for file ; do |
83 |
|
84 |
echo " including \"$file\"" |
85 |
a=`echo $file | sed -e 's|.tex$||g'` |
86 |
echo "\input{$a}" >> api_main.tex |
87 |
|
88 |
done |
89 |
|
90 |
cat <<EOF >> api_main.tex |
91 |
|
92 |
\end{document} |
93 |
|
94 |
EOF |