footnotes in pdf export

tk's Avatar

tk

22 Sep, 2012 06:51 PM

Hi!
If I decide to export a MMD document that contains footnotes, will the latter appear at the bottom of the respective pages? I am worried that they will just appear at the end of the document...
Thanks for taking the time to read this!

  1. Support Staff 1 Posted by Brett on 11 Oct, 2012 06:12 PM

    Brett's Avatar

    I thought I had responded to this, sorry for the delay. They will just appear at the end of the document, there's no way to make a Markdown processor handle pagination when processing footnotes.

  2. 2 Posted by jonathan on 21 Dec, 2013 11:23 PM

    jonathan's Avatar

    Brett, can I just check that this remains the case with Marked 2.x?

    (I ask because whilst Pandoc is not strictly a Markdown processor, doing more besides, it does handle pagination and footnotes.)

  3. Support Staff 3 Posted by Brett on 21 Dec, 2013 11:30 PM

    Brett's Avatar

    Pandoc handles it, or LaTeX output from Pandoc handles it? Can you show me an example command that would do it?

  4. 4 Posted by jonathan on 21 Dec, 2013 11:37 PM

    jonathan's Avatar

    The core of the wrapper script I use to run pandoc is:

    /usr/local/bin/pandoc --from=markdown+blank_before_header+escaped_line_breaks+fenced_code_blocks+line_blocks+definition_lists+startnum+pipe_tables+inline_notes+mmd_title_block+lists_without_preceding_blankline \
        --smart --latex-engine=xelatex \
        -o "$DSTFILE" "$MDFILE"
    

    So, yes, a LaTeX processor is involved.

    Thanks.

  5. Support Staff 5 Posted by Brett on 21 Dec, 2013 11:41 PM

    Brett's Avatar

    Yeah, and it's latex that handles all the pagination after the footnotes
    are converted. Not only would I need pandoc, I'd need xelatex bundled as
    well. It's just not going to work in Marked.

  6. 6 Posted by jonathan on 22 Dec, 2013 12:26 AM

    jonathan's Avatar

    Thanks for confirming what I suspected.

  7. Brett closed this discussion on 26 Dec, 2013 09:53 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac