mmd to latex to pdf (is there a simple default option?)

KarolisK's Avatar

KarolisK

Sep 03, 2014 @ 10:13 PM

Hello.

First I want to add to the praises you probably are getting on a daily basis - I use mmd for html creation and can't imagine turning on my computer without it.

Recently however I had to also compile some pdf documents (from the mmd files I already had turned into html). I though this will be easy. But I found out that without latex-support files the generated tex files cannot be used (they have \part and \chapter sections without the appropriate class loaded).

And even with the support files - you have to craft metadata to achieve some sort of result.

So my question: Is there a way to get past that and get any kind of default output that would do mdd -> latex -> pdf without the meta headers? I spent a bit of time looking around and thought "multimarkdown -t memoir" would add necessary classes to the tex, but it didn't.

And the follow-up (if there is no default way): couldn't the needed classes/input files be added to the .tex output by a parsing script (like mmd2pdf) instead of being in the meta?

(sorry if my lack of latex knowledge shows).

Warm regards.
KK.

  1. Support Staff 1 Posted by fletcher on Sep 04, 2014 @ 03:37 PM

    fletcher's Avatar

    Without specifying this information, there's no way for me to know what
    type of "LaTeX PDF" you want. Book? Article? Beamer? Letterhead?

    The approach I use is TextExpander snippets. I want to write a letter
    -- no problem ".letter" and the appropriate metadata is there and all
    set for me to tab between fields to enter a recipient, etc. Same with a
    slideshow for a presentation, etc.

    There is no such thing as a "LaTeX" document per se -- it's a framework
    for creating lots of types of documents, and the metadata is required to
    configure things.

    You could write a wrapper script to do what you ask, but it would then
    be limited to the set up you want, which is likely different from the
    set-up I want, which is likely different from what everyone else wants.

    Fletcher

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