Reputation: 96141
Problem: I am trying to write "parallel text" using reStructuredText. By "parallel text", I mean something like annotated works of fiction, where the text is in two columns. The left column contains the main text, and the right column contains commentary. I will be using sphinx for generating HTML and Latex documentation from it.
I have the following requirements:
I am pretty new to reStructuredText and to Sphinx, but have considerable experience with Python. I am looking for some ideas about how to do what I want to do. I have been reading about reStructuredText and also about writing Sphinx extensions, so writing an extension to Sphinx is not out of question.
Has anyone done something similar before?
Thanks!
Upvotes: 4
Views: 1356
Reputation: 163
These seem very similar to footnotes? I would suggest having a look at http://ignorethecode.net/blog/2010/04/20/footnotes/
If they suit your purpose, integrating them should not be too difficult. Sphinx outputs footnotes with a special class. Replacing the
$("a[rel='footnote']")
in the code, with a jquery css selector of your choice should give you what you desire.
Upvotes: 2