%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \filename{gem.tex} \version{2-nov-2009 <-6-mar-2002<-26-MAY-2001 <- 20-nov-1997}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Latex master file for the book in preparation:
%   "Understanding Spacetime Splittings and Their Relationships"
%    by Robert T Jantzen, Paolo Carini, and Donato Bini
%  Appendix and Bibliography present

%\documentstyle[11pt]{report}
%\documentstyle{report}
\documentclass{report}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TITLEPAGE STUFF:

\title{GEM: the User Manual\\[\bigskipamount]
Understanding Spacetime Splittings\\
       and Their Relationships%
\thanks{%
  This manuscript is preliminary and incomplete
  and is made available with the understanding
  that it will not be cited or reproduced
  without the permission of the authors.}}

\author{Robert T. Jantzen\\ Paolo Carini\\ and\\ Donato Bini}

\date{\today}
\typeout{VERSION LAST UPDATED NOVEMBER 1997 [GEMAPP,GEMREF Dec 1999]: PRINTED IN USA}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EXTERNAL MACRO FILES:

%\input tex$amples:bobmacrola  % vax memories, general macros

\input bobmacrola % for PCTEXING

\input gemmac   % mostly symbol macros

% from laps.tex, a vertically centered lap:
% 
\makeatletter \long\def\ylap#1{\vbox to \z@{\vss#1\vss}} \makeatother

\def\Vtop#1{\vtop{\hsize=3in \baselineskip=15pt 
                 \def\\{\hfil\break}\noindent\hangindent 20pt\strut #1\strut}}
\def\VVtop#1{\vtop{\hsize=2in \baselineskip=15pt
                 \def\\{\hfil\break}\noindent\hangindent 20pt\strut #1\strut}}
\def\VVVtop#1{\vtop{\hsize=1.75in \baselineskip=15pt
                              \def\\{\hfil\break}\noindent #1}}
% PICTEX MACROS:
 % latex3e problems for pictex:
\def\fiverm{\tiny} \def\tenrm{\normalsize}
 % convenient macro for placing symbols in pictex
\def\mathput#1{\relax \ifmmode \displaystyle #1\else $\displaystyle #1$\fi}
\typeout{Loading Pictex macros:}
\input prepictex \input pictex \input postpictex

% DRAFT PAPER SAVER:

\noheaderplainsetup 
% \advance \hoffset by .5truecm \Message{disable hoffset from rome!!}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% log file info:
  \def\filename#1{\typeout{>>>>> #1.}} \def\version#1 {\typeout{>>>>> #1.}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ADJUSTMENTS OF LATEX FORMATTING MACROS (TO WRITE MORE INFO TO LOG FILE):

    \def\Newpage{\typeout{****** Forced page break after page:} \newpage}

    \def\beginpreface{\chapter*{Preface}\typeout{Preface.}
                      \addcontentsline{toc}{chapter}{Preface}}
    \def\Chapter#1{\chapter{#1}\typeout{  #1}}
    \def\Section#1{\section{#1}\typeout{Section \thesection. #1.}}
    \def\Subsection#1{\subsection{#1}\typeout{Subsection \thesubsection. #1.}}
    \def\Subsubsection#1{\subsubsection*{#1}\message{SSS \thesubsubsection.}}
        \let\Ssubsection=\Subsubsection
    \def\beginreferences{\chapter*{References}
                         \addcontentsline{toc}{chapter}{References}}

%  appendix A doesn't use the section command:
\def\appendixsectioningon{%
  \def\thesubsection{\thechapter.\arabic{subsection}}}
\def\appendixsectioningoff{%
  \def\thesubsection{\thechapter.\thesection.\arabic{subsection}}}

%%% bibliography commands:

\def\book#1{{\it #1,\/}}
\def\journal#1{{\it #1\/}}
\def\art#1{\edef\test{#1} \edef\control{}%   for warning if title unknown
      \ifx\test\control  {\bf {?!}}\message{warning?!}\else #1,\fi}
\def\preprint{\journal{preprint}}
\def\pub(#1){(#1)}
\def\Ed#1{Ed. #1,}
\def\Eds#1{Eds. #1,}

\def\Bibitem{\par\noindent\hangindent 10pt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FOR PARTIAL LATEXING:

%\includeonly{gem2a}
%\includeonly{gem4}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% START OF DOCUMENT:

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TITLEPAGE, TABLE OF CONTENTS, LIST OF FIGURES, AND PREFACE:
% following commands now in gem00.tex:
  % gem00.tex:
  % \maketitle 
  % \pagenumbering{roman}
  % \tableofcontents
  % \listoffigures 
  % \input{gem0}     % the actual preface

\include{gem00}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CHAPTERS:

\pagenumbering{arabic}
\setcounter{chapter}{0}

\include{gem1}
\include{gem2a} 
\include{gem2b} 
\include{gem3} 
\include{gem4} 
\setcounter{chapter}{4}\typeout{chapter counter fudge??}
\include{gem5}
\include{gem6}

\appendix
  \message{Draft version reset pagenumber for appendices}\setcounter{page}{1}
  \appendixsectioningon
\include{gemapp}
  \appendixsectioningoff
  \message{Draft version reset pagenumber for references}\setcounter{page}{1}
\include{gemref}
  

\section{final page}      %%%%%%%%%%% to get last page number
                             %%%%%%%%%%% in table of contents

\end{document}
