summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eskdx/eskdfootnote.sty
blob: 909d3742a60bfab3d04f8ce94a6bce980f93ed4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
% 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{eskdfootnote}[2010/01/14 v0.98 Footnote Settings]

% îÕÍÅÒÏ×ÁÔØÓÑ ÓÎÏÓËÉ ÄÏÌÖÎÙ × ÐÒÅÄÅÌÁÈ ÏÄÎÏÊ ÓÔÒÁÎÉÃÙ.
% óÁÍÏÅ ÏÞÅ×ÉÄÎÏÅ ÒÅÛÅÎÉÅ - ÐÅÒÅÐÏÄÞÉÎÉÔØ ÓÞÅÔÞÉË footnote ÓÞÅÔÞÉËÕ page,
% ÎÏ ÔÁËÏÊ ÍÅÔÏÄ ÂÕÄÅÔ ÄÁ×ÁÔØ ÓÂÏÉ, ÅÓÌÉ ÓÎÏÓËÁ ×ÓÔÁ×ÌÅÎÁ
% ÂÌÉÚËÏ Ë ËÏÎÃÕ ÓÔÒÁÎÉÃÙ.
% üÔÕ ÐÒÏÂÌÅÍÕ ÒÅÛÉÌ ïÂÅÒÄÁÊË × Ó×ÏÅÍ ÐÁËÅÔÅ zref

% ÐÁËÅÔ amsmath ÄÏÌÖÅÎ ÂÙÔØ ÚÁÇÒÕÖÅÎ ðåòåä zref
% ×ÏÚÍÏÖÎÏ ÓÔÏÉÔ ÚÁÇÒÕÖÁÔØ ÅÇÏ × ËÌÁÓÓÅ eskdtext
% Á ÎÅ ÚÄÅÓØ 
\RequirePackage{amsmath}
\RequirePackage{zref-perpage}

% ÐÒÉ×ÑÚÙ×ÁÅÍ ÓÂÒÏÓ ÓÞÅÔÞÉËÁ ÓÎÏÓÏË Ë ÇÒÁÎÉÃÁÍ ÓÔÒÁÎÉÃ
\zmakeperpage{footnote} 

\let\footnotesize\small

% îÉÖÅÓÌÅÄÕÀÝÁÑ ÓÔÒÏËÁ ÂÙÌÁ ×ÚÑÔÁ ÉÚ eskddstu.sty.
% óÏÇÌÁÓÎÏ çïóT 2.105-95 ÐÏÓÌÅ ÍÅÔËÉ ÓÎÏÓËÉ ÄÏÌÖÎÁ ÂÙÔØ ÚÁËÒÙ×ÁÀÝÁÑ ÓËÏÂËÁ.
% óÔÁÎÄÁÒÔ ÍÅÖÇÏÓÕÄÁÒÓÔ×ÅÎÎÙÊ É ÄÁÎÎÁÑ ÓÔÒÏËÁ ÂÕÄÅÔ ÂÏÌÅÅ 
% ÕÍÅÓÔÎÏ ÓÍÏÔÒÅÔØÓÑ ÚÄÅÓØ
\renewcommand{\thefootnote}{\arabic{footnote})}

% ðÏÍÉÍÏ ÁÒÁÂÓËÉÈ ÃÉÆÒ Ó ÚÁËÒÙ×ÁÀÝÅÊ ÓËÏÂËÏÊ
% ÓÔÁÎÄÁÒÔ ÄÏÐÕÓËÁÅÔ ÉÓÐÏÌØÚÏ×ÁÎÉÅ Ú×ÅÚÄÏÞÅË.
% âÏÌÅÅ ÞÅÔÙÒÅÈ ÉÓÐÏÌØÚÏ×ÁÔØ <<ÎÅ ÒÅËÏÍÅÎÄÕÅÔÓÑ>>.
% óÌÏÖÎÏ ÓËÁÚÁÔØ, ÞÔÏ ÜÔÏ ÚÎÁÞÉÔ. îÁ×ÅÒÎÏÅ,
% ÎÁ ÕÓÍÏÔÒÅÎÉÅ ÎÏÒÍÏËÏÎÔÒÏÌÑ.
% äÌÑ ÕÄÏÂÓÔ×Á ÏÐÒÅÄÅÌÉÍ ËÏÍÁÎÄÕ \fnasterisk
% ÐÏ ÁÎÁÌÏÇÉÉ Ó \fnsymbol
\def\fnasterisk#1{\expandafter\@fnasterisk\csname c@#1\endcsname}
\def\@fnasterisk#1{%
  \ifcase#1%
    % empty for zero value
    \or*%
    \or**% 
    \or***% 
    \or****%
    \else\PackageError{eskdfootnote}{Too many asterisks}%
      {GOST 2.105-95 does not recommend to use\MessageBreak
      more then 4 asterisks in footnotes.\MessageBreak
      Use 'footnotearabic' option in documentclass instead}%
  \fi%
}

% ðÒÉÎÉÍÁÅÍÙÅ ÏÐÃÉÉ
\DeclareOption{footnotearabic}{\renewcommand{\thefootnote}{\arabic{footnote})}}
\DeclareOption{footnoteasterisk}{\renewcommand{\thefootnote}{\fnasterisk{footnote}}}
\ProcessOptions\relax

% íÅÔËÁ ÓÎÏÓËÉ ÄÏÌÖÎÁ ÎÁÈÏÄÉÔØÓÑ ÐÏ ÓÒÅÚÕ ÁÂÚÁÃÎÏÇÏ ÏÔÓÔÕÐÁ.
% äÌÑ ÜÔÏÇÏ ×ÓÔÁ×ÌÑÅÍ ÐÕÓÔÏÊ ÂÏËÓ ÛÉÒÉÎÏÊ × ÁÂÚÁÃÎÙÊ ÏÔÓÔÕÐ,
% ÐÏÓÌÅ ÎÅÇÏ ÂÏËÓ Ó ÍÅÔËÏÊ ÓÎÏÓËÉ, Á ÚÁ ÎÉÍ, ÓÏÂÓÔ×ÅÎÎÏ, ÔÅËÓÔ.
\renewcommand\@makefntext[1]{%
  \parindent 15mm%
  \noindent%
  \hbox to \parindent{}\hbox{\hss\@makefnmark} #1}