+ attachmentOn Fri, 24 Apr 2015 18:36:12 -0600, Idris Samawi Hamid ادريس سماوي حامد <isha...@colostate.edu> wrote:
Dear gang, I've spent a considerable amount of time over the past month trying tomaster the art of xhtml output. We are close to being able to use ConTeXtas a replacement for markdown in, e.g., WordPress. Indeed, I plan topresent the results of this experiment (porting an entire academic articleto xhtml and WP) in a future article for one of the TeX journals...There is at least one crucial feature that's still needed. Perhaps it is already supported: If so, it would be much appreciated if someone kindlyexplained how to do it.In a web post (or epub), one wants to be able to interact back and forthwith notes. Here is how markdown (extra) does it: ========Input======== That's some text with a footnote.[^1] [^1]: And that's the footnote. That's the second paragraph of the note. More main text ========Output======== <p>That's some text with a footnote.<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p> <p>More main text</p> <div class="footnotes"> <hr /> <ol> <li id="fn:1"> <p>And that's the footnote.</p> <p>That's the second paragraph of the note. <a href="#fnref:1" rev="footnote">↩</a></p> </li> </ol> </div> =====================The resulting html file is attached. '↩' corresponds to U+21A9 (↩).See also https://michelf.ca/projects/php-markdown/extra/#footnotesNow we can of course already export xhtml footnotes from ConTeXt but therewill be no interactive links. In the current project, there are 77footnotes; I had to add the links manually to get the output to do what wewanted. [Also note that it makes much more sense to export the footnotes as endnotes, particularly for long blog posts.] Is there already a way to get done automatically?In any case: This feature is a must-do in my humble opinion. Aside from afew other export bugs, this is one of the few features still needed so that ConTeXt can completely replace markdown for (advanced) web posts. Thanks is advance and Best wishes Idris
-- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80523Title: footnote
That's some text with a footnote.1
More main text
-
And that's the footnote.
That's the second paragraph of the note. ↩
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________