Page LayoutReledmac: Seperating notes from main text in the source code?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Reledmac: Seperating notes from main text in the source code?

Post by wednesday »

Hello List,

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...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Reledmac: Seperating notes from main text in the source code?

Post by wednesday »

Another question, again for reledmac; is there a way to refer to a familiar foot note number from within another familiar foot note?

E.g.,

11 foot note number one; just some text.
12 foot note number two; see also note #11.
maieul
Posts: 8
Joined: Sun Jan 16, 2011 12:23 am

Reledmac: Seperating notes from main text in the source code?

Post by maieul »

These is not a lot of reledmac users, and, personnaly, I will suggest to ask on https://tex.stackexchange.com/, as I read all question of this forum about reledmac.

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}
But I am not sure that is a so much good idea to separate text from footnote. It will be create more confusion, if you have a lot of footnote.

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.
Please forgive me for English : I'm french.
http://geekographie.maieul.net
wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Reledmac: Seperating notes from main text in the source code?

Post by wednesday »

Thanks Maieul; appreciated.
Post Reply