| version 1.19, 2004/07/03 20:55:04 |
version 1.20, 2005/01/03 11:11:25 |
|
|
| % Licensed under terms of GNU General Public License. |
% Licensed under terms of GNU General Public License. |
| % All rights reserved. |
% All rights reserved. |
| % |
% |
| % $Platon: Platon.SK/office/_templates/platon.sty,v 1.18 2004/03/26 16:31:17 nepto Exp $ |
% $Platon: Platon.SK/office/_templates/platon.sty,v 1.19 2004/07/03 20:55:04 nepto Exp $ |
| % |
% |
| |
|
| \ProvidesPackage{platon} |
\ProvidesPackage{platon} |
|
|
| \usepackage {floatflt} |
\usepackage {floatflt} |
| \usepackage {fancyhdr} |
\usepackage {fancyhdr} |
| \usepackage {lastpage} |
\usepackage {lastpage} |
| |
\usepackage {ifthen} |
| |
|
| % |
% |
| % package 'lastpage.sty' |
% package 'lastpage.sty' |
|
|
| %\AtEndDocument{% |
%\AtEndDocument{% |
| % \clearpage\lastpagePutlabel}% |
% \clearpage\lastpagePutlabel}% |
| |
|
| |
\ifx\platonPDFtitle\undefined |
| |
\def\platonPDFtitle{Platon SDG document} |
| |
\fi |
| |
\ifx\platonPDFauthor\undefined |
| |
\def\platonPDFauthor{Platon SDG} |
| |
\fi |
| |
\ifx\platonPDFsubject\undefined |
| |
\def\platonPDFsubject{} |
| |
\fi |
| |
\ifx\platonPDFkeywords\undefined |
| |
\def\platonPDFkeywords{Platon, Platon SDG, Platon Software Development Group} |
| |
\fi |
| |
|
| % Check if we're using pdflatex or plain latex |
% Check if we're using pdflatex or plain latex |
| % http://www.cmp.liv.ac.uk/misc/guide/linux_guide/node133.html |
% http://www.cmp.liv.ac.uk/misc/guide/linux_guide/node133.html |
| \usepackage {ifpdf} % /* |
\usepackage {ifpdf} % /* |
|
|
| \pdfoutput=1 |
\pdfoutput=1 |
| \pdftrue |
\pdftrue |
| \usepackage[pdftex, |
\usepackage[pdftex, |
| pdftitle={Platon SDG document}, |
pdftitle={\platonPDFtitle}, |
| pdfauthor={Platon SDG}, |
pdfauthor={\platonPDFauthor}, |
| pdfsubject={}, |
pdfsubject={\platonPDFsubject}, |
| |
pdfkeywords={\platonPDFkeywords}, |
| pagebackref={true}, |
pagebackref={true}, |
| linktocpage, |
linktocpage, |
| a4paper, |
a4paper, |
|
|
| } |
} |
| |
|
| \def\platonHeader#1{ % /* |
\def\platonHeader#1{ % /* |
| \title{#1} |
% redefine platonPDFtitle |
| \author{Platon Software Development Group} |
\def\platonPDFtitle{#1} |
| |
\title{\platonPDFtitle} |
| |
\author{\platonPDFauthor} |
| |
|
| \begin{center} |
\begin{center} |
| {\Large{\textbf{#1}}} |
{\Large{\textbf{\platonPDFtitle}}} |
| \end{center} |
\end{center} |
| \vspace{\smallskipamount} |
\vspace{\smallskipamount} |
| } % */ |
} % */ |