<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times">I am still having troubles getting my multimarkdown to Prince command to find the css file. Prince wants to look for it in the /tmp file because that is were the generated html file is. So, if my file is in: </FONT><FONT class="Apple-style-span" face="Courier">~/scratch/book.multimarkdown, </FONT><FONT class="Apple-style-span" face="Times">and my css is also in </FONT><FONT class="Apple-style-span" face="Courier">~/scratch/book.css, </FONT><FONT class="Apple-style-span" face="Times">the multimarkdown covention is to then write in the beginning of the document:</FONT></P><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier">format: complete </FONT><FONT class="Apple-style-span" face="Courier"> </FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier">css: book.css</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times">If I convert the document to html and save it in <FONT class="Apple-style-span" face="Courier">~/scratch/</FONT> then run <FONT class="Apple-style-span" face="Courier">Prince</FONT> I have no troubles. However, running my script to generate an </FONT><FONT class="Apple-style-span" face="Courier">/t</FONT><FONT class="Apple-style-span" face="Courier">mp/$DST.html</FONT><FONT class="Apple-style-span" face="Times"> and then running <FONT class="Apple-style-span" face="Courier">Prince</FONT> on it gets me a pdf without the stylesheet. I can specify the style sheet in Prince "</FONT><FONT class="Apple-style-span" face="Courier">prince -s ~/scratch/book.css book.css", </FONT><FONT class="Apple-style-span" face="Times">but that would be impractical for a script. What I would love to write is </FONT><FONT class="Apple-style-span" face="Courier">prince -s "$CSS_FILES" "$DST.html" /tmp/</FONT></P><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times"><BR class="khtml-block-placeholder"></FONT></P><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times">Allan gave me a quick ruby script "</FONT><FONT class="Apple-style-span" face="Courier">CSS_FILES=$(ruby <"$TM_FILEPATH" -ne 'puts $1 if /<link(?=[^>]*?type="text\/css")[^>]*?href="(.*?)"/')", </FONT><FONT class="Apple-style-span" face="Times">but it does not seem to find <FONT class="Apple-style-span" face="Courier">~/scratch/book.css </FONT>(or any other css file) and use it as <FONT class="Apple-style-span" face="Courier">$CSS_FILES</FONT>. </FONT></P><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times"></FONT></P><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times">Any help appreciated.</FONT></P><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times">Thanks</FONT></P><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" face="Times">Robert</FONT></P><BR><DIV><DIV>On May 14, 2006, at 8:40 AM, Allan Odgaard wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On 12/5/2006, at 20:54, Robert M. Ullrey wrote:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[...] I can get prince to run, but not glob the css file name. My end product is a PDF of the html source file. Cutie, but not what I want.</DIV> </BLOCKQUOTE><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; ">CSS_FILES=$(ruby <"$TM_FILEPATH" -ne 'puts $1 if /<link(?=[^>]*?type="text\/css")[^>]*?href="(.*?)"/')</DIV><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; ">This will give all href arguments to link tags of type text/css.</DIV><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; 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></BODY></HTML>