Print header and footer variables

John Purnell's Avatar

John Purnell

26 Dec, 2013 12:20 PM

  1. The existing %date and %time variables use the system long format. Unfortunately this format is too long for my needs. Would it be possible to add a suffix to them so that the desired format could be selected e.g. %date-s for the short format so the suffixes would be -s, -m, -l and -f?
  1. Support Staff 1 Posted by Brett on 26 Dec, 2013 12:23 PM

    Brett's Avatar

    I think it would be more flexible (and easier to fit in the interface)
    if I provided a dropdown for selecting from various date/time formats. I
    _may_ choose to provide a field for an strftime string, but I think 4 or
    5 format choices would probably do the trick.


  2. 2 Posted by John Purnell on 26 Dec, 2013 12:31 PM

    John Purnell's Avatar

    Thanks for the fast response Brett. If you could have a box for a strftime format that would be fantastic.

  3. Support Staff 3 Posted by Brett on 26 Dec, 2013 09:52 PM

    Brett's Avatar

    Done. It'll be in the next update.

  4. 4 Posted by metawops on 26 Dec, 2013 10:45 PM

    metawops's Avatar

    Awesome, Brett!
    On a side note: in your screenshot I spotted a %md_[...] variable -- do I assume right that that's gonna be the way to access all the MultiMarkdown meta variables?
    Because I really want to have access to the Author meta tag.

    And a little other thing: could you maybe make a checkbox for "Don't print header/footer on the first page"? That would help a lot, too. :-)

    Thx so much!

  5. Support Staff 5 Posted by Brett on 26 Dec, 2013 10:59 PM

    Brett's Avatar

    That's already there. Just use %md_author.


  6. 6 Posted by John Purnell on 27 Dec, 2013 08:39 AM

    John Purnell's Avatar

    Many thanks Brett. Awesome!!

  7. 7 Posted by metawops on 29 Dec, 2013 12:49 AM

    metawops's Avatar

    This a bug? See screenshot. Entered a comma into a footer field between two MMD variables but it didn't get printed in the PDF … :-(

  8. Support Staff 8 Posted by Brett on 29 Dec, 2013 02:06 AM

    Brett's Avatar

    I suppose it's a bug, but in the interest of catching all metadata keys I capture everything that's not a space after md_. Apparently MMD doesn't, though, so I'll take a look at that.

  9. 9 Posted by Frank on 01 Mar, 2017 10:06 AM

    Frank's Avatar

    When I set the date format to %e %B %Y, I would expect to see the name of the month in my local language (as per However, the month is always shown in the English language. Is this a bug or did I overlook something?

  10. Support Staff 10 Posted by Brett on 01 Mar, 2017 05:40 PM

    Brett's Avatar

    The JavaScript library Marked uses for strftime formatting is apparently
    not internationalized. I can fix this, though. Thanks for the report.


  11. Support Staff 11 Posted by Brett on 01 Mar, 2017 07:18 PM

    Brett's Avatar

    FYI, I've fixed this for the next update (I think).


  12. 12 Posted by Frank on 06 Mar, 2017 10:00 AM

    Frank's Avatar


  13. 13 Posted by mantoine.mac on 11 May, 2017 12:04 PM

    mantoine.mac's Avatar

    Hi Brett,

    Two things :

    1. I'd love to have two checkboxes for Headers and Footers Export preferences :

        [ ] Print header on first page
        [ ] Print footer on first page

    2. I have the same problem with month being in english. Any time frame for the release of the upcoming update with the internationalized library ?


  14. Support Staff 14 Posted by Brett on 11 May, 2017 03:47 PM

    Brett's Avatar

    I'm trying to get the next update out next week, if all goes well.

    I'll think about splitting the header/footer on first page option, but
    it won't make it into this next release. Can you tell me what the use
    case for that feature would be for you?


  15. 15 Posted by Steinthal on 16 Jun, 2017 10:21 PM

    Steinthal's Avatar

    Brett, I can think of the following use cases:

    • With a short text of e.g. two pages, header and footer shall be printed on each page
    • Creating a longer text with a dedicated title page, the header shall not be printed on the first page

    I would appreciate that option.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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