tags:

views:

143

answers:

4

I'm new to it but know it can't handle something special I need. I want to develop functionality for LaTeX. Problem: There's something called just TeX. Then there's LaTeX. And then there's KOMA-Script. So: Which of these three is actually the "underlying engine" that drives all this stuff?

+3  A: 

It's TeX. TeX is not just a document preparation language but also Turing-complete, meaning that it is a programming language too. Most functionality you see in LaTeX was implemented in plain TeX.

Joey
So if I wanted to develop a feature that imports source code snippets from huge projects by scanning source code lines for special comment-markers like //begin listing 3422 and //end listing 3422, I could code all that logic in "TeX" programming language? Is there an SDK for this?
openfrog
google "TeX api" or similar to find the documentation for TeX. It may be easier to use another programming language (.net, python, java, etc) to parse the source code and create TeX compatible files or snippets.
bugtussle
+2  A: 

TeX is the core engine. LaTeX is a set of extensions on top of TeX -- but most people use LaTeX nowadays, since TeX itself lacks a lot of useful features provided by LaTeX.

KOMA-Script is not something I am familiar with.

mipadi
KOMA-Script is a set of document classes and packages intended for publishing in Germany and other European countries. For me it looks awkward and ugly, most of the time (but then again, I don't like Computer Modern either). But allegedly it suits the tastes of European publishers better.
Joey
+2  A: 

LaTeX is intended to provide a high-level language that accesses the power of TeX. LaTeX essentially comprises a collection of TeX macros and a program to process LaTeX documents. Because the TeX formatting commands are very low-level, it is usually much simpler for end-users to use LaTeX.

http://en.wikipedia.org/wiki/LaTeX

bugtussle
+2  A: 

It's much more easier to add functionality to Latex, and if you want to do that, read LATEX2ε for class and package writers (pdf). It has a lot of good information. For knowing more about tex, TeX by topic and/or TeX for the impatient are very good. Of course, there's The TeXbook too, but it's not free (well, the source code for the book is free, but you're not allowed to typeset it).

Alok