Including headers

foster's Avatar


06 May, 2014 04:21 PM

Is there a way to automatically insert default header information in every new document? I would like to not have to copy and paste a header to get MathJax support, since I use it in nearly every document!

  1. Support Staff 1 Posted by Fletcher on 06 May, 2014 04:32 PM

    Fletcher's Avatar

    I recommend using TextExpander. I have a few snippets that I use for
    common document types that saves me a lot of time. Make sure to
    use/abuse the "%|" code (from TextExpander) to quickly tab to the fields
    into which you want to type.

    For example:

    latex input: mmd-letterhead-header
    latex input: ftp-metadata
    Title: %|
    Date: May 06, 2014
    Recipient: %|
    Recipient Address:
    Graphic Signature: true
    base header level: 2
    use xelatex: true
    latex mode: memoir
    latex footer: mmd-letterhead-footer
    latex input: mmd-letterhead-begin-doc

    Dear %|

    By using TE instead of a built-in Composer feature, you can use these
    same templates in other apps, and even on your iOS devices.


  2. 2 Posted by foster on 06 May, 2014 04:50 PM

    foster's Avatar

    Excellent! Thanks!

    For what it's worth, here is the TE snippet I created. Is uses another snippet, ".td", which I created to insert today's date.

    latex input: mmd-article-header
    latex input: ftp-metadata
    Title: %|
    Base Header Level: 2
    latex mode: article
    Keywords: MultiMarkdown, Markdown, XML, XHTML, XSLT, PDF
    copyright: 2014 James A. Foster
    This work is licensed under a Creative Commons License.
    http: //
    latex input: mmd-natbib-plain
    latex input: mmd-article-begin-doc
    latex footer: mmd-article-footer

  3. Support Staff 3 Posted by Fletcher on 06 May, 2014 04:55 PM

    Fletcher's Avatar

    Glad it's working for you!


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

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