diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.tex | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.tex b/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.tex new file mode 100644 index 00000000000..522b9183f24 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.tex @@ -0,0 +1,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} + +\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} |