So I am learning LaTeX and I find it slow to test changes. So I'd edit the .tex file, then go to command line, and run pdflatex, wait for it to complete, and then open total commander, and then open the .pdf file. Does anyone know a faster way to test changes? (WYSIWYG?)
|
Quite a few PDF viewers support SynTex or can simply reload the document when it is modified. This is the case of Evince, Okular, among others. I don't know what editor you're using. I'm personally used to vim, so I can just build from within it (and the PDF can be refreshed automatically as stated before). There are also TeX specialized editors with a build button and integrated PDF viewer, so you don't need to go to command line and open the PDF yourself. TeXworks (shipped with both MikTeX and TeX Live) is one of them. On KDE, there's Kile which is also an excellent product. As far as WYSIWYG goes, LyX is a program that wraps around LaTeX to make the whole experience more "WYSIWYG". You can use a WYSIWYG editor, or a LaTeX editor, as you wish. Afaik, it's not pure LaTeX though (it needs some converting). |
|||||||||||
|
|
I personally use Usage:
|
|||
|
Just use a tex editor/IDE like Texmaker or TexnicCenter. Although it isn't WYSIWYG, they will integrate with your latex installation and pdf viewer, so all you have to do is press one button, and they will compile and open the pdf. If you use SumatraPDF for viewing, you can set up forward and inverse search with DDE commands |
|||
|
|
|
I know of two options with emacs. Whizzytex, which uses the advi viewer, though it does not seem to be widely used. The way it works is, advi starts up (though I think other viewers with the necessary support can also be used) and then as you move around in the buffer, the document is compiled and updated in advi on the fly and also your current position in the buffer is highlighted in advi. It is in Debian at least. As you can see, it is not a very active project. A more popular option is of course preview, originally written by David Kastrup, which is now part of AUCTeX. |
|||||
|
|
Not an answer to your question, but if you are also planning to use It autocompletes, autocompiles and is handy for quick creation of TikZ images independently from your LaTeX document. When you are satisfied with the result TikZ code can be included to your main document. |
|||
|
|
I use a program named Latexian that has a feature called Live Preview which obviously compiles the document every time it is changed and displays the PDF output in the same window. I have not seen a better solution yet. |
|||
|
|
|
There is also gummi. It is an editor that recompiles, every time you stop typing or every N seconds (check the settings). |
|||
|
|
|
In addition of all the "desktop" solutions provided, you also have some "cloud" alternatives, which can be specially useful while learning. A few I'm aware of are: The two first allow for trying the service without registration. Both feature instant preview with automatic refreshing, pdf export, and (with subscription) the posibility of saving your tex in the cloud, among other interesting features (such as sharing or collaborative edition). Also they have a pretty complete TeX installation with most of the usual packages available. The other two require registration to login, so I didn't tried them (hence no screenshot). |
||||
|
|
|
On Unix/Linux, it is easy to do in vi. In your .exrc file, add the following:
where the keys in square brackets are the actual keys on keyboard (without the square brackets). Before you start editing the file, open a viewer with xdvi on the file. Then, while editing, you can pres the F2 key which will recomple your LaTeX file. Clicking in the xdvi renderer will repaint the screen. |
|||
|
|
|
You have the following optoins:
There is a review on WYSIWYG latex editors here, though Gummi was not in the list |
|||||||
|
|
LEd has also a 2-way-dvi preview. Not live, but helps to easily compare your code with the result. |
|||||||||||||||
|
|
When I was learning LaTex I used Texmaker. It has a built in PDF viewer as well as many symbols available as quick buttons to add into the document fast with the nice side benefit of learning them quickly as you go. For pure speed, I don't think there is anything faster than using Sublime Text 2 with Skim. PDF's compile so fast. You don't get bells and whistles like you do in Texmaker but it sure hums. |
|||
|
|





ldflatexis a typo isn't it? You meanpdflatex, right? Then you should write "learning LaTeX". TeX would be plainTeX which is quite different from it. – Martin Scharrer♦ Apr 29 '11 at 8:16