<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">The easiest thing to do is take the bundle that I posted to the list earlier today unzip it and put it in ~/Library/Application Suppport/TextMate/Bundles (or just unzip and double click on it)<DIV><BR class="khtml-block-placeholder"></DIV><DIV>The bundle contains all the MultiMarkdown scripts and xslt files needed.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Brad</DIV><DIV><BR class="khtml-block-placeholder"><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Mar 29, 2006, at 7:57 PM, Lewis Overton wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">For those of us who are real dummies, but fans of Markdown, could you elaborate on where to put what to get MultiMarkdown (MM) to work with Textmate (TM)? <BR><BR>I downloaded MM and stashed it in ~/Library/Application Support/Textmate/Support/bin. <BR>I put MM in ~/Lib ... /Bundles and called it Markdown.pl. I copied a chunk from the demo and tried to preview it. Got lots of "can't find" errors. Maybe I can puzzle this out but if you have a minute or so, a few hints would be really helpful. <BR><BR>Lewy<BR><BR><DIV><SPAN class="gmail_quote">On 3/29/06, <B class="gmail_sendername">Brad Miller</B> <<A href="mailto:bonelake@mac.com">bonelake@mac.com</A>> wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Mark,<BR><BR>Good question. It was mostly for experimental reasons.<BR><BR>Around the time I did this there was lots of chat on ##textmate about<BR>various approaches to go from something like markdown to pdf.<BR>Several people were very anti xslt, and htmldoc sounded like one of <BR>the favorites at the time, and for smallish kinds of documents<BR>htmldoc seemed like it was quicker and more efficient than<BR><BR>MultiMarkdown -> xhtml -> Latex -> pdf<BR><BR>For more complicated documents I have had great luck writing the bulk <BR>of my document in multimarkdown and then tweaking the final markup in<BR>the generated latex document.<BR><BR><BR>Brad<BR><BR>On Mar 29, 2006, at 1:49 PM, Mark Eli Kalderon wrote:<BR><BR>> Thanks again, Brad. It was useful to have a look at this. Is there <BR>> any particular reason you are using htmldoc in generating the PDF?<BR>> As opposed to pdflatex say? Is it because htmldoc does a better job<BR>> at generating pdfs viewable online? Best, Mark<BR>> On 29 Mar 2006, at 17:05, Brad Miller wrote: <BR>><BR>>> Mark,<BR>>><BR>>> Here is my MultiMarkdown bundle.<BR>>><BR>>> There are commands to go from MultiMarkdown to<BR>>> Latex<BR>>> HTML<BR>>> PDF<BR>>><BR> >> I have found this to be a very useful little bundle. Let me know<BR>>> if you have any trouble.<BR>>><BR>>><BR>>> <multimarkdown.zip><BR>>><BR>>> Brad<BR>>><BR>>> On Mar 28, 2006, at 5:28 PM, Mark Eli Kalderon wrote: <BR>>><BR>>>> Apologies in advance if the answer to my query is blindingly<BR>>>> obvious---I am a UNIX newbie.<BR>>>><BR>>>> I am trying to implement Fletcher Penney's variant of Markdown, <BR>>>> MultiMarkdown (<A href="http://fletcher.freeshell.org/wiki/MultiMarkdown">http://fletcher.freeshell.org/wiki/MultiMarkdown</A>),<BR>>>> as a TextMate bundle. The basic idea is to convert a Markdown <BR>>>> document into a full xhtml document and then to use xslt to<BR>>>> convert it into different formats such as LaTeX.<BR>>>><BR>>>> I have written TextMate commands for each step of the process, <BR>>>> and it all works fine, but I would also like to add commands that<BR>>>> string these steps together. But there is a problem. For example,<BR>>>> while the following two TextMate commands work: <BR>>>><BR>>>> Save: Nothing<BR>>>> Command(s): #!/bin/bash<BR>>>> /usr/local/bin/MultiMarkdown.pl "$TM_FILEPATH"<BR>>>> Input: None<BR>>>> Output: Create New Document <BR>>>><BR>>>> Save: Nothing<BR>>>> Command(s): #!/bin/bash<BR>>>> /usr/bin/xsltproc -nonet -novalid /usr/local/bin/<BR>>>> xhtml2article.xslt "$TM_FILEPATH"<BR>>>> Input: None <BR>>>> Output: Create New Document<BR>>>><BR>>>> the following fails---it generates an empty file:<BR>>>><BR>>>> Save: Nothing<BR>>>> Command(s): #!/bin/bash<BR> >>> /usr/local/bin/MultiMarkdown.pl "$TM_FILEPATH" | /usr/bin/<BR>>>> xsltproc -nonet -novalid /usr/local/bin/xhtml2article.xslt<BR>>>> Input: None<BR>>>> Output: Create New Document <BR>>>><BR>>>> Any ideas? Thanks in advance.<BR>>>><BR>>>> All the best, Mark<BR>>>> _________________<BR>>>> Mark Eli Kalderon<BR>>>> Department of Philosophy <BR>>>> University College London<BR>>>> Gower Street<BR>>>> London WC1E 6BT<BR>>>><BR>>>> Dept webpage: <A href="http://www.ucl.ac.uk/philosophy">http://www.ucl.ac.uk/philosophy </A><BR>>>> Personal wepage: <A href="http://www.kalderon.demon.co.uk">http://www.kalderon.demon.co.uk</A><BR>>>><BR>>>><BR>>>><BR>>>> ____________________________________________________________________ <BR>>>> __<BR>>>> For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A><BR>>>> (threading gets destroyed and the universe will collapse if you <BR>>>> don't)<BR>>>> <A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A><BR>>><BR>>><BR>>> _____________________________________________________________________ <BR>>> _<BR>>> For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A><BR>>> (threading gets destroyed and the universe will collapse if you<BR>>> don't) <BR>>> <A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A><BR>><BR>><BR>> ______________________________________________________________________ <BR>> For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A><BR>> (threading gets destroyed and the universe will collapse if you don't)<BR>> <A href="http://lists.macromates.com/mailman/listinfo/textmate"> http://lists.macromates.com/mailman/listinfo/textmate</A><BR><BR><BR>______________________________________________________________________<BR>For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com </A><BR>(threading gets destroyed and the universe will collapse if you don't)<BR><A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A><BR></BLOCKQUOTE></DIV> <BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">______________________________________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(threading gets destroyed and the universe will collapse if you don't)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>