Mark,
Good question. It was mostly for experimental reasons.
Around the time I did this there was lots of chat on ##textmate about various approaches to go from something like markdown to pdf. Several people were very anti xslt, and htmldoc sounded like one of the favorites at the time, and for smallish kinds of documents htmldoc seemed like it was quicker and more efficient than
MultiMarkdown -> xhtml -> Latex -> pdf
For more complicated documents I have had great luck writing the bulk of my document in multimarkdown and then tweaking the final markup in the generated latex document.
Brad
On Mar 29, 2006, at 1:49 PM, Mark Eli Kalderon wrote:
Thanks again, Brad. It was useful to have a look at this. Is there any particular reason you are using htmldoc in generating the PDF? As opposed to pdflatex say? Is it because htmldoc does a better job at generating pdfs viewable online? Best, Mark On 29 Mar 2006, at 17:05, Brad Miller wrote:
Mark,
Here is my MultiMarkdown bundle.
There are commands to go from MultiMarkdown to Latex HTML PDF
I have found this to be a very useful little bundle. Let me know if you have any trouble.
<multimarkdown.zip>
Brad
On Mar 28, 2006, at 5:28 PM, Mark Eli Kalderon wrote:
Apologies in advance if the answer to my query is blindingly obvious---I am a UNIX newbie.
I am trying to implement Fletcher Penney's variant of Markdown, MultiMarkdown (http://fletcher.freeshell.org/wiki/MultiMarkdown), as a TextMate bundle. The basic idea is to convert a Markdown document into a full xhtml document and then to use xslt to convert it into different formats such as LaTeX.
I have written TextMate commands for each step of the process, and it all works fine, but I would also like to add commands that string these steps together. But there is a problem. For example, while the following two TextMate commands work:
Save: Nothing Command(s): #!/bin/bash /usr/local/bin/MultiMarkdown.pl "$TM_FILEPATH" Input: None Output: Create New Document
Save: Nothing Command(s): #!/bin/bash /usr/bin/xsltproc -nonet -novalid /usr/local/bin/ xhtml2article.xslt "$TM_FILEPATH" Input: None Output: Create New Document
the following fails---it generates an empty file:
Save: Nothing Command(s): #!/bin/bash /usr/local/bin/MultiMarkdown.pl "$TM_FILEPATH" | /usr/bin/ xsltproc -nonet -novalid /usr/local/bin/xhtml2article.xslt Input: None Output: Create New Document
Any ideas? Thanks in advance.
All the best, Mark _________________ Mark Eli Kalderon Department of Philosophy University College London Gower Street London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy Personal wepage: http://www.kalderon.demon.co.uk
__ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate