LaTeX forum ⇒ 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).
Posts: 10
Joined: Mon Feb 15, 2016 12:25 pm

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

Postby wednesday » Tue Apr 17, 2018 12:45 pm

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

Posts: 10
Joined: Mon Feb 15, 2016 12:25 pm

Postby wednesday » Wed Apr 18, 2018 1:24 pm

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


11 foot note number one; just some text.
12 foot note number two; see also note #11.

Posts: 8
Joined: Sun Jan 16, 2011 12:23 am

Postby maieul » Tue May 15, 2018 5:10 pm

These is not a lot of reledmac users, and, personnaly, I will suggest to ask on, 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

  1. \documentclass{article}
  2. \usepackage[noend,noeledsec]{reledmac}
  4. %Some tools to define footnote before calling them.
  5. \newcounter{fnA}
  6. \newcommand{\prefnA}[1]{%
  7. \addtocounter{fnA}{1}%Increase the counter
  8. \csgdef{prefnA@\thefnA}{#1}%Store the footnote in memory
  9. }
  10. \newcommand{\fnA}{%
  11. \addtocounter{fnA}{1}%Increase the counter
  12. \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)
  13. }
  15. % Now, defining the footnote
  16. \prefnA{First footnote.}
  17. \prefnA{Second fn.}
  18. \prefnA{Third fn.}
  20. % Don't forget to reset the fnA counter
  21. \setcounter{fnA}{0}
  24. \begin{document}
  25. \beginnumbering
  26. \pstart
  27. Lorem ipsum\fnA\
  28. dolor amet\fnA\
  29. sicut transit gloria mundi\fnA.
  30. \pend
  31. \endnumbering
  32. \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

The texte of the footnote.}
and them the main text is continuing

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.

Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests