\documentclass[11pt]{book} 
\include{gildas-def} % GILDAS specific definitions

\makeindex{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\frontmatter{} %

\begin{center}
  \huge{}
  \textbf{CUBE} \\[2\bigskipamount]
  \Large{}
  An IRAM software\\[\bigskipamount]
  Apr. 30th, 2024\\[\bigskipamount]
  \large{}
  Questions? Comments? Bug reports? Mail to: \texttt{gildas@iram.fr}\\[2\bigskipamount]
  The \gildas{} team welcomes an acknowledgment in publications\\
  using \gildas{} software to reduce and/or analyze data.\\
  Please use the following reference in your publications:\\
  \texttt{http://www.iram.fr/IRAMFR/GILDAS}\\[2\bigskipamount]
\end{center}

\begin{description}
\item[Documentation] \mbox{}\\
  \credit{J.Pety$^{1,2}$}{S.~Bardeau$^{1}$}{V.~de~Souza$^{1}$}
\item[Software] \mbox{}\\
  \credit{J.Pety$^{1,2}$}{S.~Bardeau$^{1}$}{V.~de~Souza$^{1}$}
\end{description}
1. IRAM\\
2. Observatoire de Paris


% -----------------------------------------------------------------------------
\newpage
\tableofcontents

\mainmatter{} %

% -----------------------------------------------------------------------------

\chapter{In a nutshell}

\begin{verbatim}
    1    import raw/paws
    2    list
    3    update paws-pdbi+30m-12co10-1as-cube:cube /family 12co10
    4    header 12co10:cube
    5    open edited /like 12co10:cube /init copy
    6    put /observatory +noema +30m
    7    put /source NGC5194
    8    close edited /like 12co10:edited,cube
    9    view 12co10:edited,cube
   10    baseline 12co10:edited,cube /poly 1 /line -120 +120
   11    view
   10    noise 12co10:baselined,line,cube /range -120 120
   11    bit
   12    snr 12co10:baselined,line,cube 12co10:noise
   13    view
   14    segment 12co10:snr
   14    @ show-segments
   15    detect 12co10:baseline,line,cube 12co10:segments /range -120 +120
   16    view 12co10:residuals
   17    moments 12co10:detected
   18    show /moments signal
   19    show /moments noise
   20    show /moments snr
   21    memory
   21    snapshot
   22    free
   23    memory
\end{verbatim}

\chapter{Internal Helps}

\section{ADM Language Internal Help}
\input cube-help-adm.tex

\section{CUBE Language Internal Help}
\input cube-help-cube.tex

\end{document}
