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