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

Annotation of /MITgcm/doc/api_reference/build_main

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


Revision 1.4 - (hide annotations) (download)
Thu Apr 1 04:23:33 2004 UTC (20 years, 2 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint52m_post
Changes since 1.3: +3 -3 lines
 o further protex-related cleanups

1 edhill 1.1 #! /usr/bin/env sh
2     #
3 edhill 1.4 # $Header: /u/gcmpack/MITgcm/doc/api_reference/build_main,v 1.3 2004/03/29 03:33:51 edhill Exp $
4 edhill 1.1 #
5     # A script to generate the main LaTeX file given the list of sections.
6    
7 edhill 1.3 the_date=`date +%B`" "`date +%d`", "`date +%Y`
8 edhill 1.1
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 edhill 1.2 \documentclass[11pt]{book}
24 edhill 1.1
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 edhill 1.3
70     \title{MITgcm API Reference Manual}
71     \author{--- The MITgcm Development Team ---}
72     \date{$the_date}
73     \maketitle
74 edhill 1.1
75 edhill 1.2 \tableofcontents
76    
77 edhill 1.4 EOF
78 edhill 1.1
79 edhill 1.4 cat introduction.tex >> api_main.tex
80 edhill 1.1
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
95    

  ViewVC Help
Powered by ViewVC 1.1.22