[TxMt] Re: latex bundle query

Alex Ross tm-alex at rosiba.com
Wed Aug 12 18:28:15 UTC 2009


On Aug 12, 2009, at 9:40 AM, Michael Goldweber wrote:

> Here is a question with regard to the LaTeX bundle:
>
> I wish to use both pdfLaTeX as well as TtH (a latex to HTML
> converter).  With pdfLaTeX, I have used TextMate as the previewer, but
> have recently discovered Skim and the synctex (along with the
> watching) facility.  Hence in the LaTeX bundle preferences menu I have
> selected Skim.
>
> For TtH, I hacked up an very old version of the LaTeX current file
> script to invoke TtH (attached below).  The trouble is this script
> requires TextMate as the "previewer."
>
> What I don't want is to have to continually switch my preferences back
> and forth since I might both LaTeX a document in addition to TtH'ing
> it for posting on the Web.
>
> In a perfect world, I would like the LaTeX bundle to have native
> support for using TtH.  In the absence of that, could someone suggest
> edit changes to the hacked script I have, or better yet, provide an
> improved version.



Perhaps the easiest thing to do is use TextMate's web preview  
facility.  press ⌃⌥⌘P to invoke it.
at the bottom of the Web Preview window is a check box that says  
“show options”.  A drawer appears, and you may choose to “pipe  
text through” a script of your choosing.  Pipe it through tth.

We could also make a simple command to do this job.  Set the contents  
of the command to this paste:
   http://pastie.textmate.org/private/npjf1gtijfxrltiwn690q
Set “Save: Nothing”, “Input: Entire Document” and “Output:  
Show as HTML”. This command should work whether or not you've saved  
the document you are editing.

—Alex




More information about the textmate mailing list