MMD in Scrivener, Article.xslt

18 views
Skip to first unread message

mikeh

unread,
Oct 22, 2007, 12:18:57 PM10/22/07
to MultiMarkdown Discussion List
Hi Folks,
I'm pretty excited about the potential for using Scrivener and MMD to
produce LaTex docs, and hope to be able to use it for my thesis.
Unfortunately, right now, I don't think I can get anything anything
but the default document type to work.
I've added a key in the Multimarkdown Settings XSLT file, and
article.xslt, as suggested in a previous post. When I compile using
MMD to LaTex, I get a file that looks like the memoir class. When I
compile using export to MMD, the headers look like this:

Title: Freshwater Wetlands Field Trip Report
Author: Michael Hannam
Base Header Level: 1
XSLT File: article.xslt
XHTML Header: <style type="text/css" media="all">
body {font-family: Courier; font-size: 9pt; line-height: 2.000000em; }
h1 { font-size: 1.5em; text-align: center; }
h2 { font-size: 1.1em; text-align: center; }
h3 { font-size: 1.1em; }
pre { margin-left: 5em;}
span.annotation { text-decoration: underline; }
</style>
Format: complete

But when I use Fletcher's drag and drop MMD to LaTex, I still end up
with the Memoir document class, and a pdf, that looks like a memoir.
Any ideas?
Thanks for the help.
Mike

James Howison

unread,
Oct 22, 2007, 7:10:45 PM10/22/07
to MultiMarkdown Discussion List
Not entirely sure of your workflow, but have you tried adding this
Metadata key in the MMD file?

LaTeX XSLT: article.xslt

I have that key in the mmd files I take to PDF via LaTeX.

Also---and I'm not suggesting it's wrong, I'm just wondering---why do
you have XHTML headers if you are compiling to LaTeX?

Cheers,
James

mikeh

unread,
Oct 22, 2007, 10:09:28 PM10/22/07
to MultiMarkdown Discussion List
Hi James,

That did the trick, just like that. I had used the incorrect key XSLT
File, instead of LaTex XSLT.

Thanks for the help.

As for the XHTML headers, I'm not sure why they are there, but it's a
good bet that it's because I am still figuring out what I'm doing. I
am currently writing in Scrivener, and exporting from scrivener to
LaTex - a process that does most of the MMD work in the background.
Whether the XHTML header is an artifact of the Scrivener process, or a
setting that I haven't correctly set, I'm not sure.
Again, thanks for the helpful response.

Cheers,
Mike

Fletcher T. Penney

unread,
Oct 22, 2007, 10:49:51 PM10/22/07
to MultiMarkdown Discussion List
The XHTML Headers are added by Scrivener, and are ignored in the
LaTeX conversion process.

Glad the article.xslt is working for you now.

F-

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google
> Groups "MultiMarkdown Discussion List" group.
> To post to this group, send email to multim...@googlegroups.com
> To unsubscribe from this group, send email to multimarkdown-
> unsub...@googlegroups.com
> For more options, visit this group at http://groups.google.com/
> group/multimarkdown?hl=en
> -~----------~----~----~----~------~----~------~--~---

--
Fletcher T. Penney
flet...@fletcherpenney.net

I bought a house, on a one-way dead-end road.
I don't know how I got there.
- Steven Wright


Reply all
Reply to author
Forward
0 new messages