81 lines
2.3 KiB
Plaintext
81 lines
2.3 KiB
Plaintext
|
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
|
||
|
%
|
||
|
% This work may be distributed and/or modified under the
|
||
|
% conditions of the LaTeX Project Public License, either version 1.3
|
||
|
% of this license or (at your option) any later version.
|
||
|
% The latest version of this license is in
|
||
|
% http://www.latex-project.org/lppl.txt
|
||
|
% and version 1.3 or later is part of all distributions of LaTeX
|
||
|
% version 2003/12/01 or later.
|
||
|
%
|
||
|
% This work has the LPPL maintenance status "maintained".
|
||
|
%
|
||
|
% This Current Maintainer of this work is Konstantin Korikov.
|
||
|
%
|
||
|
% This work consists of all files listed in manifest.txt.
|
||
|
%
|
||
|
|
||
|
%
|
||
|
% This is automaticaly generated file, do not edit it.
|
||
|
%
|
||
|
|
||
|
\NeedsTeXFormat{LaTeX2e}
|
||
|
\ProvidesPackage{espdframe}[2011/05/09 v0.98 Frame Page Style]
|
||
|
|
||
|
\RequirePackage{espdstamp}
|
||
|
\RequirePackage{setspace}
|
||
|
\RequirePackage{calc}
|
||
|
|
||
|
\def\ESPD@frame@vt{%
|
||
|
\setlength{\ESPD@tmpdimc}{%
|
||
|
\ESPDframeY+\ESPDframeH-\ESPD@padding@v}}
|
||
|
|
||
|
\def\ESPD@frame@vb{%
|
||
|
\setlength{\ESPD@tmpdimc}{%
|
||
|
\ESPDframeY+\ESPD@padding@v-15mm}}
|
||
|
|
||
|
\def\ESPD@frame@hl{%
|
||
|
\ifESPD@twoside
|
||
|
\ifodd\c@page\raggedright\else\raggedleft\fi
|
||
|
\else\raggedright\fi}
|
||
|
|
||
|
\def\ESPD@frame@hr{%
|
||
|
\ifESPD@twoside
|
||
|
\ifodd\c@page\raggedleft\else\raggedright\fi
|
||
|
\else\raggedleft\fi}
|
||
|
|
||
|
\def\ESPD@frame@hc{\centering}
|
||
|
|
||
|
\let\ESPD@frame@ha\ESPD@frame@hc
|
||
|
\let\ESPD@frame@va\ESPD@frame@vb
|
||
|
|
||
|
\DeclareOption{numbertop}{\let\ESPD@frame@va\ESPD@frame@vt}
|
||
|
\DeclareOption{numberbottom}{\let\ESPD@frame@va\ESPD@frame@vb}
|
||
|
\DeclareOption{numberleft}{\let\ESPD@frame@ha\ESPD@frame@hl}
|
||
|
\DeclareOption{numbercenter}{\let\ESPD@frame@ha\ESPD@frame@hc}
|
||
|
\DeclareOption{numberright}{\let\ESPD@frame@ha\ESPD@frame@hr}
|
||
|
|
||
|
\ProcessOptions\relax
|
||
|
|
||
|
% Колонтитул
|
||
|
\newcommand{\ESPDdrawFramePageNumber}{
|
||
|
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPD@padding@h}
|
||
|
\setlength{\ESPD@tmpdimb}{\ESPDframeW-2\ESPD@padding@h}
|
||
|
\ESPD@frame@va
|
||
|
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimc}){%
|
||
|
\parbox[b][25mm][c]{\ESPD@tmpdimb}{%
|
||
|
\begin{singlespace}
|
||
|
\reset@font\normalsize
|
||
|
\ESPD@frame@ha\thepage \\ \MakeUppercase\ESPDtheSignature
|
||
|
\end{singlespace}
|
||
|
}}}
|
||
|
|
||
|
\ESPDnewStyle{frame}{0mm}
|
||
|
\ESPDputOnStyle{frame}{pagenumber}{\ESPDdrawFramePageNumber}
|
||
|
\renewcommand{\ESPDdrawFrame}{}
|
||
|
|
||
|
\ESPDdefaultTitleStyle{title}
|
||
|
\ESPDdefaultFirstStyle{frame}
|
||
|
\ESPDdefaultStyle{frame}
|
||
|
|