Guide To MultiMarkdown and Scrivener

User avatar
AmberV
Posts: 24332
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Mon Dec 18, 2006 4:58 am Post

Maybe should mention that TextMate's default keybinding for "Edit in TextMate..." (Cmd-Ctrl-E) is currently blocked by Scrivener's keystroke for entering one of the screen writing modes, and that it can be changed in the global system settings. I realise this is documented in the TextMate readme for setting it up, but it is one of those things that someone might not realise there ever was a keystroke in the first place.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

fl
fletcher
Posts: 324
Joined: Sat Oct 07, 2006 12:47 am
Location: Charleston, SC
Contact:

Sun Mar 25, 2007 6:52 pm Post

It's been a while since I worked on the guide to using MultiMarkdown with Scrivener.

I've put what I have up on my new site:

http://fletcherpenney.net/Using_MultiMa ... _Scrivener

Also, I welcome anyone and everyone to edit the copy on my scratchpad:

http://fletcherpenney.net/scratchpad/Us ... _Scrivener




Fletcher

ba
bayareaguy
Posts: 43
Joined: Wed Jan 09, 2008 2:48 pm

Thu Jan 10, 2008 11:29 am Post



I just tried to download that file and got the following error:

Image

Is there anywhere else I can get a copy?

fl
fletcher
Posts: 324
Joined: Sat Oct 07, 2006 12:47 am
Location: Charleston, SC
Contact:

Thu Jan 10, 2008 12:30 pm Post

bayareaguy wrote:


I just tried to download that file and got the following error:

<snip>

Is there anywhere else I can get a copy?


That's an old link, the new one is right above your post :)


http://fletcherpenney.net/Using_MultiMarkdown_with_Scrivener

ba
bayareaguy
Posts: 43
Joined: Wed Jan 09, 2008 2:48 pm

Thu Jan 10, 2008 3:50 pm Post

fletcher wrote:That's an old link, the new one is right above your post :)
http://fletcherpenney.net/Using_MultiMarkdown_with_Scrivener


Actually, that's not the same link. I'm looking for the example ScrivenerAndMultiMarkdown.zip document to download.

Can you give me an explicit url for that document?

fl
fletcher
Posts: 324
Joined: Sat Oct 07, 2006 12:47 am
Location: Charleston, SC
Contact:

Thu Jan 10, 2008 4:17 pm Post

It's the same thing - just moved to the web rather than a standalone document.

If you want a sample document in Scrivener, then check out the MMD sample document, also on my website:

http://fletcherpenney.net/MultiMarkdown

ba
bayareaguy
Posts: 43
Joined: Wed Jan 09, 2008 2:48 pm

Thu Jan 10, 2008 6:47 pm Post

fletcher wrote:If you want a sample document in Scrivener, then check out the MMD sample document, also on my website:

http://fletcherpenney.net/MultiMarkdown


Can you be a little more specific? I've read about a dozen pages there and haven't found anything other than the MultiMarkdown.zip release itself.

ba
bayareaguy
Posts: 43
Joined: Wed Jan 09, 2008 2:48 pm

Thu Jan 10, 2008 7:16 pm Post

I was looking for something ending in .zip and overlooked the link right in the middle of the page to this file:

http://files.fletcherpenney.net/SampleM ... cument.zip

ri
richardk
Posts: 9
Joined: Wed Aug 06, 2008 3:05 pm

Mon Aug 25, 2008 1:19 pm Post

Hi Fletcher,

