Warning, /doc/old_doc/api_reference/build_main is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit ad38444b on 2018-01-31 20:35:48 UTC
5f36ff9e77 Ed H*0001 #! /usr/bin/env sh
0002 #
0003 #
0004 # A script to generate the main LaTeX file given the list of sections.
0005
1b5fb69d21 Ed H*0006 the_date=`date +%B`" "`date +%d`", "`date +%Y`
5f36ff9e77 Ed H*0007
0008 cat <<EOF > api_main.tex
0009 %%%
0010 %%% ======= DO NOT EDIT THIS FILE !!! =======
0011 %%%
0012 %%% This file has been generated by the script
0013 %%%
0014 %%% $0
0015 %%%
0016 %%% and will be automatically deleted by
0017 %%%
0018 %%% "make clean"
0019 %%%
0020 %%% ======= DO NOT EDIT THIS FILE !!! =======
0021 %%%
d5d5c6127e Ed H*0022 \documentclass[11pt]{book}
5f36ff9e77 Ed H*0023
0024 \usepackage{amsmath}
0025 \usepackage{html}
0026 \usepackage{hthtml}
0027 \usepackage{graphicx}
0028
0029 \usepackage[dvips]{epsfig}
0030 \def\scalefig#1{\epsfxsize #1\textwidth}
0031
0032 \bibliographystyle{plain}
0033
0034 \usepackage{color}
0035 \usepackage[dvips]{hyperref}
0036 \definecolor{darkgreen}{rgb}{0,0.4,0}
0037 \definecolor{darkblue}{rgb}{0,0,0.4}
0038 \definecolor{darkred}{rgb}{0.5,0,0}
0039 \hypersetup{breaklinks=true,
0040 colorlinks=true,
0041 linkcolor=darkgreen,
0042 citecolor=darkblue,
0043 pagecolor=darkred,
0044 pdftitle={MITgcm Release 1 Documentation},
0045 pdfauthor={MITgcm-support@mitgcm.org},
0046 pdfkeywords={oceanography, ocean model, general circulation model,
0047 non-hydrostatic, finite volume, inverse methods, adjoint method}
0048 }
0049
0050 \def\p#1{{\partial \over {\partial #1}}}
0051 \def\pp#1#2{{\partial #1 \over {\partial #2}}}
0052 \def\dd#1#2{{d #1 \over {d #2}}}
0053 \def\bq{\begin{equation}}
0054 \def\bqa{\begin{eqnarray}}
0055 \def\eq{\end{equation}}
0056 \def\eqa{\end{eqnarray}}
0057
0058 \def\h{ {1\over2} }
0059 \def\txt{\mbox{\$2^\circ\$ x \$2.5^\circ \,\$}}
0060 \def\fxf{\mbox{\$4^\circ\$ x \$5^\circ \,\$}}
0061
0062 \def\blankpage{ \vspace*{\fill} \vspace{5in} \vfill \newpage}
0063
0064
0065 \begin{document}
0066
0067 \bodytext{bgcolor="#FFFFFFFF"}
0068
1b5fb69d21 Ed H*0069 \title{MITgcm API Reference Manual}
0070 \author{--- The MITgcm Development Team ---}
0071 \date{$the_date}
0072 \maketitle
0073
d5d5c6127e Ed H*0074 \tableofcontents
0075
5f36ff9e77 Ed H*0076 EOF
0077
52c38edbc1 Ed H*0078 cat introduction.tex >> api_main.tex
0079
5f36ff9e77 Ed H*0080 echo "Building: api_main.tex"
0081 for file ; do
0082
0083 echo " including \"$file\""
0084 a=`echo $file | sed -e 's|.tex$||g'`
0085 echo "\input{$a}" >> api_main.tex
0086
0087 done
0088
0089 cat <<EOF >> api_main.tex
0090
fefe253d88 Dimi*0091
0092 \bibliography{mitgcm}
0093
0094
5f36ff9e77 Ed H*0095 \end{document}
0096
0097 EOF
0098