summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ednotes/varnrule.tex
blob: 4e2d203314e6a30c56ebe8c8347b870bffe2f906 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
%% varnrule.tex -- demo for varying footnote rules with 
%% ednotes.sty (manyfoot feature now supported by ednotes 
%% -- search ednotes.sty for `Customizing *footnote rules*'). 
%% Uwe Lueck http://contact-ednotes.sty.de.vu 2006/07/06 

%% Present task: Sergei Mariev wants to use ordinary (numbered) 
%  footnotes as well as critical apparatuses. An ordinal footnote 
%  rule should separate the main text from the footnotes in any 
%  case. The additional footnotes should be separated by usual 
%  footnote rules as well. However, there shouldn't be a rule 
%  between the ordinary numbered footnotes and the remaining 
%  ones. 
% 
\documentclass[12pt]{article}

%  Below \endinput here, there is a sample for experiencing the 
%  manyfoot feature without ednotes ...: 
% 
%%%% \iffalse %% To switch to the mere manyfoot sample -- needs 
%%%%          %% removing percent signs preceding corresponding 
%%%%          %% \fi as well! 

\newcommand{\SelectAnoteRule}{[1]{no}}
\newcommand{\SelectBnoteRule}{[0]{default}}
% <- Priorities 1 and 0 will be overridden by priority 2 
%    of the Standard LateX footnote rule, 
%    so there will be a footnote rule between main text and the 
%    footnotes in any case. Priority 1 above ensures that 
%    there will never be a visible rule between ordinary footnotes 
%    and the new A/B/C footnotes handled by manyfoot. 
%    `no' corresponds to \newcommand{\nofootnoterule} below; 
%    `default' refers to the standard footnote rule as stored 
%    by manyfoot. 
%    -- \newcommand{\Select... must come before loading ednotes. 

\usepackage[Bpara,Cpara]{ednotes}

\renewcommand{\footnoterulepriority}{2} 
% <- setting default priority, especially for the ordinary LaTeX 
%    footnotes. This priority is the maximal one here and thus 
%    overrides all the remaining ones. So there will be a rule 
%    between main text and the footnotes in any case. 
%    -- The previous line must come /after/ loading ednotes. 

\newcommand{\nofootnoterule}{} 
% <- or \let\nofootnoterule\empty; or call it \emptyfootnoterule. 
%    If so, use `empty' instead of `no' above. 
%    -- This line may come anywhere before the first page 
%    is output. 

\begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

\linenumbers 

%% Remove or add some percent signs for playing: 
Some text.\footnote{Ordinary footnote.} 
% \Anote{A lemma.}{A note.} 
\Bnote{B lemma.}{B note.} 
\Cnote{C lemma.}{C note.} 

\end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 


Code demonstrating manyfoot's feature of customized footnote rules: 

%%%% \fi 

\nofiles 

\usepackage[para,ruled]{manyfoot}
% <- I wasn't able to get the below -- much wanted -- results 
%    without the `ruled' option -- may someone do better!? 

\renewcommand{\footnoterulepriority}{2} 
% <- setting default priority, especially for the ordinary LaTeX 
%    footnotes. This priority is the maximal one here and thus 
%    overrides all the remaining ones. So there will be a rule 
%    between main text and the footnotes in any case. 

\newcommand{\nofootnoterule}{} 
% <- or \let\nofootnoterule\empty; or call it \emptyfootnoterule. 
%    If so, use `empty' instead of `no' below. 

\SelectFootnoteRule[1]{no}
\newfootnote[para]{A} 
% <- Priorities 1 here and 0 below will be overridden by priority 
%    2 of the Standard LateX footnote rule, 
%    so there will be a footnote rule between main text and the 
%    footnotes in any case. Priority 1 just above ensures that 
%    there will never be a visible rule between ordinary footnotes 
%    and the new ("level") footnotes handled by manyfoot. 

\SelectFootnoteRule[0]{default}
% <- `default' refers to the standard footnote rule as stored 
%    by manyfoot. 
\newfootnote[para]{B} 
\newfootnote[para]{C} 
% <- Notes in A, B, C will be separated by rules in the usual way. 

\begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

%% Remove or add some percent signs for playing: 
Some text.\footnote{Ordinary footnote.}% 
% \FootnotetextA{}{A}% 
\FootnotetextB{}{B}%
\FootnotetextC{}{C}

\end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

End of varnrule.tex