summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.tex
blob: 0eb96733e96b70b8e0bf56354c7db3c54dd4d279 (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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
\documentclass{article}
\usepackage[series={A,B,C,D,E},noend,noeledsec,nofamiliar,noledgroup]{reledmac} 
\usepackage{lipsum,polyglossia}
\setmainlanguage{english}
\usepackage{libertine}


\newcounter{mynotelevel}%A counter to dump the note level
\renewcommand{\themynotelevel}{\Alph{mynotelevel}}% The counter is seen as a letter
\AtEveryPstart{%
  \addtocounter{mynotelevel}{1}%Step counter
  \ifnumequal{\value{mynotelevel}}{6}{%No more than 5
    \setcounter{mynotelevel}{1}%
  }{}%
  \global\letcs{\mynote}{\themynotelevel footnote}%Change the mynote
  \seriesatend{\themynotelevel}%And place current series at the end
}
\begin{document}
\date{}
\title{One series per \textbackslash pstart with reledmac}
\author{}
\maketitle
\begin{abstract}
This file provides examples of features that allow one series of notes by \verb+\pstart+…\verb+pend+.

We suppose there is no more than five \verb+\pstart+…\verb+pend+ by page.

Instead of using \verb+\Afootnote+, \verb+\Bfootnote+ etc., we use \verb+\mynote+, which we set to \verb+\Afootnote+ at the first \verb+pstart+, \verb+\Bfootnote+ at the second \verb+\pstart+, \verb+\Cfootnote+ at the third, \verb+\Dfootnote+ at the fourth, \verb+\Efootnote+ at the fifth. And we restart at \verb+\Afootnote+ at the sixth \verb+\pstart+.

To do this, we increment the counter \verb+mynotelevel+ at every \verb+pstart+ and reset it to~1 when it becomes equal to~6.

We use \verb+\seriesatend+ to ensure that a \verb+pstart+ series between two pages will be printed on the first page at the end of the series, but on the second page at the beginning of the series.
\end{abstract}

    \beginnumbering

    \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[1]
    \pend

    \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend

    \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend

        \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
        \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2]\edtext{on therpage}{\mynote{on otherpage}} 
    \pend

        \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend

        \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    
    
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    
    
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    
    
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    
    
            \pstart
    \edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the 
    \edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph: 
    \lipsum[2] 
    \pend
    \endnumbering

\end{document}