Page Layout ⇒ Reledmac: Seperating notes from main text in the source code?
Reledmac: Seperating notes from main text in the source code?
I'm using Reledmac to footnote a text; mainly using the familiar notes feature.
Is there a convenient way to separate the foot note text from the main text (in the source code)?
I ask because embedding lots of notes within the main text essentially makes the main text unreadable (in the source code). This makes it kinda difficult to edit/maintain both the main text and the notes text.
Any thoughts/alternative experience appreciated...
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Reledmac: Seperating notes from main text in the source code?
E.g.,
11 foot note number one; just some text.
12 foot note number two; see also note #11.
Reledmac: Seperating notes from main text in the source code?
1. For you firts question, there is no direct way provided in reledmac (as in standard LaTeX). However, what is possible is to do somethink like this
Code: Select all
\documentclass{article}
\usepackage[noend,noeledsec]{reledmac}
%Some tools to define footnote before calling them.
\newcounter{fnA}
\newcommand{\prefnA}[1]{%
\addtocounter{fnA}{1}%Increase the counter
\csgdef{prefnA@\thefnA}{#1}%Store the footnote in memory
}
\newcommand{\fnA}{%
\addtocounter{fnA}{1}%Increase the counter
\expandafter\footnoteA\expandafter{\csname prefnA@\thefnA\endcsname}%Call the footnote (the expandafter is required because of the way reledmac store temporally footnotes when splitting the text in line)
}
% Now, defining the footnote
\prefnA{First footnote.}
\prefnA{Second fn.}
\prefnA{Third fn.}
% Don't forget to reset the fnA counter
\setcounter{fnA}{0}
\begin{document}
\beginnumbering
\pstart
Lorem ipsum\fnA\
dolor amet\fnA\
sicut transit gloria mundi\fnA.
\pend
\endnumbering
\end{document}
You should better use good practicis for writing your code.
For example
Code: Select all
A\footnoteA{%
The texte of the footnote.}
and them the main text is continuing
[\code]
2. You can use crossref mechanism with reledmac familair footnote. You put a `\label` in the footnote to be refered, and a `\ref` in the refering footnote.
http://geekographie.maieul.net