3

What I mean is, is there something like a tex.dll that I could use to incorporate TeX's functionality inside a custom text editor?

For various reasons, and specific purposes, I am writing "the simplest possible" text editor for my own use, and it seems quite productive on paper. However, I will be using maths heavily and I don't want to reinvent the wheel of this enormity.

I am not sure how TeX could return a piece of formatted content but for maths formulas, which is what I really want, a jpeg should work fine for me.

If what I am looking for doesn't exist, what could be done to incorporate TeX generated formatted maths into my text editor?

FYI, I am developing in C++ on Windows 7 using plain Win32 API.

PS: I couldn't find appropriate tags and have used what seemed closest.

  • 2
    TeXStudio can insert a preview of e.g. an equation. Emacs imho too. – Ulrike Fischer Apr 8 '15 at 12:06
1

This is built-in on Mac OS X --- just use a text editor which supports Services, install LaTeXiT and one can type an equation, typeset it in place and un-typeset it to restore the source.

For Windows you should be able to achieve something similar by using OLE and accessing an equation editor.

You may want to look at TeXmacs or TeXworks.

| improve this answer | |
  • I didn't quite find anything right away, but the mention of OLE has helped - I never thought about that. I'll continue the search a bit later. Thanks for the reply. – vin Apr 11 '15 at 19:11
  • I sometimes use LyX as it seems better than TexWorks. I tried using TeXMacs after you posted but it doesn't even start on Windows 7, not sure why. But my motivation has a heavy programatical bent to it as well, so am keen on that elusive dll like component. – vin Apr 11 '15 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.