3

I have been using the website, codecogs for mathematical equations - and it is wonderful for a noob like me. However, I wish to avail of such support when I am offline, is there similar facility for providing a GUI for equations by any software/IDE/editors/LaTeX environment ? I am on Ubuntu 9.10.

Joseph Wright
  • 259,911
  • 34
  • 706
  • 1,036
Arkapravo
  • 1,183
  • 2
  • 8
  • 10
  • Yes, LaTeX. :D Could you explain a bit more about what feature of codecogs you would like to have offline? The palette? The gif generation? – Matthew Leingang Feb 25 '11 at 16:46
  • I think Martin Scharrer's standalone class would suffie. And you can convert the pdf/ps result to png picture easily (using GhostScript or ImageMagick). – Leo Liu Feb 25 '11 at 16:49
  • @Matthew Leingang : Well ! ... I have always found a GUI to be helpful for my equations ... – Arkapravo Feb 25 '11 at 16:53
  • @Arkapravo: Now I understand the question. The most useful answers will depend on your operating system. Can you edit your question, incorporating your last comment, and providing this information? – Matthew Leingang Feb 25 '11 at 16:56
  • 1
    @Leo: Funny, I was just thinking today about adding an automatic convert-to-png mode into standalone. Using -shell-escape and convert of course. I need this here often enough to post images of my results. – Martin Scharrer Feb 25 '11 at 17:07
  • @Leo : I was not invading your dreams 'inception' style.... LOL ! – Arkapravo Feb 25 '11 at 17:13
  • Does LyX have a sufficiently nice GUI for creating equations? – Caramdir Feb 25 '11 at 17:24
  • @Caramdir : I am not completely sure - any LyX experts here ? – Arkapravo Feb 25 '11 at 17:28
  • @Martin: For me, I wrote a Windows batch file for this about two years ago. I tried dvipng, gs and convert, dvipng is fastest for simple equations, ImageMagick may produce better result. The command can be add to TeXworks. But I don't use it in {TeX} now, questions here may use very different templates. – Leo Liu Feb 25 '11 at 17:35
  • @Arkapravo: codecogs.com also calls LaTeX in the background. It's a handy solution to make a simple template and add a buttom to a good GUI LaTeX editor (kile, texmaker, etc.). This will work very similar to codecogs.com – Leo Liu Feb 25 '11 at 17:49
  • @Martin: In TeXShop this can be handled by creating a custom engine; it's very easy to do. (This is more a note to self, I guess) – Matthew Leingang Feb 25 '11 at 18:26
  • @Leo Liu : What Kile/Texmaker/Lyx provides is not as good as codecogs – Arkapravo Feb 26 '11 at 15:21

4 Answers4

3

If you want to create and edit LaTeX equations with a point-and-click GUI, you could use for example KFormula, the equation editor of KOffice. It has a LaTeX import/export filter, so you can create formulas with the graphical interface provided by this program, and translate them into the "language" LaTeX understands afterwards.

enter image description here

Another possibility would be to use the Java applet DragMath. It doesn't seem to be as powerful as KFormula, but it is quite small and platform independent:

enter image description here

dexteritas
  • 9,161
diabonas
  • 25,784
1

If you want a graphical interface with real-time previews of what your equations etc. look like, I'd recommend Lyx. It is available on Linux, Mac, and Windows, but I've only tried it on Linux.

It includes toolbars, similar to the ones on codecogs. You can also view the code it generates.

You would have to make sure that Lyx still generates the type of file that you want, I'm not sure if you want a full page pdf, or a smaller picture.

Edit: It was pointed out in the comments that Lyx is not a WYSIWYG for LaTeX. Thinking about it I am inclined to agree, so I updated my answer to include a fuller description of what Lyx gives you.

Heather
  • 836
  • LyX is not a LaTeX WYSIWYG! –  Feb 26 '11 at 08:03
  • Oh, maybe I'm getting confused, as it is has a lot of real-time-previews. – Heather Feb 28 '11 at 13:54
  • it tries to view how it might be, but that is far different from the generated pdf. Only the previews of math are correct. –  Feb 28 '11 at 14:02
  • I see, thanks for the clarification. Personally I use Kile myself, but my friend who sits just opposite me uses Lyx all the time, and from what I see, it looks like she directly edits the document. I just hadn't looked close enough. – Heather Feb 28 '11 at 14:27
0

I'm fairly new to LaTeX. When I first started I did all my LaTeX papers in LyX. It has a really good equation editor that provides a set of buttons to point and click on various math elements to insert into the equation. For example if you click the square root icon, LyX puts your cursor inside a root symbol where you can continue typing your equation.

As I learned more about LaTeX I started to drift away from the point and click style and started typing common math commands that I knew in manually. That is I would type

\sqrt<tab>

and LyX expands that as if I had pushed the sqrt button. LyX knows about a large number of LaTeX math commands and lets you tab complete them all in this way.

LyX also provides a "View Source" option which can be accessed under the "View" menu. Very useful for seeing exactly what LyX does.

Finally if you grab the LyX Beta, included is an awesome preview feature where you can preview pretty much any TeX code you like directly inside LyX.

  • Lyx is not bad but it is not like codecogs, the codecogs GUI seems lot more complete more user friendly – Arkapravo Feb 26 '11 at 07:14
  • 1
    @Arkapravo Are you comparing against the LyX beta? There is a 2.0.0b4 out at http://www.lyx.org/News (scroll down to the second entry from the top). Regardless I'm going to have to check this codecogs out! –  Feb 27 '11 at 04:35
  • I used 1.6.4 ..... that did not impress me ! I will check out 2.0.0b4 .. – Arkapravo Feb 27 '11 at 07:40
0
\documentclass{article}
\usepackage[active,displaymath,textmath]{preview}
\pagestyle{empty}
\begin{document}

foo $ y=f(x) $ bar

foo \[ y=g(x) \] bar

\end{document}

Run it with latex and then dvips -E -i <file>, which will create for every math expression a single eps file file.xxx which then can be converted to any other type of image.