Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
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

3 Answers 3

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.

share|improve this answer
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.

share|improve this answer
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).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.