[Debian-astro-commits] [starlink-pal] 07/08: Add starlink.cls

Ole Streicher olebole at moszumanska.debian.org
Fri Feb 3 16:41:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch master
in repository starlink-pal.

commit da82a7059bf213c2c2a3583713d16ca912ce4b6b
Author: Ole Streicher <olebole at debian.org>
Date:   Wed Jan 11 18:42:41 2017 +0100

    Add starlink.cls
---
 debian/patches/Add-starlink.cls.patch | 1230 +++++++++++++++++++++++++++++++++
 debian/patches/series                 |    1 +
 2 files changed, 1231 insertions(+)

diff --git a/debian/patches/Add-starlink.cls.patch b/debian/patches/Add-starlink.cls.patch
new file mode 100644
index 0000000..88b7b6e
--- /dev/null
+++ b/debian/patches/Add-starlink.cls.patch
@@ -0,0 +1,1230 @@
+From: Ole Streicher <olebole at debian.org>
+Date: Wed, 11 Jan 2017 18:42:19 +0100
+Subject: Add starlink.cls
+
+This was taken from the AST package.
+---
+ sst.sty        | 234 ++++++++++++++++++++++++++
+ starabbrev.sty | 284 ++++++++++++++++++++++++++++++++
+ starlink.cls   | 510 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ starstyle.sty  | 162 ++++++++++++++++++
+ 4 files changed, 1190 insertions(+)
+ create mode 100644 sst.sty
+ create mode 100644 starabbrev.sty
+ create mode 100644 starlink.cls
+ create mode 100644 starstyle.sty
+
+diff --git a/sst.sty b/sst.sty
+new file mode 100644
+index 0000000..55f98dc
+--- /dev/null
++++ b/sst.sty
+@@ -0,0 +1,234 @@
++\ProvidesPackage{sst}
++
++%%%%
++% Packet for formatting latex code output from prolat
++%%%%%
++
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++% .. Set up the sectioning and appearance for the sstroutine.
++
++\RequirePackage{titlesec}
++
++%...  New subsection sstrefsection
++\titleclass{\sstrefsection}{straight}[\subsection]
++\newcounter{sstrefsection}
++\renewcommand{\thesstrefsection}{\arabic{sstrefsection}}
++
++%...  Formatting the title for sstrefsection
++\titleformat{name=\sstrefsection}%
++{\normalfont\Large\bfseries\centering}{}{0pt}{}
++\titlespacing*{\sstrefsection}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
++
++%...  Command to turn name and short description into single variable for title.
++\newcommand{\sstsectitle}[2]{\strut \vphantom{#1}#1\newline \ignorespaces#2\strut}
++
++% ..  Command to completely remove section from contents so it can be
++% added in manually at the correct section.
++\newcommand{\nocontentsline}[3]{}
++\newcommand{\tocless}[2]{\bgroup\let\addcontentsline=\nocontentsline#1{#2}\egroup}
++%% Add a toc entry which will be used in  the main toc
++\newcommand{\sstmaintocline}[2]{\addcontentsline{toc}{subsection}{\protect\numberline{}#1}}
++
++%% commands to temporarily stop sstroutines from writing anything into the main toc
++\newcommand{\sstnomaintoc}{\renewcommand{\sstmaintocline}[2]{}}
++%% Command to restart sstroutines appearing in the main html toc
++%% (does nothing in pdf)
++\newcommand{\sstmaintoc}{\renewcommand{\sstmaintocline}[2]{\addcontentsline{toc}{subsection}{\protect\numberline{}##1}}}
++
++
++
++%% .. command to format the sst title
++\newcommand{\ssttitle}[2]{
++  \tocless\sstrefsection{\centering\rule{\textwidth}{0.5mm}\\%
++    #1\\#2\\\rule{\textwidth}{0.5mm}}
++  \sstmaintocline{\RemoveSpaces{#1}}{#2}
++}
++
++
++
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++%...  Basic  SSTROUTINE command
++\newcommand{\sstroutine}[3]{
++  \clearpage
++  % Create the section.
++  \ssttitle{#1}{#2}
++
++  % Set the first parameter as the label; need to remove spaces first.
++  \label{\RemoveSpaces{#1}}
++
++  %..  change the mark on the left hand side to include the name of the chapter.
++  \markright{\textit{\RemoveSpaces{#1}}}
++  \iftwoside
++  \fancyhead[RE,LO]{\thepage\hspace{1cm}\rightmark}
++  \else
++  \lhead{\thepage\hspace{1cm}\rightmark}
++  \fi
++
++  %..  Nest all the material within a description
++  \begin{description}[style=nextline]
++    #3
++  \end{description}
++
++  % End the page
++  \newpage
++}
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++% .. Various sst macros that are used within an \sstroutine
++
++% .. diytopic -- basis for many of th commands.
++\newcommand{\sstdiytopic}[2]{\item[#1:]
++\begin{description}[style=nextline]\item[]\end{description} #2}
++
++\newcommand{\sstdescription}[1]{\item[Description:] #1 }
++
++\newcommand{\sstusage}[1]{\item[Usage:]{\raggedright \tt #1}}
++
++\newcommand{\sstparameters}[1]{\item[Parameters:]
++\begin{description}[style=nextline]\item[] #1 \end{description}}
++
++\newcommand{\sstkeywords}[1]{\item[Keywords:]
++\begin{description}[style=nextline]\item[] #1 \end{description}}
++
++\newcommand{\sstsubsection}[2]{\item[{#1}] #2}
++
++\newcommand{\sstnotes}[1]{\sstdiytopic{Notes}{#1}}
++
++\newcommand{\sstdiylist}[2]{\item[#1] #2}
++
++\newcommand{\sstimplementationstatus}[1]{\item[Implementation Status:] #1}
++
++\newcommand{\sstbugs}[1]{\item[Bugs:] #1}
++
++%  Format a list of items while in paragraph mode.
++\newcommand{\sstitemlist}[1]{
++  \mbox{}%\vspace{-1\baselineskip}
++  \begin{itemize}
++     #1
++  \end{itemize}
++}
++
++\newcommand{\ssthitemlist}[1]{\mbox{}\begin{itemize}#1\end{itemize}}
++\newcommand{\sstapplicability}[1]{\sstdiytopic{Applicability}{#1}}
++\newcommand{\sstresparameters}[1]{\sstdiytopic{Results Parameters}{#1}}
++\newcommand{\sstarguments}[1]{\sstdiytopic{Arguments}{#1}}
++\newcommand{\sstinvocation}[1]{\sstdiytopic{Invocation}{{\tt #1}}}
++\newcommand{\sstreturnedvalue}[1]{\sstdiytopic{Returned Value}{#1}}
++\newcommand{\sstimplementation}[1]{\sstdiytopic{Implementation}{#1}}
++
++
++\newcommand{\sstexamplesubsection}[2]{\sloppy
++\item[{\texttt{\textcolor{MidnightBlue}{#1}}}]
++#2 }
++
++% Set the font of the label of the sstexample items:
++% (extra \\ spacing is required to not have weird effects. I think the
++% important point is to explicitly force the label into vertical mode,
++% so it doesn't try and continue the previous paragraph).
++\newcommand{\sstexamplefont}[1]{\\#1\\\\}
++
++\newcommand{\sstexamples}[1]{
++  \setlength{\parindent}{0mm}
++   \item[Examples:]
++   \begin{description}[style=unboxed,font=\sstexamplefont,
++     leftmargin=0pt,]
++      #1
++   \end{description}
++}
++
++%  Define the format of an item.
++\newcommand{\sstitem}{\item\mbox{}}
++
++%  Format the attribute data type section.
++\providecommand{\sstattributetype}[1]{}%\item[Type:]#1}
++
++% an environment for references (for the SST sstdiytopic command).
++\newenvironment{refs}{\vspace{-4ex} % normally 3ex
++                      \begin{list}{}{\setlength{\topsep}{0mm}
++                                     \setlength{\partopsep}{0mm}
++                                     \setlength{\itemsep}{0mm}
++                                     \setlength{\parsep}{0mm}
++                                     \setlength{\leftmargin}{1.5em}
++                                     \setlength{\itemindent}{-\leftmargin}
++                                     \setlength{\labelsep}{0mm}
++                                     \setlength{\labelwidth}{0mm}}
++                    }{\end{list}}
++
++
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++% .. Additional SST-routine like commands.
++
++
++% .. SST attribute command: similar to an sstroutine, but slightly
++% different formatting and doesn't force a new page. See SUN/95 for
++% example of usage. Also doesn't appear in the table of contents.
++
++\newcommand{\sstattribute}[3]{
++  % Create the section.
++  \subsubsection*{\centering \rule{\textwidth}{0.5mm}\\\Large\ignorespaces#1
++    \\#2\\\rule{\textwidth}{0.5mm}}
++
++  % Set the first parameter as the label; need to remove spaces first.
++  \label{\RemoveSpaces{#1}}
++
++  %..  change the mark on the left hand side to include the name of the section.
++  \markright{\textit{\RemoveSpaces{#1}}}
++
++  \iftwoside
++  \fancyhead[RE,LO]{\thepage\hspace{1cm}\rightmark}
++  \else
++  \lhead{\thepage\hspace{1cm}\rightmark}
++  \fi
++
++  %..  Nest all the material within a description
++  \begin{description}[style=nextline]
++    #3
++  \end{description}%
++}
++
++
++%% SSTroutinenolabel should be same as regular sstroutine, but not
++%% define a label (see sun209 -- this is because sun209 uses \textit
++%% in some of its macro titles, so thesse cannot be automatically
++%% changed to a label. The label must be manually created when
++%% using these.
++\newcommand{\sstroutinenolabel}[3]{
++  \clearpage
++  % Create the section.
++  \ssttitle{#1}{#2}
++
++  %..  change the mark on the left hand side to include the name of the chapter.
++  \markright{\textit{\RemoveSpaces{#1}}}
++  \iftwoside
++  \fancyhead[RE,LO]{\thepage\hspace{1cm}\rightmark}
++  \else
++  \lhead{\thepage\hspace{1cm}\rightmark}
++  \fi
++
++  %..  Nest all the material within a description
++  \begin{description}[style=nextline]
++    #3
++  \end{description}
++
++  % End the page
++  \newpage
++}
++
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++% .. Miscellaneous
++
++%% Change the \wedge command to something that looks better.
++\renewcommand{\wedge}{\mbox{\textasciicircum}}
++
++
++%% command to prevent sstroutines from appearing in the extra html toc
++%% called by \sstminitoc{Title of Toc} (does nothing in pdf)
++\newcommand{\sstnoextratoc}{}
++%% Command to restart sstroutines appearing in the extra html toc
++%% called by \sstminitoc{Title of Toc} (does nothing in pdf)
++\newcommand{\sstextratoc}{}
++
++
++% Command that in html typesets a listing of all
++% sstroutines/sstroutinenolables that occur before the next sectioning
++% command. Does nothing in pdf at the moment.
++\newcommand{\sstminitoc}[1]{}
+diff --git a/starabbrev.sty b/starabbrev.sty
+new file mode 100644
+index 0000000..7396b9f
+--- /dev/null
++++ b/starabbrev.sty
+@@ -0,0 +1,284 @@
++%  Shortcuts
++%  ---------
++
++
++%% Handling angles
++\ifpdf
++\typeout{... Using standard SIunitx degrees}
++\else
++\sisetup{
++  math-degree=\HCode{<mo>°</mo>},
++  text-degree=\HCode{°},
++  text-arcminute=\HCode{′},
++  text-arcsecond=\HCode{′′}
++}
++\fi
++
++%% Symbol for degrees;
++\ifpdf
++  \newcommand{\dgs}{\si{\degree}}
++\else
++  \newcommand{\dgs}{\ifmmode \HCode{<mo>°</mo>} \else \HCode{°} \fi}
++\fi
++
++%%
++% arcminute symbol
++\newcommand{\arcm}{\si{\arcminute}}
++
++% arcsec symbol
++\newcommand{\arcsec}{\si{\arcsecond}}
++
++% hours symbol
++\newcommand{\hr}{\textsuperscript{h}}
++
++% minutes symbol
++\newcommand{\mn}{\textsuperscript{m}}
++
++% seconds symbol
++\newcommand{\rsec}{\textsuperscript{s}}
++
++
++% commands for ra and dec (These do not put the angle symbol over the
++% decimal.
++\newcommand{\dec}[1]{\ang[retain-explicit-plus]{#1}}
++\ifpdf
++\newcommand{\ra}[1]{%
++  \ang[%
++    math-degree=\textsuperscript{h},
++    math-arcminute=\textsuperscript{m},
++    math-arcsecond=\textsuperscript{s},
++    text-degree=\textsuperscript{h},
++    text-arcminute=\textsuperscript{m},
++    text-arcsecond=\textsuperscript{s}]
++      {#1}
++      }
++\else
++\newcommand{\ra}[1]{%
++  \ifmmode
++  \ang[%
++    text-degree=\HCode{<sup>h</sup>},
++    math-degree=\HCode{<sup>h</sup>},
++    math-arcminute=\HCode{<sup>m</sup>},
++    math-arcsecond=\HCode{<sup>s</sup>},
++    text-arcminute=\HCode{<sup>m</sup>},
++    text-arcsecond=\HCode{<sup>s</sup>},
++  ]%
++  {#1}%
++  \else
++  \ang[%
++    text-degree=\textsuperscript{h},
++    text-arcminute=\textsuperscript{m},
++    text-arcsecond=\textsuperscript{s}]
++      {#1}
++  \fi
++}
++\fi
++
++
++%% Note that due to limitations in tex4ht, you need to use \sb for _
++%% and \sp for ^ if the macro is defined before the \begin{document}
++%% command.
++
++% Typographical shortcuts
++\newcommand{\fcfbe}{\ensuremath{\mathrm{FCF\sb{beamequiv}}}}
++\newcommand{\fcfb}{\ensuremath{\mathrm{FCF\sb{beam}}}}
++\newcommand{\fcfa}{$\mathrm{FCF\sb{arcsec}}$}
++\newcommand{\fcfm}{$\mathrm{FCF\sb{match}}$}
++
++% Starlink Package name
++\newcommand{\starlink}{\href{http://www.starlink.ac.uk}{Starlink}}
++
++% Set up some common package names.
++\newcommand{\ccdpack}{\xref{\textsc{Ccdpack}}{sun139}{}}
++\newcommand{\convert}{\xref{\textsc{Convert}}{sun55}{}}
++\newcommand{\cupid}{\xref{\textsc{Cupid}}{sun255}{}}
++\newcommand{\datacube}{\xref{\textsc{Datacube}}{sun237}{}}
++\newcommand{\Figaro}{\xref{\textsc{Figaro}}{sun86}{}}
++\newcommand{\fluxes}{\xref{\textsc{Fluxes}}{sun213}{}}
++\newcommand{\gaia}{\xref{\textsc{Gaia}}{sun214}{}}
++\newcommand{\Kappa}{\xref{\textsc{Kappa}}{sun95}{}}
++\newcommand{\agi}{\xref{AGI}{sun48}{}}
++\newcommand{\ndf}{\xref{NDF}{sun33}{}}
++\newcommand{\surf}{\xref{\textsc{Surf}}{sun216}{}}
++\newcommand{\jcmtdr}{\xref{\textsc{JCMTdr}}{sun132}{}}
++\newcommand{\oracdr}{\href{http://www.oracdr.org/oracdr}{ORAC-DR}}
++\newcommand{\photom}{\xref{\textsc{Photom}}{sun45}{}}
++\newcommand{\picard}{\xref{\textsc{Picard}}{sun265}{}}
++\newcommand{\smurf}{\xref{\textsc{Smurf}}{sun258}{}}
++\newcommand{\splat}{\xref{\textsc{Splat}}{sun243}{}}
++\newcommand{\ssds}{\xref{\textsc{Starlink Standard Data Structures}}{sgp38}{}}
++\newcommand{\topcat}{\href{http://www.starlink.ac.uk/topcat}{\textsc{Topcat}}}
++
++% DR recipe names
++\newcommand{\drrecipe}[1]{\texttt{#1}}
++
++% Application tasks
++\newcommand{\task}[1]{\textsf{#1}}
++
++
++
++% ADAM parameters
++\newcommand{\param}[1]{\texttt{#1}}
++
++% Environment variables, filenames, URLs, and model names
++% These are the same at the moment but could be adjusted in one place.
++\newcommand{\envvar}[1]{\texttt{#1}}
++\newcommand{\file}[1]{\texttt{#1}}
++\newcommand{\model}[1]{\texttt{#1}}
++%\providecommand{\url}[1]{\texttt{#1}}
++
++% GAIA menu functions and buttons.  Would like a bold texttt to mimic
++% their appearance in GAIA, but the founts are not in regular LaTeX.
++\newcommand{\gaiathing}[1]{\textbf{\textsf{#1}}}
++
++% SMURF tasks
++\newcommand{\calcnoise}{\xref{\task{calcnoise}}{sun258}{CALCNOISE}}
++\newcommand{\clean}{\xref{\task{sc2clean}}{sun258}{SC2CLEAN}}
++\newcommand{\concat}{\xref{\task{sc2concat}}{sun258}{SC2CONCAT}}
++\newcommand{\configmeld}{\xref{\task{configmeld}}{sun258}{CONFIGMELD}}
++\newcommand{\flatfield}{\xref{\task{flatfield}}{sun258}{FLATFIELD}}
++\newcommand{\jcmtstate}{\xref{\task{jcmtstate2cat}}{sun258}{JCMTSTATE2CAT}}
++\newcommand{\makemap}{\xref{\task{makemap}}{sun258}{MAKEMAP}}
++\newcommand{\skyloop}{\xref{\task{skyloop}}{sun258}{SKYLOOP}}
++\newcommand{\stackframes}{\xref{\task{stackframes}}{sun258}{STACKFRAMES}}
++
++% KAPPA
++\newcommand{\beamfit}{\xref{\task{beamfit}}{sun95}{BEAMFIT}}
++\newcommand{\block}{\xref{\task{block}}{sun95}{BLOCK}}
++\newcommand{\chpix}{\xref{\task{chpix}}{sun95}{CHPIX}}
++\newcommand{\cdiv}{\xref{\task{cdiv}}{sun95}{CDIV}}
++\newcommand{\cmult}{\xref{\task{cmult}}{sun95}{CMULT}}
++\newcommand{\compave}{\xref{\task{compave}}{sun95}{COMPAVE}}
++\newcommand{\configecho}{\xref{\task{configecho}}{sun95}{CONFIGECHO}}
++\newcommand{\fitslist}{\xref{\task{fitslist}}{sun95}{FITSLIST}}
++\newcommand{\fitsval}{\xref{\task{fitsval}}{sun95}{FITSVAL}}
++\newcommand{\gausmooth}{\xref{\task{gausmooth}}{sun95}{GAUSMOOTH}}
++\newcommand{\hislist}{\xref{\task{hislist}}{sun95}{HISLIST}}
++\newcommand{\histat}{\xref{\task{histat}}{sun95}{HISTAT}}
++\newcommand{\histogram}{\xref{\task{histogram}}{sun95}{HISTOGRAM}}
++\newcommand{\linplot}{\xref{\task{linplot}}{sun95}{LINPLOT}}
++\newcommand{\makesnr}{\xref{\task{makesnr}}{sun95}{MAKESNR}}
++\newcommand{\ndfcopy}{\xref{\task{ndfcopy}}{sun95}{NDFCOPY}}
++\newcommand{\ndftrace}{\xref{\task{ndftrace}}{sun95}{NDFTRACE}}
++\newcommand{\paste}{\xref{\task{paste}}{sun95}{PASTE}}
++\newcommand{\provshow}{\xref{\task{provshow}}{sun95}{PROVSHOW}}
++\newcommand{\showqual}{\xref{\task{showqual}}{sun95}{SHOWQUAL}}
++\newcommand{\setvar}{\xref{\task{setvar}}{sun95}{SETVAR}}
++\newcommand{\stats}{\xref{\task{stats}}{sun95}{STATS}}
++\newcommand{\sub}{\xref{\task{sub}}{sun95}{SUB}}
++\newcommand{\wcsattrib}{\xref{\task{wcsattrib}}{sun95}{WCSATTRIB}}
++\newcommand{\wcsframe}{\xref{\task{wcsframe}}{sun95}{WCSFRAME}}
++\newcommand{\wcsmosaic}{\xref{\task{wcsmosaic}}{sun95}{WCSMOSAIC}}
++
++% CCDPACK
++\newcommand{\makemos}{\xref{\task{makemos}}{sun139}{MAKEMOS}}
++
++% CUPID
++\newcommand{\findback}{\xref{\task{findback}}{sun255}{FINDBACK}}
++\newcommand{\findclumps}{\xref{\task{findclumps}}{sun255}{FINDCLUMPS}}
++
++% Misc
++\newcommand{\autophotom}{\xref{\task{autophotom}}{sun45}{AUTOPHOTOM}}
++\newcommand{\fitstondf}{\xref{\task{fits2ndf}}{sun55}{FITS2NDF}}
++
++\newcommand{\stardocs}[2]{\href{http://www.starlink.ac.uk/docs/#1#2.htx/#1#2.html}{\textbf{\uppercase{#1}/#2}}}
++% Documents
++\newcommand{\convertsun}{\xref{\textbf{SUN/55}}{sun55}{}}
++\newcommand{\cupidsun}{\xref{\textbf{SUN/255}}{sun255}{}}
++\newcommand{\gaiasun}{\xref{\textbf{SUN/214}}{sun214}{}}
++\newcommand{\hdstracesun}{\xref{\textbf{SUN/102}}{sun102}{}}
++\newcommand{\kappasun}{\xref{\textbf{SUN/95}}{sun95}{}}
++\newcommand{\oracdrsun}{\xref{\textbf{SUN/230}}{sun230}{}}
++\newcommand{\picardsun}{\stardocs{sun}{265}}
++\newcommand{\pipelinesun}{\xref{\textbf{SUN/264}}{sun264}{}}
++\newcommand{\smurfsun}{\xref{\textbf{SUN/258}}{sun258}{}}
++
++
++% Shorthand and HTML references for other Starlink tasks
++\providecommand{\CCDPACK}{\textsc{ccdpack}}
++\providecommand{\CCDPACKref}{\xref{\CCDPACK}{sun139}{}}
++\providecommand{\GAIA}{\textsc{gaia}}
++\providecommand{\GAIAref}{\xref{\GAIA}{sun214}{}}
++\providecommand{\HDSTRACE}{\textsc{hdstrace}}
++\providecommand{\HDSTRACEref}{\xref{\HDSTRACE}{sun102}{}}
++\providecommand{\KAPPA}{\textsc{kappa}}
++\providecommand{\CURSA}{\xref{\textsc{cursa}}{sun190}{}}
++\providecommand{\KAPPAref}{\xref{(SUN/95)}{sun95}{}}
++\providecommand{\SMURF}{\textsc{smurf}}
++\providecommand{\SMURFcook}{\xref{SC/21}{sc21}{}}
++\providecommand{\ADAMsgref}{\xref{SG/4}{sg4}{}}
++\providecommand{\ADAMsunref}{\xref{SUN/101}{sun101}{}}
++\providecommand{\astref}{\xref{SUN/211}{sun211}{}}
++\providecommand{\ndfref}{\xref{SUN/33}{sun33}{}}
++
++% Application tasks
++\providecommand{\task}[1]{\textsf{#1}}
++
++% SMURF tasks
++\providecommand{\badbolos}{\xref{\task{badbolos}}{sun258}{BADBOLOS}}
++\providecommand{\calcdark}{\xref{\task{calcdark}}{sun258}{CALCDARK}}
++\providecommand{\calcflat}{\xref{\task{calcflat}}{sun258}{CALCFLAT}}
++\providecommand{\calcnoise}{\xref{\task{calcnoise}}{sun258}{CALCNOISE}}
++\providecommand{\calcresp}{\xref{\task{calcresp}}{sun258}{CALCRESP}}
++\providecommand{\copyflat}{\xref{\task{copyflat}}{sun258}{COPYFLAT}}
++\providecommand{\dreamsolve}{\xref{\task{dreamsolve}}{sun258}{DREAMSOLVE}}
++\providecommand{\dreamweights}{\xref{\task{dreamweights}}{sun258}{DREAMWEIGHTS}}
++%  ...use fitdd instead of fit1d because the 1 breaks the macro
++\providecommand{\fitdd}{\xref{\task{fit1d}}{sun258}{FIT1D}}
++\providecommand{\gsdtoacsis}{\xref{\task{gsd2acsis}}{sun258}{GSD2ACSIS}}
++\providecommand{\gsdshow}{\xref{\task{gsdshow}}{sun258}{GSDSHOW}}
++\providecommand{\smurfhelp}{\xref{\task{smurfhelp}}{sun258}{SMURFHELP}}
++\providecommand{\impaztec}{\xref{\task{impaztec}}{sun258}{IMPAZTEC}}
++\providecommand{\makecube}{\xref{\task{makecube}}{sun258}{MAKECUBE}}
++\providecommand{\rawunpress}{\xref{\task{rawunpress}}{sun258}{RAWUNPRESS}}
++\providecommand{\rawfixmeta}{\xref{\task{rawfixmeta}}{sun258}{RAWFIXMETA}}
++\providecommand{\sctwosim}{\xref{\task{sc2sim}}{sun258}{SC2SIM}}
++\providecommand{\sctwothreadtest}{\xref{\task{sc2threadtest}}{sun258}{SC2THREADTEST}}
++\providecommand{\scanfit}{\xref{\task{scanfit}}{sun258}{SCANFIT}}
++\providecommand{\skynoise}{\xref{\task{skynoise}}{sun258}{SKYNOISE}}
++\providecommand{\smurfcopy}{\xref{\task{smurfcopy}}{sun258}{SMURFCOPY}}
++\providecommand{\stackframes}{\xref{\task{stackframes}}{sun258}{STACKFRAMES}}
++\providecommand{\starecalc}{\xref{\task{starecalc}}{sun258}{STARECALC}}
++\providecommand{\timesort}{\xref{\task{timesort}}{sun258}{TIMESORT}}
++\providecommand{\unmakecube}{\xref{\task{unmakecube}}{sun258}{UNMAKECUBE}}
++
++\providecommand{\extinction}{\xref{\task{extinction}}{sun258}{EXTINCTION}}
++\providecommand{\flatfield}{\xref{\task{flatfield}}{sun258}{FLATFIELD}}
++\providecommand{\jcmtstate}{\xref{\task{jcmtstate2cat}}{sun258}{JCMTSTATE2CAT}}
++\providecommand{\dumpocscfg}{\xref{\task{dumpocscfg}}{sun258}{DUMPOCSCFG}}
++\providecommand{\makemap}{\xref{\task{makemap}}{sun258}{MAKEMAP}}
++\providecommand{\gettsys}{\xref{\task{gettsys}}{sun258}{GETTSYS}}
++
++\providecommand{\remsky}{\xref{\task{remsky}}{sun258}{REMSKY}}
++\providecommand{\clean}{\xref{\task{sc2clean}}{sun258}{SC2CLEAN}}
++\providecommand{\concat}{\xref{\task{sc2concat}}{sun258}{SC2CONCAT}}
++\providecommand{\fft}{\xref{\task{sc2fft}}{sun258}{SC2FFT}}
++\providecommand{\fts}{\xref{\task{sc2fts}}{sun258}{SC2FTS}}
++
++\providecommand{\rebin}{\texttt{rebin}}
++\providecommand{\iterate}{\texttt{iterate}}
++
++% Other tasks
++\providecommand{\makemos}{\xref{\task{makemos}}{sun139}{MAKEMOS}}
++\providecommand{\csub}{\xref{\task{csub}}{sun95}{CSUB}}
++\providecommand{\clinplot}{\xref{\task{clinplot}}{sun95}{CLINPLOT}}
++\providecommand{\mlinplot}{\xref{\task{mlinplot}}{sun95}{MLINPLOT}}
++\providecommand{\collapse}{\xref{\task{collapse}}{sun95}{COLLAPSE}}
++\providecommand{\fillbad}{\xref{\task{fillbad}}{sun95}{FILLBAD}}
++\providecommand{\fitsedit}{\xref{\task{fitsedit}}{sun95}{FITSEDIT}}
++\providecommand{\kapdiv}{\xref{\task{div}}{sun95}{DIV}}
++\providecommand{\ndfcopy}{\xref{\task{ndfcopy}}{sun95}{NDFCOPY}}
++\providecommand{\parget}{\xref{\task{parget}}{sun95}{PARGET}}
++\providecommand{\provshow}{\xref{\task{provshow}}{sun95}{PROVSHOW}}
++\providecommand{\thresh}{\xref{\task{thresh}}{sun95}{THRESH}}
++\providecommand{\wcsmosaic}{\xref{\task{wcsmosaic}}{sun95}{WCSMOSAIC}}
++\providecommand{\wcsalign}{\xref{\task{wcsalign}}{sun95}{WCSALIGN}}
++\providecommand{\wcsattrib}{\xref{\task{wcsattrib}}{sun95}{WCSATTRIB}}
++\providecommand{\fitslist}{\xref{\task{fitslist}}{sun95}{FITSLIST}}
++\providecommand{\display}{\xref{\task{display}}{sun95}{DISPLAY}}
++\providecommand{\ndfcompress}{\xref{\task{ndfcompress}}{sun95}{NDFCOMPRESS}}
++\providecommand{\topcat}{\xref{\textsc{Topcat}}{sun253}{}}
++
++% prevent issues if a pdf .aux file is still around
++\providecommand{\pgfsyspdfmark}[3]{}
++
+diff --git a/starlink.cls b/starlink.cls
+new file mode 100644
+index 0000000..5907136
+--- /dev/null
++++ b/starlink.cls
+@@ -0,0 +1,510 @@
++% Latex2E class for writing starlink documents.
++\NeedsTeXFormat{LaTeX2e}
++\ProvidesClass{starlink}
++%-----------------------------------------------------%
++% .. Class options.
++
++% With chapters...
++\newif\ifwithchapters
++\withchaptersfalse
++
++% If twoside...
++\newif\iftwoside
++\twosidefalse
++
++% If list of figures (lof)
++\newif\ifwithlof
++\withloftrue
++
++% If no abstract
++\newif\ifwithabs
++\withabstrue
++
++% If all one page (affects html output only)
++\newif\ifmultipage
++\multipagetrue
++
++% Declare the options.
++\DeclareOption{chapters}{\withchapterstrue}
++\DeclareOption{twoside}{\twosidetrue}
++\DeclareOption{nolof}{\withloffalse}
++\DeclareOption{noabs}{\withabsfalse}
++\DeclareOption{onepage}{\multipagefalse}
++
++% Pass all options not defined above to the classes.
++% (Must be done before process options)
++\ifwithchapters
++   \typeout{..... passing options to report .....}
++   \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
++\else
++   \typeout{........passing options to article......}
++   \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
++\fi
++
++% Process custom options.
++\ProcessOptions\relax
++
++
++\ifwithchapters
++   \LoadClass{report}
++   \typeout{........Report!...........}
++\else
++   \LoadClass{article}
++   \typeout{..........Article!..........}
++\fi
++
++
++%--------------------------------------
++% Packages required for all reports
++% chek if in a pdf or not
++\RequirePackage{ifpdf}
++
++
++% Font types and encoding.
++\RequirePackage[T1]{fontenc}
++\RequirePackage[utf8]{inputenc}
++
++% microtype For improved pdf typography (must come after loading class)
++\RequirePackage{microtype}
++
++%maths
++\RequirePackage{amsmath}
++\RequirePackage{mathpazo}
++
++% units
++\RequirePackage{siunitx}
++
++% Titlesec.
++\RequirePackage{titlesec}
++
++% Package to allow graphics to be loaded (\includegraphics) and the
++% default extensions it will look for (and their order).
++\RequirePackage{graphicx}
++\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg}
++
++%.. Probably needed for something?
++\RequirePackage{multirow}
++
++% formatting of list enivornments
++\RequirePackage{enumitem}
++
++%.. Using color
++\RequirePackage[usenames,dvipsnames,svgnames,table]{xcolor}
++
++%.. Allow boxes with frames and backgrounds, over multiple pages
++\RequirePackage[framemethod=TikZ]{mdframed}
++
++%.. Allow tables on multiple pages
++\RequirePackage{longtable}
++
++%.. Allow sideways tables
++\RequirePackage{rotating}
++
++%.. Allow landscape pdf pages
++\RequirePackage{pdflscape}
++
++%.. Set up the page
++\RequirePackage[text={160mm,230mm},centering]{geometry}
++
++%.. title page formatting
++\RequirePackage{titling}
++
++%... Set up the headers.
++\RequirePackage{fancyhdr}
++
++%.... table of contents formatting
++\ifpdf
++\RequirePackage{tocloft}
++\fi
++
++%.. hyperref
++\RequirePackage[pdfusetitle=true,backref,
++                breaklinks=True,pdfdisplaydoctitle=true]{hyperref}
++
++%... allow environments using verbatim
++\RequirePackage{fancyvrb}
++
++%... allow starlink docs to use indexes
++\RequirePackage{makeidx}
++
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++
++% Starlink document identification commands
++\newcommand{\stardoccategory}[1]{\def \@stardoccategory {#1}}
++\newcommand{\stardocinitials}[1]{\def \@stardocinitials {#1}}
++\newcommand{\stardoccopyright}[1]{\def \@stardoccopyright {#1}}
++\newcommand{\stardocnumber}[1]{\def \@stardocnumber{#1}}
++
++% Define a stardoctitle that takes an optional 'short' argument; this
++% can then be used in various places. E.g. if you have a multi line
++% full title, please ensure you also have a single line short title.
++\def\stardoctitle{\@ifnextchar [{\@stardoctitletwo}{\@stardoctitleone}}
++\def\@stardoctitletwo[#1]#2{\gdef\@stardoctitle{#2}\gdef\@shorttitle{#1}}
++\def\@stardoctitleone#1{\gdef\@stardoctitle{#1}\gdef\@shorttitle{#1}}
++
++\newcommand{\stardocversion}[1]{\def \@stardocversion{#1}}
++\newcommand{\stardocmanual}[1]{\def \@stardocmanual{#1}}
++\newcommand{\stardocabstract}[1]{\def \@stardocabstract{#1}}
++\newcommand{\stardocauthors}[1]{\def\@stardocauthors{#1}}
++\newcommand{\stardocdate}[1]{\def\@stardocdate{#1}}
++\newcommand{\startitlepic}[1]{\def\@startitlepic{#1}}
++\newcommand{\starfunders}[1]{\def\@starfunders{#1}}
++\newcommand{\starproject}[1]{\def\@starproject{#1}}
++\newcommand{\stardocsource}[1]{\def\@stardocsource{#1}}
++\newcommand{\stardocname}[1]{\def\@stardocname{#1}}
++
++% Defaults for current data?
++\starfunders{}
++\starproject{Starlink Project}
++
++% initalise to nothing
++\stardoccategory{}
++\stardocinitials{}
++\stardoccopyright{}
++\stardocnumber{}
++\stardoctitle{}
++\stardocversion{}
++\stardocmanual{}
++\stardocabstract{}
++\stardocauthors{}
++\startitlepic{}
++\stardocname{}
++\stardocauthors{}
++\stardocdate{}
++
++
++% Provide \the... versions of these commands so you don't need to use @
++% in latex.
++\newcommand{\thestardoccategory}{\@stardoccategory}
++\newcommand{\thestardocinitials}{\@stardocinitials}
++\newcommand{\thestardoccopyright}{\@stardoccopyright}
++\newcommand{\thestardocnumber}{\@stardocnumber}
++\newcommand{\thestardoctitle}{\@stardoctitle}
++\newcommand{\theshorttitle}{\@shorttitle}
++\newcommand{\thestardocversion}{\@stardocversion}
++\newcommand{\thestardocmanual}{\@stardocmanual}
++\newcommand{\thestardocabstract}{\@stardocabstract}
++\newcommand{\thestardocauthors}{\@stardocauthors}
++\newcommand{\thestarfunders}{\@starfunders}
++\newcommand{\thestarproject}{\@starproject}
++\newcommand{\thestartitlepic}{\@startitlepic}
++\newcommand{\thestardocsource}{\@stardocsource}
++\newcommand{\thestardocdate}{\@stardocdate}
++
++%  Ensure the stardoctitle etc is available as \thetitle.
++\newcommand{\thetitle}{\@stardoctitle}
++\title{\@stardoctitle}
++
++% Ensure the author list is available as \theauthor.
++\newcommand{\theauthor}{\@stardocauthors}
++\author{\@stardocauthors}
++
++
++%%--------------------------------------------------------
++
++%% Various commands to setup the frontmatter of starlink docs.
++
++%% This should consist of 1) the title, 2) the abstract, 3) the table
++%% of contents, 4) the list of figures (unless class option nolof is given).
++
++%.. Format the initial header.
++\newcommand{\titleheader}{%
++  \begin{flushright}
++  \textbf{\thestardocinitials /\thestardocnumber}
++  \end{flushright}
++  \thestarproject\\
++  \thestardoccategory\ \thestardocnumber\\
++}
++
++%... Format the main ttile
++\newcommand{\titlemain}{%
++\begin{center}
++{\Huge\textbf{\thestardoctitle}}
++
++{\Huge\textbf{\thestardocversion}}
++
++{\Huge\textbf{\thestardocmanual}}
++\end{center}
++}
++
++
++% Graphics for front page
++\newcommand{\thestargraphics}{%
++\centering
++\thestartitlepic
++\vspace{7.5mm}
++\rule{\textwidth}{0.5mm}%
++}
++
++% .. Provide a command \startitle page that will produce a consistent
++% starlink title page
++\newcommand{\startitlepage}{%
++  \null
++  \vskip 2em%
++\vspace*{-1\baselineskip}
++\thispagestyle{empty}
++\titleheader
++%\vspace{-7mm}
++\begin{flushright}
++\par\thestardocauthors
++\par\thestardocdate
++\par\thestardoccopyright
++\end{flushright}
++%\vspace{-2mm}
++\rule{\textwidth}{0.5mm}
++\vspace{7.5mm}
++\titlemain%\par
++%\vspace{5mm}
++\thestargraphics\\
++}
++
++
++%%..  command to print the abstract (with copyright at bottom of page)
++\newcommand{\Abstract}{%
++  \ifwithabs
++    \ifwithchapters
++        \chapter*{}
++    \fi
++    \section*{Abstract}
++    \thispagestyle{fancy}
++    \markboth{Abstract}{}
++    \thestardocabstract{}
++    \\
++    \vspace*{\fill}
++    \\
++    {\small\thestardoccopyright{}}
++    \clearpage
++  \fi
++}
++
++%% General Front matter command -- title page, abstract, toc, lof This
++%% command \scfrontmatter is what should be called
++%% after \begin{document} in any starlink tex file.
++
++\newcommand*{\scfrontmatter}{
++% Use roman page numbers
++\renewcommand{\thepage}{\roman{page}}
++\setcounter{page}{1}
++
++% Create the titlepage
++\begin{titlepage}%
++\startitlepage
++\end{titlepage}
++
++% Show the abstract (defined to do nothing if noabs is set)
++\Abstract{}
++
++\clearpage
++
++% Table of contents (catcode stuff to prevent errors with _)
++\begingroup \catcode`\_=12 \tableofcontents \endgroup
++\clearpage
++
++% unless the class option 'nolof' has been given, create a list of
++% figures.
++\ifwithlof
++  \begingroup \catcode`\_=12 \listoffigures \endgroup
++\fi
++\clearpage
++
++% Reset the page counting to arabic and start from 1.
++\renewcommand{\thepage}{\arabic{page}}
++\setcounter{page}{1}
++}
++%%%-------------------------------------
++%% Back matter commands (references and index)
++% Ensure index shows up in toc.
++\let\oldprintindex\printindex
++\renewcommand{\printindex}{%
++  \phantomsection \addcontentsline{toc}{section}{Index}
++  \oldprintindex}
++
++%%------------------------------------
++
++%% Various class specific macros
++
++%% Starlink list enivornments
++
++%% enumdesc: An enumerated description list
++\newcounter{enumdescc}
++\newcounter{enumdescci}
++\newlist{enumdesc}{description}{2}
++\setlist[enumdesc,1]{%
++  before={\stepcounter{enumdescc}\setcounter{enumdescci}{0}},%
++  style=nextline,leftmargin=0.5cm,labelindent=0.5cm,rightmargin=0.5cm,
++  topsep=0.5\baselineskip, font={%
++    \phantomsection\normalfont\normalsize\bfseries\refstepcounter{enumdescci}\theenumdescci~}
++}
++
++
++
++%% A description list which has the labels in a box on the left with
++%% the length of the widest label, and the definitions aligned past
++%% it. In HTML output, starstyle.4ht will format this as a table.
++
++%% This uses the package eqparbox to get the box of width of the
++%% widest label (takes 2 runs of pdflatex).
++\usepackage{eqparbox}
++
++\newcounter{desc}
++\newcommand{\descriptionmakelabel}[1]{\eqparbox{descnb\romannumeral\value{desc}}{#1\hfill}}
++
++\newlist{aligndesc}{description}{2}
++\setlist[aligndesc]{before={\refstepcounter{desc}\renewcommand{\makelabel}{\descriptionmakelabel}},
++  leftmargin=\dimexpr\eqboxwidth{descnb\romannumeral\numexpr\value{desc}+1\relax}+3em\relax,
++  labelsep=1em, labelindent=2em, rightmargin=2em}
++
++%%%--------------------------------------------------------------
++%% Linking and referencing commands.
++
++%%..  Starlink xref command
++%% By default use the starlink.ac.uk; this will be fixed up at the
++%% end of make world by a different program.
++\newcommand{\xref}[3]{%
++\href{http://www.starlink.ac.uk/cgi-bin/htxserver/#2.htx/#2.html?xref_#3}{#1}}
++\newcommand{\xlabel}[1]{\label{\protect{xref_#1}}}
++\newcommand{\cref}[3]{#1~\ref{#2}}
++%problems with _ in labels (e.g. in xrefs)
++\let\oldunderscore\_
++\renewcommand{\_}{\ifmmode \oldunderscore \else \string_\fi}
++
++
++%%---------------------------------------------------------------
++%% Deprecated commands (for compatability only)
++
++% % Graphics commands
++\newcommand{\starfig}[6]{
++  \begin{figure}#2
++    \centering\includegraphics[#3]{#1}
++    \typeout{#1 inserted on page \arabic{page}}
++    \caption[#5]{\label{#4} #6}
++  \end{figure}
++}
++
++% A starlink Hyperref (defined a bit differently to regular hyperref,
++% and with a first argument that doesn't do anything. Deprecated; only
++% provided for consistency with old documents.  Include the string, not
++% just the cross reference number or letter in the hyperlink.
++\newcommand{\slhyperref}[4]{\hyperref[#4]{#2\ref*{#4}#3}}
++
++\newcommand{\latexhtml}[2]{#1}
++
++% %.. Empty environment latex only.
++\newenvironment{latexonly}{}{}
++
++%%%% Command that doesn't do anything in latex
++\newcommand{\html}[1]{}
++
++%.. environments that don't do anything
++\def\makeinnocent#1{\catcode`#1=12 }
++ \def\csarg#1#2{\expandafter#1\csname#2\endcsname}
++
++ \def\ThrowAwayComment#1{\begingroup
++     \def\CurrentComment{#1}%
++     \let\do\makeinnocent \dospecials
++     \makeinnocent\^^L% and whatever other special cases
++     \endlinechar`\^^M \catcode`\^^M=12 \xComment}
++ {\catcode`\^^M=12 \endlinechar=-1 %
++  \gdef\xComment#1^^M{\def\test{#1}
++       \csarg\ifx{PlainEnd\CurrentComment Test}\test
++           \let\html at next\endgroup
++       \else \csarg\ifx{LaLaEnd\CurrentComment Test}\test
++             \edef\html at next{\endgroup\noexpand\end{\CurrentComment}}
++       \else \let\html at next\xComment
++       \fi \fi \html at next}
++ }
++ \def\excludecomment
++   #1{\expandafter\def\csname#1\endcsname{\ThrowAwayComment{#1}}%
++      {\escapechar=-1\relax
++       \csarg\xdef{PlainEnd#1Test}{\string\\end#1}%
++       \csarg\xdef{LaLaEnd#1Test}{\string\\end\string\{#1\string\}}%
++      }}
++
++\excludecomment{htmlonly}
++
++\newcommand{\latex}[1]{#1}
++
++%------------------------------------------------------------------------
++%..  Define additional colours.
++\definecolor{mygray}{gray}{0.7}
++\definecolor{MidnightBlue}{RGB}{25, 25, 112}
++\definecolor{bblue}{RGB}{172,207,230}
++
++
++%--------------------------------------------------
++%.. Miscellanous commands
++%.. Create a command to remove all space from input
++\def\RemoveSpaces#1{\zap at space#1 \@empty}
++
++% % Command for text that should be pushed to the right of the line (eg
++% % following an hfill, on a single line of text
++\newcommand*{\scpushright}[1]{\hfill #1}
++
++
++
++% %.. verbatim environment for quoting terminal.
++\DefineVerbatimEnvironment{terminalv}{Verbatim}{%
++xleftmargin=.5in,formatcom=\color{MidnightBlue},fontsize=\small}
++
++
++
++% command for a text box that floats around and pops out from the text (framed)
++\mdfsetup{%
++ backgroundcolor=white,%
++    middlelinewidth=4pt,%
++    middlelinecolor=bblue,%
++    userdefinedwidth=0.8\textwidth,%
++    roundcorner=10pt, %
++    innertopmargin=\topskip}%
++
++\newenvironment{sltextbox}[1]{%
++\begin{figure*}[h]\begin{mdframed}[userdefinedwidth=0.8\textwidth,
++                            align=center,%
++                       frametitle=#1,%
++        frametitlebackgroundcolor=bblue]%
++\setlength{\parskip}{\medskipamount}%
++}%
++{\end{mdframed}\end{figure*}}
++
++
++%Framed  boxes (obsolete).
++\newsavebox{\fmbox}
++\newenvironment{fmpage}[1]{\begin{lrbox}{\fmbox}\begin{minipage}{#1}}{\end{minipage}\end{lrbox}\fbox{\usebox{\fmbox}}}
++
++
++
++%.. Tip box
++\newenvironment{tip}%
++{\begin{figure*}[h]\begin{mdframed}[userdefinedwidth=0.8\textwidth,align=center,frametitle=Tip,frametitlebackgroundcolor=bblue]%
++\setlength{\parskip}{\medskipamount}%
++}%
++{\end{mdframed}\end{figure*}}
++
++%.. starlink long table (used so that its easier to fix it up for html output)
++\setlength{\LTcapwidth}{\textwidth}
++\newenvironment{sllongtable}[2]{%
++\begin{longtable}{#1}\caption{#2}\\}
++{\end{longtable}}
++
++
++%.........................................
++
++\newcommand{\Acronyms}{%
++  \ifwithchapters
++  \chapter*{}
++  \fi
++  \section*{Acronyms}
++  \markboth{Acronyms}{}
++  \addcontentsline{toc}{section}{\protect\numberline{}Acronyms}
++}
++
++
++%--------------------------------------------------------------------
++%% Load the reamining starlink specific classes.
++
++%.. The remaining starlink specific definitions.
++\RequirePackage{starabbrev}
++\RequirePackage{starstyle}
++\RequirePackage{sst}
++
++%--------------------------------------------------------------------
+diff --git a/starstyle.sty b/starstyle.sty
+new file mode 100644
+index 0000000..c2cea2e
+--- /dev/null
++++ b/starstyle.sty
+@@ -0,0 +1,162 @@
++\ProvidesPackage{starstyle}
++%%%%
++%% Package for styling the output (primarily in pdf)
++%%%%
++
++% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++% Number sections down to subsubsection level
++\setcounter{secnumdepth}{4}
++
++% %%% Formatting of the section headging
++\newcommand{\colorsection}[1]{%
++\colorbox{bblue}{\strut\parbox{\dimexpr\textwidth-2\fboxsep}{\thesection\ \quad #1}{\huge\strut}}}
++
++\newcommand{\colorsectionnumberless}[1]{%
++\colorbox{bblue}{\strut\parbox{\dimexpr\textwidth-2\fboxsep}{#1}\strut}}
++
++
++% % Section headings (including numberless)
++
++\ifpdf
++\titleformat{name=\section}%
++{\normalfont\Large\bfseries}{}{0pt}{\colorsection}
++\titleformat{name=\section,numberless}%
++{\normalfont\Large\bfseries}{}{0pt}{\colorsectionnumberless}
++\fi
++
++%... Chapter headings
++\ifwithchapters
++  \titleformat{name=\chapter}[display]%
++  {\normalfont\huge\bfseries\thispagestyle{plain}}{%
++    \chaptertitlename\ \thechapter}{0pt}{}
++
++  \titleformat{name=\chapter,numberless}[display]%
++  {\normalfont\huge\bfseries\thispagestyle{plain}}{}{0pt}{\Huge}
++
++  %... spacing after chapter headings
++  \titlespacing*{\chapter}{0pt}{0pt}{20pt}
++
++\fi
++
++
++%.. section spacing
++\titlespacing*{\section}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
++\titlespacing*{\subsection}{0pt}{2ex plus 1ex minus .2ex}{1.5ex plus .2ex}
++\titlespacing*{\subsubsection}{0pt}{2ex plus 1ex minus .2ex}{1ex plus .2ex}
++\titlespacing*{\paragraph}{0pt}{2ex plus 1ex minus .2ex}{1em}
++\titlespacing*{\subparagraph}{\parindent}{2ex plus 1ex minus
++  .2ex}{1em}
++
++
++
++
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++
++%%% Page styles (e.g. headers and footers)
++
++\pagestyle{fancy}
++\fancyhf{}
++\rhead{\slshape \thestardocinitials{}/\thestardocnumber{} \leftmark}
++\lhead{\thepage}
++\renewcommand{\headrulewidth}{0.0pt}
++
++
++\ifwithchapters
++\renewcommand{\chaptermark}[1]{
++  \markboth{#1}{}}
++\else
++\renewcommand{\sectionmark}[1]{
++  \markboth{#1}{}}
++\fi
++
++% .. Reset the plain pagestyle (used on chapter pages) to only have
++% the page number and no rules. 
++\fancypagestyle{plain}{%
++\fancyhf{}%
++
++\iftwoside
++\fancyhead[RE,LO]{\thepage}%
++\fancyhead[LE,RO]{\slshape
++  \thestardocinitials{}/\thestardocnumber{}\nouppercase{---\leftmark}}%
++\else
++\fancyhead[LO]{\thepage}
++\fancyhead[RO]{\slshape
++\thestardocinitials{}/\thestardocnumber{}\nouppercase{---\leftmark}}%
++\fi
++
++\renewcommand{\headrulewidth}{0pt}%
++\renewcommand{\footrulewidth}{0pt}%
++}
++
++% ensure correct chaptermakr is used when in pagestyle plain
++\pagestyle{plain}
++\fancyhf{}
++
++\iftwoside
++\fancyhead[LE,RO]{\slshape \thestardocinitials{}/\thestardocnumber{} \nouppercase{---\leftmark}}
++\fancyhead[RE,LO]{\thepage}
++\else
++\lhead{\slshape \thestardocinitials{}/\thestardocnumber{} \nouppercase{---\leftmark}}
++\rhead{\thepage}
++\fi
++
++\renewcommand{\headrulewidth}{0.0pt}
++
++\ifwithchapters
++\renewcommand{\chaptermark}[1]{
++  \markboth{#1}{}}
++\else
++\renewcommand{\sectionmark}[1]{
++  \markboth{#1}{}}
++\fi
++
++
++\renewcommand{\headrulewidth}{0pt}%
++\renewcommand{\footrulewidth}{0pt}%
++
++\ifwithchapters
++\renewcommand{\chaptermark}[1]{\markboth{{#1}}{}}%
++\else
++\renewcommand{\sectionmark}[1]{\markboth{{#1}}{}}%
++\fi
++
++%% Select the fancy pagestyle as default
++\pagestyle{fancy}
++
++
++
++
++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
++% General spacing
++\setlength{\headheight}{1.5cm}
++\setlength{\parskip}{\medskipamount}
++\setlength{\parindent}{0pt}
++\renewcommand{\arraystretch}{1.5}
++
++
++%%%% Set up defaults for floats
++% maximum size of 'top area'
++\renewcommand{\topfraction}{0.9}
++% maximum size of 'bottom area'
++\renewcommand{\bottomfraction}{0.9}
++% minimum amount of text on a non-float page
++\renewcommand{\textfraction}{0.1}
++
++
++
++%Enumerate list appearance
++\setlist[enumerate,1]{label=(\arabic*)}
++
++
++% macros for typesetting parameters
++\providecommand{\aparam}[1]{\texttt{#1}}     % ADAM parameter
++\providecommand{\cparam}[1]{\texttt{#1}}     % CONFIG parameter
++\providecommand{\ndfcomp}[1]{\texttt{#1}}    % NDF component
++
++
++
++\newcommand{\menuitem}[2]{\item[\protect{\hyperref[#1]{#1}}] #2}
++\newcommand{\classitem}[1]{\item [\protect{\hyperref[#1]{#1}}]}
++
++
++
diff --git a/debian/patches/series b/debian/patches/series
index 5fd2d0e..7e14b18 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 rename_library
 use_std_automake.patch
 reproducible_build.patch
+Add-starlink.cls.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/starlink-pal.git



More information about the Debian-astro-commits mailing list