/[MITgcm]/MITgcm/doc/api_reference/build_main
ViewVC logotype

Contents of /MITgcm/doc/api_reference/build_main

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Mar 26 23:46:11 2004 UTC (19 years, 6 months ago) by edhill
Branch: MAIN
 o most of a framework for building the API Reference automatically

1 #! /usr/bin/env sh
2 #
3 # $Header: $
4 #
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 \documentclass[11pt]{article}
23
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 %%\tableofcontents
73
74 EOF
75
76 echo "Building: api_main.tex"
77 for file ; do
78
79 echo " including \"$file\""
80 a=`echo $file | sed -e 's|.tex$||g'`
81 echo "\input{$a}" >> api_main.tex
82
83 done
84
85 cat <<EOF >> api_main.tex
86
87 \end{document}
88
89 EOF

  ViewVC Help
Powered by ViewVC 1.1.22