I'm new to this Scrivener/MMD/LaTex thing so I'll be asking a lot and contributing little (in terms of solving other people's problems).
But maybe I can make up for that by doing some collecting of solutions. In one of your posts you mention a Wiki, which seems to me the right place for that:

fletcher wrote:To avoid repetition of work, this goes in the MMD documentation, and in fact is already there:

http://fletcher.freeshell.org/wiki/MultiMarkdown#epigraphs


Following this link however doesn't get me to a Wiki. Can you help me out?

Thanks, Richard

User avatar
AmberV
Posts: 24332
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Mon Aug 25, 2008 7:05 pm Post

I believe that statement is obsolete. There was a time when Fletcher's entire web site was run by wiki based software; I never tested to see if it was editable by the public, though.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

fl
fletcher
Posts: 324
Joined: Sat Oct 07, 2006 12:47 am
Location: Charleston, SC
Contact:

Fri Aug 29, 2008 6:53 pm Post

First, everything related to MMD on the site fletcher.freeshell.org has been moved to the new(as of 1 1/2 years ago) site:

http://fletcherpenney.net/multimarkdown/

The site used to be a wiki, which would allow for user submitted contributions, but very few people actually did this. The new site is run by Movable Type, which does allow for user-comments.


There is a FAQ section, and I will add any user contribution to the page here - you can submit as a comment, or as an email to me.

http://fletcherpenney.net/multimarkdown/faq/


F-

co
cormullion
Posts: 20
Joined: Sun Jan 13, 2008 5:27 pm

Sun Oct 03, 2010 2:55 pm Post

With the announcement of ePub support in Scrivener 2.0, it occurs to me that it would be attractive to be able to use MultiMarkdown in Scrivener, and be able to export directly to ePub as well. However, I'm wondering whether this two-stage workflow would be possible, or whether it's either Export->ePub or Compile->MultiMarkdown->HTML but not both.

User avatar
AmberV
Posts: 24332
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Sun Oct 03, 2010 10:53 pm Post

This is actually something we want to have available post 2.0. The details haven't been hashed out yet, but once the mayhem of 2.0 and Windows beta dies down a bit, some form of MMD->ePub would be a nice addition to the available methods. As for right now, you could look into some kind of system that will take an XHTML file with headers and turn it into an ePub book, that is the nice thing about MMD's HTML files, they are pretty low-profile and "good spec" with clear header usage and such, so tools that take XHTML files to convert them into ePub ought to be able to interface with them. Perhaps Calibre has a function for this?

A better way of doing this straight out of Scrivener may or may not be feasible. It's just a pipe dream at the moment.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

si
signinstranger
Posts: 268
Joined: Sun Oct 21, 2007 4:15 pm
Platform: Mac
Location: Germany

Mon Oct 04, 2010 8:41 am Post

AmberV wrote:tools that take XHTML files to convert them into ePub ought to be able to interface with them. Perhaps Calibre has a function for this?


Calibre is great! I use the command-line tools all the time to create the mobi format that Amazon in its infinite wisdom chose for the Kindle. :wink:

Just make sure that you add the correct XPath expressions to generate the table of contents:

Code: Select all

ebook-convert input.html output.epub --level1-toc //h:h1 --level2-toc //h:h2 --level3-toc //h:h3


This can also be done in Calibre's confusing GUI, but I much more prefer the command-line version. If you wish, you can also add a cover page from an image in the same folder :

Code: Select all

ebook-convert input.html output.epub --level1-toc //h:h1 --level2-toc //h:h2 --level3-toc //h:h3 --cover cover.jpg


A note of warning, the id-tags that MMD automatically adds to the HTML headings will likely confuse Calibre. The best practice is to remove them altogeher from MMDs output with a custom XSLT file:

Code: Select all

<?xml version='1.0' encoding='utf-8'?>

<xsl:stylesheet
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:xhtml="http://www.w3.org/1999/xhtml"
   xmlns="http://www.w3.org/1999/xhtml"
     exclude-result-prefixes="xhtml xsl"
   version="1.0">

   <xsl:output method='xml' version="1.0" encoding='utf-8' doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" doctype-system="http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" indent="no"/>

   <xsl:template match="@*|node()">
      <xsl:copy>
         <xsl:apply-templates select="@*|node()"/>
      </xsl:copy>
   </xsl:template>

   <xsl:template match="xhtml:h1|xhtml:h2|xhtml:h3|xhtml:h4|xhtml:h5|xhtml:h6">
      <xsl:copy>
         <xsl:apply-templates select="*|node()"/>
      </xsl:copy>
   </xsl:template>
   
</xsl:stylesheet>

KP
KPKilburn
Posts: 14
Joined: Wed Oct 26, 2011 12:15 pm
Platform: Mac

Thu Nov 10, 2011 1:49 pm Post

fletcher wrote:It's been a while since I worked on the guide to using MultiMarkdown with Scrivener.

I've put what I have up on my new site:

http://fletcherpenney.net/Using_MultiMa ... _Scrivener

Also, I welcome anyone and everyone to edit the copy on my scratchpad:

http://fletcherpenney.net/scratchpad/Us ... _Scrivener

Fletcher


I know this is an old post, but I was wanting to read the guide (unless it's something available elsewhere and I just haven't found it).

I keep getting...

Notice

If you're using Internet Explorer to visit this site and are having difficulty navigating, I suggest you try using a real browser instead. I've given up putting so much effort into making this site compatible with a crappy browser....


I'm using Safari on Mac OS X, so what's a "real" browser? Something like Lynx? :D

 

 

cron