Debian Codegraph @

texmf-dist/doc/latex/reledmac/examples/2-linespacing.tex

raw
1 \documentclass{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[osf,p]{libertinus}
4 \usepackage{microtype}
5 \usepackage[pdfusetitle,hidelinks]{hyperref}
6 \usepackage[english, main=latin]{babel}
7 \babeltags{english = english}
8
9 \usepackage{setspace}
10 \AtBeginDocument{\doublespacing}
11 \usepackage{lipsum}
12 \SetLipsumParListEnd{\par}
13 \usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
14 \Xarrangement[A]{paragraph}
15 \Xarrangement[B]{twocol}
16 \makeatletter
17 \Xbhooknote{\setstretch {\setspace@singlespace}}
18 \Xbhookgroup{\setstretch {\setspace@singlespace}}
19 \makeatother
20
21
22 \begin{document}
23
24 \begin{english}
25 \date{}
26 \title{Line spacing}
27 \maketitle
28 \begin{abstract}
29 This example sets the interline of footnotes with the \emph{setspace} package. The main text is double line spacing, the footnotes are single line spacing.
30
31 It use the \verb+\Xbhooknote+ and \verb+\Xbhookgroup+ commands to call some space setting.
32 Note that these commands are called after loading the \emph{setspace} package, because they use \emph{setspace} commands.
33
34 We use \verb`\AtBeginDocument{\doublespacing}` to start doublespacing at the beginning of the \verb+document+ environment. We do not use the \verb+doublespacing+ option of the \emph{setspace} package, because it dirupts internal \emph{reledmac} computing.
35 \end{abstract}
36 \end{english}
37 \beginnumbering
38 \pstart
39 \lipsum*[1]\edtext{Lipsum}{
40 \Afootnote{\lipsum*[3]}
41 \Bfootnote{\lipsum*[4]}}
42 \lipsum*[6-7]
43 \pend
44 \endnumbering
45 \end{document}