%
% platonsdg.sty - LaTeX 2e style
%
% Developed by Lubomir Host 'rajo' <rajo AT platon.sk>
% Copyright (c) 2003-2005 Platon SDG, http://platon.sk/
% Licensed under terms of GNU General Public License.
% All rights reserved.
%
% $Platon: Platon.SK/office/_stylesheets/platonsdg/platonsdg.sty,v 1.33 2005/06/15 21:54:59 rajo Exp $
%
\ProvidesPackage{platonsdg}
%
% package 'lastpage.sty'
% from texmf/tex/latex/lastpage/lastpage.sty
% TODO - this replacement of package 'lastpage.sty' works
% in latex but doesn't work in pdflatex (hmmm ??)
%\def\lastpagePutlabel{\addtocounter{page}{-1}%
% \immediate\write\@auxout{\string
% \newlabel{LastPage}{{}{\thepage}}}%
% \addtocounter{page}{1}}
%\AtEndDocument{%
% \clearpage\lastpagePutlabel}%
\ifx\PlatonPDFtitle\undefined
\@ifpackagewith{babel}{slovak}{
\def\PlatonPDFtitle{Platon SDG document}
}{
\def\PlatonPDFtitle{Platon SDG dokument}
}
\fi
\ifx\PlatonPDFauthor\undefined
\def\PlatonPDFauthor{Platon~SDG}
\fi
\ifx\PlatonPDFsubject\undefined
\def\PlatonPDFsubject{\PlatonPDFtitle}
\fi
\ifx\PlatonPDFkeywords\undefined
\@ifpackagewith{babel}{slovak}{
\def\PlatonPDFkeywords{
Platon, Platon SDG, Platon Software Development Group, open-source,
GNU, OSI, Linux, UNIX, C/C++, PHP, Perl, MySQL, ViM,
otvorený softvér, softvér, vývoj, skupina, databáza,
podpora, inžinierstvo, riešenia, produkty, komercia
}
}{
\def\PlatonPDFkeywords{
Platon, Platon SDG, Platon Software Development Group, open-source,
GNU, OSI, Linux, UNIX, C/C++, PHP, Perl, MySQL, ViM,
open source, software, development, group, database,
support, engineering, solutions, products, commerce
}
}
\fi
% Check if we're using pdflatex or plain latex
% http://www.cmp.liv.ac.uk/misc/guide/linux_guide/node133.html
%\usepackage {ifpdf}
\ifpdf% /*
\usepackage [pdftex]{graphicx}
\usepackage {thumbpdf}
\pdfoutput=1
\pdftrue
\pdfcompresslevel=9
\else
\usepackage [dvips]{graphicx}
\input epsf.tex
\pdffalse
\fi % */
% slovenske delenie slov
%\shyph
%
% Extra fonts
%
%\font\PlatonFontLogo=pncbc at 28pt
%\font\PlatonFontLogo=coprgtl at 12 pt
\font\PlatonFontLogo=pncbc at 30pt
\font\PlatonFontLogoSmall=pncbc at 12pt
%
% Header and footer of page
%
%\def\PlatonFontHeader#1{\textsf{#1}}
\newcommand{\PlatonFontHeaderSmall}[1]{{\fontsize{11}{1}\usefont{T1}{cmss}{m}{n}#1}}
\newcommand{\PlatonFontHeaderScriptsize}[1]{{\fontsize{8}{1}\usefont{T1}{cmss}{m}{n}#1}}
\newcommand{\PlatonFontHeaderOSSD}[1]{{\usefont{T1}{cmtt}{m}{n}\fontsize{12}{1}#1}}
\@ifpackagewith{babel}{slovak}{
\def\PlatonHeaderAddress{
\raisebox{35pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderSmall{\PlatonAddressStreet}}}%
\raisebox{23.5pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderSmall{\PlatonAddressCity}}}%
\raisebox{11pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderScriptsize{\PlatonAddressEmail}}}%
\raisebox{2pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderScriptsize{\PlatonAddressSite}}}%
}
}{
\def\PlatonHeaderAddress{
\raisebox{38pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderScriptsize{\PlatonAddressStreet}}}%
\raisebox{29pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderScriptsize{\PlatonAddressCity}}}%
\raisebox{20pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderScriptsize{\PlatonAddressState}}}%
\raisebox{11pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderScriptsize{\PlatonAddressEmail}}}%
\raisebox{2pt}[0pt][0pt]{\makebox(0,0)[r]{\PlatonFontHeaderScriptsize{\PlatonAddressSite}}}%
}
}
\def\X{\hspace{0.57mm}}
\fancypagestyle{PlatonFirstPage}{% /*
\fancyhf{}% clear all header and footer fields
\fancyfoot[R]{\hfil{\PlatonFontHeaderSmall{\pagename~\thepage/\pageref{LastPage}}}}%
\fancyfoot[L]{\PlatonFontHeaderSmall{\PlatonSKText}}%
\fancyhead[L]{% left side of header
\raisebox{27pt}[0pt]{\makebox(0,0)[l]{\includegraphics[width=46pt]{platonsdg-logo}}}%
\raisebox{23pt}[0pt]{\makebox(0,0)[l]{{}\strut\hspace{47pt}\PlatonFontLogo \PlatonSDGText}}%
\raisebox{2pt}[0pt]{\makebox(0,0)[l]{%
\texttt{\fontsize{12}{1}\selectfont%
o\X p\X e\X n\X%
~s\X o\X u\X r\X c\X e\X%
~s\X o\X f\X t\X w\X a\X r\X e\X%
~d\X e\X v\X e\X l\X o\X p\X m\X e\X n\X t}}}%
}%
\fancyhead[R]{% right side of header
\PlatonHeaderAddress
}
\renewcommand{\headrulewidth}{0.4pt}%
\renewcommand{\footrulewidth}{0.4pt}%
}% */
\fancypagestyle{Platon}{% /*
\fancyhf{} % clear all header and footer fields
\fancyhead[R]{\hfil{\PlatonFontHeaderSmall{\pagename~\thepage/\pageref{LastPage}}}}
\fancyfoot[R]{\hfil{\PlatonFontHeaderSmall{\pagename~\thepage/\pageref{LastPage}}}}
\fancyfoot[L]{\PlatonFontHeaderSmall{\PlatonSKText}}
\fancyhead[L]{ % left side of header
\makebox{\raisebox{-1.5pt}[16pt]{\includegraphics[width=18pt]{platonsdg-logo}}%
\PlatonFontLogoSmall{~\PlatonSDGText}%
}%
}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}% */
%%
%% Page size setup
%%
\voffset=-1in % default 0pt
\hoffset=-1in % default 0pt
\topmargin=2.3cm % default 20pt = 0.7cm
\textwidth=16cm % default 390pt = 13.71cm
\textheight=21cm % default 592pt = 20.8cm
\oddsidemargin=25mm % default 31pt = 1.1cm
\evensidemargin=25mm % default 31pt = 1.1cm
\unitlength=1mm % default 1pt
\abovecaptionskip=5pt
\belowdisplayskip=0pt
%\headsep=0pt
% odstavce
\setlength{\parindent}{0pt}
\setlength{\parskip}{\medskipamount}
\setlength{\headheight}{49pt} % see fancyhdr package warning if smallest
% vypis jednotiek:
{\newlinechar`\^^J % prinutime ho oddelovat spravy novym riadkom
\message{^^J^^J}
\message{Page size setup (1pt = 0.35mm):^^J}
\message{---------------------------^^J}
\message{voffset = \the\voffset^^J}
\message{hoffset = \the\hoffset^^J}
\message{textwidth = \the\textwidth^^J}
\message{textheight = \the\textheight^^J}
\message{oddsidemargin = \the\oddsidemargin^^J}
\message{evensidemargin = \the\evensidemargin^^J}
\message{topmargin = \the\topmargin^^J}
\message{unitlength = \the\unitlength^^J}
\message{parindent = \the\parindent^^J}
\message{parskip = \the\parskip^^J}
\message{abovecaptionskip = \the\abovecaptionskip^^J}
\message{belowcaptionskip = \the\belowcaptionskip^^J}
\message{headheight = \the\headheight^^J}
\message{headsep = \the\headsep^^J}
\message{footskip = \the\footskip^^J}
\message{---------------------------^^J^^J}
}
\def\PlatonHeader#1{ % /*
\title{\PlatonPDFtitle}
\author{\PlatonPDFauthor}
\begin{center}
{\Large{\textbf{\PlatonPDFtitle}}}
\end{center}
\vspace{\smallskipamount}
} % */
\def\PlatonFooter#1{ % /*
\vfill
\scriptsize{\PlatonFooterText}
} % */
\def\PlatonExtendedHeader#1{ % /*
\PlatonHeader{#1}
\begin{flushright}
\begin{tabular}{l}
\PlatonSDG \\
\PlatonWebsite \\
\today
\end{tabular}
\end{flushright}
} % */
% vim: ts=4
% vim600: fdl=0 fdm=marker fdc=3 fmr=/*,*/
Platon Group <platon@platon.sk> http://platon.sk/
|