[Greater-commits] r3827 - in trunk/shared: . sty
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 24 15:29:50 CET 2011
Author: frank
Date: 2011-11-24 15:29:50 +0100 (Thu, 24 Nov 2011)
New Revision: 3827
Added:
trunk/shared/sty/
trunk/shared/sty/Manual.sty
trunk/shared/sty/ManualTabular.sty
Log:
Style files (latex) for documentation.
Added: trunk/shared/sty/Manual.sty
===================================================================
--- trunk/shared/sty/Manual.sty 2011-11-24 14:29:06 UTC (rev 3826)
+++ trunk/shared/sty/Manual.sty 2011-11-24 14:29:50 UTC (rev 3827)
@@ -0,0 +1,182 @@
+% $Source: /home/bricks/source/greater/cvs/greaterrepository/greater-pre-processing/doc/Manual.sty,v $
+
+% $Author: jan $
+
+% $Revision: 1.1 $
+% $Date: 2002-09-18 12:55:31 $
+% $Locker: $
+
+%
+% Basic stylefile for all Manuals in the GREAT-ER project.
+% Manuals have to be double page
+% Variable Settings:
+% ManualAuthor : dto.
+% ManualType : Type of the Manual, eg. Users' Manual
+% GREATERVersion : GREAT-ER Version the Manual is related on
+% Makros:
+% \Fig{figure}{text} : creates an mbox around 'figure' and
+% writes 'text' at the bottom with leading
+% 'Fig. section.figno:'.
+% Example:
+% \Fig{\epsfxsize30mm \epsffile{x.eps}}{the x}\\
+%
+% \Tab{table}{text} : creates an mbox around 'table' and
+% writes 'text' at the top with leading
+% 'Tab. section tabno:'.
+%
+
+\typeout{Manual Style File designed for GREAT-ER manual.
+Ensure to define "stepBackground" before using macro "TutorialStep"!
+}
+
+\parindent0cm
+\parskip0.5ex
+
+\textwidth=15cm
+
+% macros for special names
+% convention:
+% - program names : sc (small caps)
+% - language names, misc : sf (sans serif)
+% - file names : tt (typewriter)
+% - functions, procedures : tt
+
+\newcommand{\WindowsNT}{{{\scshape Windows NT} 4.0}}
+\newcommand{\ArcInfo}{{\scshape ARC/INFO}}
+\newcommand{\ArcView}{{\scshape ArcView}}
+\newcommand{\GREATER}{{\scshape GREAT-ER}}
+\newcommand{\gawk}{{\scshape gawk}}
+\newcommand{\MicroLowFlows}{{\scshape MicroLowFlows}}
+
+\newcommand{\Avenue}{{\sffamily Avenue}}
+\newcommand{\TclTk}{{\sffamily Tcl/Tk}}
+\newcommand{\awk}{{\sffamily awk}}
+\newcommand{\sed}{{\sffamily sed}}
+\newcommand{\C}{{\sffamily C}}
+
+\newcommand{\menuitem}[1]{{\sffamily #1}}
+
+%****************************************************************************
+% Marko for step indicator
+%
+
+\setlength{\marginparsep}{1em}
+\setlength{\marginparwidth}{1cm}
+
+\newcounter{StepCnt}
+\newcommand{\Step}{\refstepcounter{StepCnt} \marginpar{Step \arabic{StepCnt}}}
+\newcommand{\ResetStep}{\setcounter{StepCnt}{0}}
+
+%****************************************************************************
+% Underlay tutorial steps with gray box and center
+%
+
+% \newenvironment{step}{\begin{center}\colorbox{stepBackground}{\parbox{0.95\textwidth}{}{}}\end{center}}
+\newcommand{\TutorialStep}[1]%
+{
+ \begin{center}
+ \colorbox{stepBackground}{\parbox{0.95\textwidth}{#1}}
+ \end{center}
+}
+
+%****************************************************************************
+% Figure makro for graphics continously enumerated.
+%
+\newcounter{FigCnt}[chapter]
+\newcommand{\Fig}[2]%
+{
+ \refstepcounter{FigCnt}
+ \addcontentsline{lof}{figure}%
+ {\protect\numberline{\thechapter.\arabic{FigCnt}}{#2}}
+ \mbox{#1}
+\nopagebreak
+
+ {Figure \thechapter.\arabic{FigCnt}: \it #2}
+}
+
+\newcommand{\FigNoEntry}[2]%
+{
+ \refstepcounter{FigCnt}
+ \mbox{#1}
+\nopagebreak
+
+ {Figure \thechapter.\arabic{FigCnt}: \it #2}
+}
+
+%****************************************************************************
+% Table makro for tables continously enumerated.
+%
+\newcounter{TabCnt}[section]
+\newcommand{\Tab}[2]%
+{
+ \refstepcounter{TabCnt}
+ \addcontentsline{lot}{table}%
+ {\protect\numberline{\thesection.\arabic{TabCnt}}{#2}}
+ {Table \thesection.\arabic{TabCnt}: \it #2}
+\nopagebreak
+
+ \mbox{#1}
+}
+
+\newcommand{\TabNoEntry}[2]%
+{
+ \refstepcounter{TabCnt}
+ {Table \thesection.\arabic{TabCnt}: \it #2}
+\nopagebreak
+
+ \mbox{#1}
+}
+
+%***************************************************************************
+% Makro for directory information
+%
+\newcommand{\dirinfo}[1]%
+{
+ #1 \\
+}
+
+%***************************************************************************
+% Makro for file information
+%
+\newcommand{\fileinfo}[2]%
+{
+ #1 \\ #2 \\
+}
+
+%****************************************************************************
+\newdimen\fullwidth \fullwidth=\textwidth
+
+\newdimen\emptyhead \advance\footskip by 0.5\baselineskip
+\emptyhead=\topmargin \advance\emptyhead by-1\baselineskip
+
+\def\ps at footings{
+\let\@mkboth\markboth
+\@ifundefined{chapter}{
+\def\sectionmark##1{\markboth
+{\uppercase{\ifnum \c at secnumdepth>\z@
+ \thesection\hskip 1em\relax \fi ##1}}{}}
+\def\subsectionmark##1{\markright {\ifnum \c at secnumdepth >\@ne
+ \thesubsection\hskip 1em\relax \fi ##1}}}
+{\def\chaptermark##1{\markboth {\uppercase{\ifnum \c at secnumdepth>\m at ne
+ \@chapapp\ \thechapter. \ \fi ##1}}{}}
+\def\sectionmark##1{\markright{\uppercase{\ifnum \c at secnumdepth >\z@
+ \thesection. \ \fi ##1}}}}
+}% endps@
+
+ \def\@evenhead{\vbox{\hsize\fullwidth
+ \hbox to \fullwidth{{\bf\thepage}\hfil\leftmark}%
+ \vskip 3pt \hrule}\hss}
+ \def\@oddhead{\vbox{\hsize\fullwidth
+ \hbox to \fullwidth{\rightmark\hfil{\bf\thepage}}%
+ \vskip 3pt \hrule}\hss}
+ \def\@evenfoot{\vbox{\hsize\fullwidth \hrule \vskip 3pt%
+ \hbox to \fullwidth{\small \sc {\ManualAuthor}
+ \hfil $\cdot$ \hfil {\ManualType\ GREAT-ER \GREATERVersion}
+ \hfil $\cdot$ \hfil {\today} }}\hss}%
+ \def\@oddfoot{\vbox{\hsize\fullwidth \hrule \vskip 3pt%
+ \hbox to \fullwidth{\small \sc {\ManualAuthor}
+ \hfil $\cdot$ \hfil {\ManualType\ GREAT-ER \GREATERVersion}
+ \hfil $\cdot$ \hfil \today\ }}\hss}%
+%}% endps@
+
+\pagestyle{footings}
Added: trunk/shared/sty/ManualTabular.sty
===================================================================
--- trunk/shared/sty/ManualTabular.sty 2011-11-24 14:29:06 UTC (rev 3826)
+++ trunk/shared/sty/ManualTabular.sty 2011-11-24 14:29:50 UTC (rev 3827)
@@ -0,0 +1,301 @@
+% $Source: /home/bricks/source/greater/cvs/greaterrepository/greater-pre-processing/doc/ManualTabular.sty,v $
+
+% $Author: jan $
+
+% $Revision: 1.1 $
+% $Date: 2002-09-18 12:55:31 $
+% $Locker: $
+
+% This file (`ManualTabular.sty') is based in the file `supertabular.sty'.
+% It includes some adaptations of `supertabular.sty' to the needs of
+% the GREAT-ER manuals.
+% You find the original header below.
+
+%%
+%% This is file `supertabular.sty', generated
+%% on <1992/7/10> with the docstrip utility (2.0n).
+%%
+%% The original source files were:
+%%
+%% supertabular.doc
+%%
+%% Copyright (C) 1988-92 by Theo Jurriens, Johanes Braams (90-92).
+%% All rights reserved.
+%%
+%% IMPORTANT NOTICE:
+%%
+%% You are not allowed to change this file. You may however copy this file
+%% to a file with a different name and then change the copy.
+%%
+%% You are NOT ALLOWED to distribute this file alone. You are NOT ALLOWED
+%% to take money for the distribution or use of this file (or a changed
+%% version) except for a nominal charge for copying etc.
+%%
+%% You are allowed to distribute this file under the condition that it is
+%% distributed together with all files mentioned below.
+%%
+%% If you receive only some of these files from someone, complain!
+%%
+%% Error Reports in case of UNCHANGED versions to either of
+%%
+%% J. Braams
+%% PTT Research, dr Neher Laboratorium
+%% P.O. box 421
+%% 2260 AK Leidschendam
+%% The Netherlands
+%% Internet: <J.L.Braams at research.ptt.nl>
+%%
+%% Theo Jurriens
+%% Rijks Universiteit Groningen
+%% P.O Box 800,
+%% 9700 AV Groningen
+%% The Netherlands
+%% Internet: <TAJ at rug.nl>
+%%
+\newif\if at topcaption \@topcaptiontrue
+\def\topcaption{\@topcaptiontrue\tablecaption}
+\def\bottomcaption{\@topcaptionfalse\tablecaption}
+\long\def\tablecaption{\refstepcounter{TabCnt} \@dblarg{\@xtablecaption}}
+\long\def\@xtablecaption[#1]#2{%
+ \long\gdef\@process at tablecaption{\@stcaption{TabCnt}[#1]{#2}}}
+\global\let\@process at tablecaption\relax
+\long\def\@stcaption#1[#2]#3{\par%
+ \addcontentsline{lot}{table}%
+ {\protect\numberline{\thesection.\arabic{TabCnt}}{#3}}
+% \addcontentsline{\csname ext@#1\endcsname}{#1}%
+% {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}
+ \begingroup
+ \@parboxrestore
+ \normalsize
+ \if at topcaption \vskip -10pt \fi % 'fix'
+ \@makecaption{Table \thesection.\arabic{TabCnt}}{\it #3}\par
+% \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
+ \if at topcaption \vskip 10pt \fi % 'fix'
+ \endgroup}
+\def\@tablehead{}
+\def\tablehead#1{\gdef\@tablehead{#1}}
+\def\tablefirsthead#1{\gdef\@table at first@head{#1}}
+\def\@tabletail{}
+\def\tabletail#1{%
+ \gdef\@tabletail{\noalign{\global\let\@savcr=\\\global\let\\=\cr}%
+ #1\noalign{\global\let\\=\@savcr}}}
+\def\tablelasttail#1{\gdef\@table at last@tail{#1}}
+\newdimen\maxsize % maximum pagesize
+\newdimen\actsize % actual pagesize
+\newdimen\twocolsize % needed for correct max height if twocolumn
+\newdimen\parboxheight % height plus depth of a parbox-argument
+\newdimen\addspace % stores the value of \\[#1]
+\newdimen\midlineheight % estimated size of a normal line
+\newdimen\pargcorrection % to set page height tolerance if p-arg
+\newdimen\computedimens % computation variable
+\newbox\tabparbox
+\def\@stabularcr{{\ifnum0=`}\fi\@ifstar{\@sxtabularcr}{\@sxtabularcr}}
+\def\@sxtabularcr{\@ifnextchar[{\@sargtabularcr}%
+ {\ifnum0=`{\fi}\cr\nextline}}
+\def\@sargtabularcr[#1]{\ifnum0=`{\fi}\ifdim #1>\z@
+ \unskip\@sxargarraycr{#1}\else \@syargarraycr{#1}\fi}
+\def\@sxargarraycr#1{\@tempdima #1\advance\@tempdima \dp \@arstrutbox
+ \vrule \@height\z@ \@depth\@tempdima \@width\z@ \cr
+ \noalign{\global\addspace=#1}\nextline}
+\def\@syargarraycr#1{\cr\noalign{\vskip #1\global\addspace=#1}\nextline}
+\def\@sstartpbox#1{\global\advance\maxsize by -\pargcorrection
+ \global\pargcorrection=0pt
+ \setbox\tabparbox%
+ \vtop\bgroup\hsize#1\@arrayparboxrestore}
+\def\@sastartpbox#1{\bgroup\hsize#1%
+ \global\advance\maxsize by -\pargcorrection
+ \global\pargcorrection=0pt
+ \setbox\tabparbox
+ \vtop\bgroup\hsize#1\@arrayparboxrestore}
+\def\@sendpbox{\unskip\strut\par\egroup
+ \computedimens=\ht\tabparbox
+ \advance\computedimens by \dp\tabparbox
+ \ifnum\parboxheight<\computedimens
+ \global\parboxheight=\computedimens
+ \fi
+ \computedimens=\z@
+ \box\tabparbox\hfil}
+\def\@saendpbox{\unskip\strut\par\egroup
+ \computedimens=\ht\tabparbox
+ \advance\computedimens by \dp\tabparbox
+ \ifnum\parboxheight<\computedimens
+ \global\parboxheight=\computedimens
+ \fi
+ \computedimens=\z@
+ \unvbox\tabparbox\egroup}
+\def\calmidlineheight{\midlineheight=\arraystretch \baslineskp
+ \global\advance\midlineheight by 1\p@
+ \global\pargcorrection=4\midlineheight}
+\def\calpage{\global\actsize=\pagetotal % where am I on the actual page?
+ \twocolsize=\textheight % added 06.06.89
+ \advance\twocolsize by -\@colroom % "
+ \advance\actsize by \twocolsize % "
+ \global\advance\actsize by \midlineheight
+ \maxsize=\textheight % start a new page when 90% of
+ \multiply \maxsize by 9 % the page are used
+ \divide\maxsize by 10
+ \advance\actsize 2\midlineheight
+ \ifnum\actsize > \maxsize
+ \clearpage
+ \global\actsize=\pagetotal
+ \fi
+ \maxsize=\textheight % now set \maxsize with tolerance
+ \setbox\@tempboxa=\vbox{\@arrayparboxrestore%
+ \expandafter\tabular\expandafter{\tableformat}
+ \@tabletail\endtabular}
+ \global\advance\maxsize by-\ht\@tempboxa}
+ % Here is the definition of supertabular
+\def\supertabular#1 {\def\tableformat{#1} % store preamble
+ \global\starfalse % remember this is the normal version
+ \if at topcaption\@process at tablecaption
+ \fi
+ \global\let\@oldcr=\\
+ \def\baslineskp{\baselineskip}%
+ \calmidlineheight% estimate height of a normal line
+ \calpage % calculate max. pagesize and startpoint
+ \ifx\undefined\@classix % then array.sty is not loaded
+ \let\@@tabularcr\@tabularcr% Added JB 4/2/91
+ \let\@tabularcr\@stabularcr
+ \let\@@startpbox=\@sstartpbox
+ \let\@@endpbox=\@sendpbox
+ \else
+ \let\@@tabularcr\@arraycr
+ \let\@arraycr\@stabularcr
+ \let\org at startpbox=\@startpbox
+ \let\org at endpbox=\@endpbox
+ \let\@startpbox=\@sastartpbox
+ \let\@endpbox=\@saendpbox
+ \fi
+ \ifx\@table at first@head\undefined
+ \let\@@tablehead=\@tablehead
+ \else
+ \let\@@tablehead=\@table at first@head
+ \fi% Added JB 4/2/91
+ \expandafter\tabular\expandafter{\tableformat}
+ \@@tablehead}% Added JB 15/2/91
+\def\endsupertabular{%
+ \ifx\@table at last@tail\undefined
+ \@tabletail
+ \else
+ \@table at last@tail
+ \fi% Added JB 4/2/91
+ \endtabular
+ \ifx\undefined\@classix % then array.sty is not loaded
+ \let\@tabularcr\@@tabularcr % Added JB 4/2/91
+ \else
+ \let\@arraycr\@@tabularcr
+ \let\@startpbox=\org at startpbox
+ \let\@endpbox=\org at endpbox
+ \fi
+ \if at topcaption
+ \else
+ \@process at tablecaption
+ \@topcaptiontrue
+ \fi
+ \global\let\\=\@oldcr
+ \let\@table at first@head\undefined % For the next ocurrence
+ \let\@table at last@tail\undefined % of this environment
+ \global\let\@process at tablecaption\relax
+}
+\newif\ifstar
+\newdimen\tabularwidth
+\@namedef{supertabular*}#1#2 {\def\tableformat{#2} % store preamble
+ \tabularwidth=#1 % The total width of the tabular
+ \global\startrue % remember this is the *-version
+ \if at topcaption\@process at tablecaption\fi
+ \def\baslineskp{\baselineskip}%
+ \calmidlineheight% estimate height of a normal line
+ \calpage % calculate max. pagesize and startpoint
+ \ifx\undefined\@classix % then array.sty is not loaded
+ \let\@@tabularcr\@tabularcr% Added JB 4/2/91
+ \let\@tabularcr\@stabularcr
+ \let\@@startpbox=\@sstartpbox
+ \let\@@endpbox=\@sendpbox
+ \else
+ \let\@@tabularcr\@arraycr
+ \let\@arraycr\@stabularcr
+ \let\org at startpbox=\@startpbox
+ \let\org at endpbox=\@endpbox
+ \let\@startpbox=\@sastartpbox
+ \let\@endpbox=\@saendpbox
+ \fi
+ \ifx\@table at first@head\undefined
+ \let\@@tablehead\@tablehead
+ \else
+ \let\@@tablehead\@table at first@head
+ \fi% Added JB 4/2/91
+ \expandafter\csname tabular*\expandafter\endcsname
+ \expandafter{\expandafter\tabularwidth\expandafter}%
+ \expandafter{\tableformat}%
+ \@@tablehead}%
+\@namedef{endsupertabular*}{%
+ \ifx\@table at last@tail\undefined
+ \@tabletail
+ \else
+ \@table at last@tail
+ \fi% Added JB 4/2/91
+ \csname endtabular*\endcsname
+ \ifx\undefined\@classix % then array.sty is not loaded
+ \let\@tabularcr\@@tabularcr % Added JB 4/2/91
+ \else
+ \let\@arraycr\@@tabularcr
+ \let\@startpbox=\org at startpbox
+ \let\@endpbox=\org at endpbox
+ \fi
+ % Check if we have to insert a caption
+ \if at topcaption
+ \else
+ \@process at tablecaption
+ % restore to default behaviour
+ \@topcaptiontrue
+ \fi
+ \global\let\\=\@oldcr
+ \let\@table at first@head\undefined % For the next ocurrence
+ \let\@table at last@tail\undefined % of this environment
+ \global\let\@process at tablecaption\relax}
+\def\nextline{% %%% algorithm to calculate the pagebreaks %%%
+ \noalign{\ifnum\parboxheight<\midlineheight
+ \advance\actsize by \midlineheight
+ \global\advance\actsize by \addspace
+ \else
+ \global\advance\actsize by \parboxheight
+ \divide\parboxheight by 11\relax
+ \global\advance\actsize by \parboxheight%
+ \global\parboxheight=0pt
+ \fi
+ \global\addspace=0pt}%
+ \ifnum\actsize<\maxsize
+ \noalign{\global\let\next\@empty}%
+ \else
+ \@tabletail
+ \ifstar% % Added 16-10-90
+ \csname endtabular*\endcsname
+ \else
+ \endtabular
+ \fi
+ \if at twocolumn% % added 10.05.89
+ \if at firstcolumn% %
+ \newpage% %
+ \else% %
+ \clearpage% %
+ \fi% %
+ \twocolsize=\textheight% % added 06.06.89
+ \advance\twocolsize by -\@colroom% % "
+ \global\actsize=\twocolsize% % "
+ \global\advance\actsize by \midlineheight
+ \else %
+ \clearpage %
+ \global\actsize=\midlineheight
+ \fi %
+ \let\next\@tablehead% % Added 15.2.91
+ \ifstar% % Added 16-10-90
+ \expandafter\csname tabular*\expandafter\endcsname
+ \expandafter{\expandafter\tabularwidth\expandafter}%
+ \expandafter{\tableformat}%
+ \else
+ \expandafter\tabular\expandafter{\tableformat}%
+ \fi
+ \fi\next}% % Added \next 15.2.91
+\endinput
+%%
+%% End of file `supertabular.sty'.
More information about the Greater-commits
mailing list