File: eskdfootnote.sty.in

package info (click to toggle)
texlive-lang 2016.20170123-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,093,148 kB
  • ctags: 15,901
  • sloc: perl: 46,074; xml: 29,603; makefile: 5,248; sh: 3,179; python: 2,949; ansic: 2,846; ruby: 945; lisp: 726; awk: 636; java: 159; sed: 142; cpp: 12
file content (81 lines) | stat: -rw-r--r-- 2,796 bytes parent folder | download | duplicates (9)
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
% 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.
%
m4_ESKDX_INIT
m4_FILE_INIT
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{eskdfootnote}[m4_dnl
m4_FILE_ID([[$Date:: 2010-01-14#$]]) 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}

m4_dnl vim:ft=tex:sw=2:ai