[starlink-ast] 01/03: Add latex style files needed by new documentation

Ole Streicher olebole at moszumanska.debian.org
Tue Apr 28 08:52:09 UTC 2015


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

olebole pushed a commit to branch debian
in repository starlink-ast.

commit dec06f27f6d60afa1e8678fc3ad4063b2d6982f7
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Tue Apr 28 10:37:25 2015 +0200

    Add latex style files needed by new documentation
---
 debian/control                  |   4 +-
 debian/copyright                |   8 +-
 debian/patches/latexstyle.patch | 754 ++++++++++++++++++++++++++++++++++++++++
 debian/patches/series           |   1 +
 4 files changed, 762 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index c5d6e75..a6b195c 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,9 @@ Build-Depends-Indep: ghostscript,
                latex2html,
                perl (>= 5.18.1-5),
                texlive,
-	       texlive-font-utils
+	       texlive-font-utils,
+	       texlive-latex-extra,
+	       texlive-science
 Standards-Version: 3.9.6
 Section: science
 Homepage: http://www.starlink.ac.uk/ast
diff --git a/debian/copyright b/debian/copyright
index 981b826..25094d1 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,7 +3,7 @@ Upstream-Name: AST
 Upstream-Author: David Berry, R.F. Warren-Smith
 Source: http://www.starlink.ac.uk/ast
 
-Files: *
+Files: * debian/patches/latexstyle.patch
 Copyright: Copyright 1997-2009 Council for the Central Laboratory of the
  Research Councils
  Copyright (C) 2007-2012 Science & Technology Facilities Council
@@ -11,7 +11,7 @@ Copyright: Copyright 1997-2009 Council for the Central Laboratory of the
  Copyright (c) 1988 Smithsonian Astrophysical Observatory
  Copyright (C) 2004 Manolis Lourakis (lourakis at ics forth gr)
  Copyright (C) 2006 Particle Physics and Astronomy Research Council
-License: GPL
+License: GPL-2
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public Licence as
  published by the Free Software Foundation; either version 2 of
@@ -27,7 +27,7 @@ License: GPL
 
 Files: proj.h wcstrig.h wcsmath.h proj.c wcstrig.c
 Copyright: Copyright (C) 1995-2002, Mark Calabretta <mcalabre at atnf.csiro.au>
-License: LGPL
+License: LGPL-2
  This library is free software; you can redistribute it and/or modify it
  under the terms of the GNU Library General Public License as published
  by the Free Software Foundation; either version 2 of the License, or (at
@@ -44,4 +44,4 @@ License: LGPL
 Files: debian/*
 Copyright: not applicable
 License: public-domain
- Debian packaging by Ole Streicher <debian at liska.ath.cx>
+ Debian packaging by Ole Streicher <olebole at debian.org>
diff --git a/debian/patches/latexstyle.patch b/debian/patches/latexstyle.patch
new file mode 100644
index 0000000..09e6ab6
--- /dev/null
+++ b/debian/patches/latexstyle.patch
@@ -0,0 +1,754 @@
+Author: Sarah F Graves
+Description: Provide missing LaTeX style files
+ These files were taken from Starlinks github repository.
+Url: https://github.com/Starlink/starlink
+--- /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}
++
++%--------------------------------------------------------------------
+--- /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/debian/patches/series b/debian/patches/series
index a1b9e71..cac0bd9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ use_std_automake.patch
 use_external_pal.patch
 use_external_cminpack.patch
 workround_armhf_compiler_bug.patch
+latexstyle.patch

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



More information about the debian-science-commits mailing list