# Is there a command line tool for laTex in windows?

I'm searching of a command line tool that can show latex like below properly in a prompt:

\frac{\partial u}{\partial t} = \alpha \nabla^2 u


Anyone knows about such a tool?

-
Do you mean you want the equation displayed in a Linux terminal prompt -- where you normally see the contents of \$PS1? –  Tom Zych Jun 22 at 19:47

What exactly do you mean? A command you can run from cmd.exe which will render such LaTeX code in a new window, or one that will render it on the console?

Either way, you would presumably need to feed it a complete LaTeX document, one way or another -- one with a preamble, a document environment, and (in this case) some kind of equation environment. See, for instance, http://en.wikibooks.org/wiki/LaTeX/Document_Structure.

-
I mean :A command you can run from cmd.exe which will render such LaTeX code –  user31450 Apr 6 '10 at 3:36

Not exactly sure what you're asking for, but if there's a tool already that does it in a UNIX prompt or on XServer, you might want to checkout using Cygwin for this. I know a variety of LaTeX tools are bundled in with cygwin.

-
What's the tool's name? –  user31450 Apr 6 '10 at 3:37

There is not a command line tool (that I know of) to render a LaTeX fragment properly from a Windows cmd.exe prompt. However a batch file / shell script could perhaps be created to do the following:

1. wrap the fragment in the property preamble and closing around your fragment
2. run pdflatex on it (probably twice to make sure everything is done right)
3. run the resulting pdf file

If you have something like Acrobat Reader installed then simply executing the pdf 'should' work. (cygwin has the cygstart command which may help with this).

-