summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/reledmac/examples/2-notes-width.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/reledmac/examples/2-notes-width.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/reledmac/examples/2-notes-width.tex')
-rw-r--r--macros/latex/contrib/reledmac/examples/2-notes-width.tex54
1 files changed, 54 insertions, 0 deletions
diff --git a/macros/latex/contrib/reledmac/examples/2-notes-width.tex b/macros/latex/contrib/reledmac/examples/2-notes-width.tex
new file mode 100644
index 0000000000..432ffcb41e
--- /dev/null
+++ b/macros/latex/contrib/reledmac/examples/2-notes-width.tex
@@ -0,0 +1,54 @@
+\documentclass{article}
+\usepackage[osf,p]{libertinus}
+\usepackage{microtype}
+\usepackage[pdfusetitle,hidelinks]{hyperref}
+\usepackage[english, main=latin]{babel}
+\babeltags{english = english}
+\usepackage{lipsum}
+
+\usepackage[noend,noeledsec,noledgroup,series={A,B,C,D}]{reledmac}
+\Xarrangement[A]{paragraph}
+\Xarrangement[B]{twocol}
+\Xarrangement[C]{threecol}
+\arrangementX[A]{paragraph}
+\arrangementX[B]{twocol}
+\arrangementX[C]{threecol}
+\Xwidth{\columnwidth+\marginparsep+\ledrsnotewidth}
+\widthX{\columnwidth+\marginparsep+\ledrsnotewidth}
+\rightnoteupfalse
+
+\AtBeginDocument{%
+ \maxhnotesX{0.8\textheight}
+ \Xmaxhnotes{0.8\textheight}
+}
+\Xcolalign{\justifying}
+\colalignX{\justifying}
+\begin{document}
+
+\begin{english}
+\date{}
+\title{Setting footnotes width}
+\maketitle
+\begin{abstract}
+This example use \verb+maxhnotesX+ and \verb+Xmaxhnotes+ to set the width of familiar and critical footnotes. The width is set to \verb+\columnwidth+\marginparsep+\ledrsnotewidth+, that means footnotes go from the left of the text to the right of the sidenotes.
+\end{abstract}
+\end{english}
+\newpage
+\beginnumbering
+\pstart
+\edtext{Lorem}{
+ \Afootnote{A\lipsum*[1]}
+ \Bfootnote{B\lipsum*[2]}
+ \Cfootnote{C\lipsum*[3]}
+ \Dfootnote{D\lipsum*[4]}
+ }
+Dolor
+\ledsidenote{A long side note.}
+\lipsum*[1]
+\pend
+\newpage
+\pstart
+\lipsum*[2]\ledsidenote{A long side note.}\footnoteA{A\lipsum*[5]}\footnoteB{B\lipsum*[6]}\footnoteC{C\lipsum*[7]}\footnoteD{D\lipsum*[8]}
+\pend
+\endnumbering
+\end{document}