# Alternatives to LaTeX

Are there any professional alternatives to TeX/LaTeX which produce equal or even better typesetting? Maybe expensive commercial ones. The software counts if it is comparable or superior to LaTeX (with microtype) in typesetting text or math (or both). In any case, please mention both aspects in your answer.

I am only aware of ConTeXt (which is partly based on TeX).

Note that I am not looking for an alternative for my personal use, I am just asking out of curiosity.

-
Without making any comparisons, there is Adobe inDesign –  Scott H. Jun 20 '13 at 19:20
@ScottH. -- to the best of my knowledge, indesign doesn't (yet?) handle math. –  barbara beeton Jun 20 '13 at 19:26
@student Now that it has been mentioned, is math typesetting a requirement? –  Scott H. Jun 20 '13 at 19:35
@barbarabeeton: But there is a plugin named MathMagic for Adobe InDesign to handle math. –  I am who I say I am Jun 20 '13 at 19:55
There is an interesting comparison LaTeX vs. InDesign (but a bit old): zinktypografie.nl/latex.php?lang=en –  student Jun 20 '13 at 20:06

You asked for professional solutions. Several top technical journals, including I believe Physical Review Letters and Nature magazine, use Advanced Print Publisher (APP), also known as Advent 3B2. Formerly available from Arbortext but now from PTC.

It can definitely handle mathematics, and I'm sure it deals with typographic details such as ligatures and microtype-like tweaks. I believe the main strength over tex is that it makes complete document production very automated. Things like dealing with floats (tables and figures) in a more-automatic way than tex, and giving manual controls to override it.

I haven't used it, however, since it's very expensive (basic versions start at something like US$45000). The wikipedia page has a little information. - 45,000 dollars? I wonder if they have student version? – Nasser Jun 22 '13 at 9:33 add comment I truly believe nothing comes close to TeX (and Friends, e.g. LaTeX, ConTeXt) when it comes to output quality. Other DTP programs such as Indesign (Adobe), QuarkXPress (Quark) or Scribus (open source) offer a graphical interface and hence an easier learning curve, but they don't match up in terms of quality. Amongst many, let me just point the two most obvious quality advantages of TeX: ## Math typesetting Typesetting maths correctly is very complex (symbols need to adjust in size, spaces are very specific, etc.), and only TeX gets it right. There are probably even better examples, but try obtaining something like the following in InDesign: ## Line and page breaking Tex's algorithm is very complex and takes into account possible hyphens, widows, orphans, etc. to produce an output that is more elegant. The best showcase of this I have found is a comparison posted by Roel Zinkstok of Zink Typography, reproduced below. On the comparison, Roel indicated with red dots lines with inter-word spacing that is out of proportion, a cardinal sin for typography, while the red circles indicate hyphens, which should be minimized: - What do the red dots represent? – I am who I say I am Jun 20 '13 at 20:30 @mozartstraße the red dots indicate lines where the inter-word spacing (spacing between words) is bad. – bfootdav Jun 20 '13 at 20:39 It also looks as though the pdfTeX output was made without the help of the microtype package. – jon Jun 20 '13 at 22:48 @ach You are probably thinking of the comments to this answer. The proof (as I would claim) that it's not a fair comparison can be found here, which shows the result with tex's default settings on the first page and then increasing tweaks to mimic the example. @jon Actually, I do not think this output is achieved by using microtype but rather by allowing spaces to stretch and shrink much more than tex would normally permit (being as fussy as it is on this point). – Robert Jun 20 '13 at 23:12 @student: Adobe has stated openly (and in typeset form ;-) ) that InDesign uses precisely Knuth's linebreaking algorithms (per paragraph as opp. to per line). I have not used InDesign myself seriously, but from what I've seen done with it, I think it is a great typesetting system (ranking high together with QuarkXpress). Moreover, in this site there has been some discussion on grid-oriented typesetting design; maybe in this regard InDesign even ranks higher than TeX-based systems (not for lack of design excellence in TeX, but simply because it was not conceived with such a scenario in mind). – Marcos Jun 26 '13 at 18:06 show 19 more comments Troff (http://troff.org/) should definitely be mentioned for its simplicity. I normally use LaTeX for all my documents, but for some special cases (e.g. user manuals) troff (or it's GNU version groff) is just the simpler way. It also can handle math using the preprocessing tool eqn. A nice comparison between troff and LaTeX can be found here. - I just realised that the link I provided for the comparison actually is a macro package for groff which the author claims makes it comparable to LaTeX. I think I just found something to do for the weekend :) – user2426172 Jun 21 '13 at 8:14 Nice find! Can be a nice alternative to LaTeX for good looking automatically generated documents. – gniourf_gniourf Jun 21 '13 at 8:26 fyi, from wiki, troff can trace its origins back to a text formatting program called RUNOFF . see RUNOFF en.wikipedia.org/wiki/RUNOFF RUNOFF was the first computer text formatting program to see significant use. – Nasser Jun 22 '13 at 21:42 I used ditroff to typeset my thesis. And I believe groff has taken over some of$\TeX$line-handling and math formatting techniques, so it should be comparable for text at least. But overall a troff document feels like assembler to$\LaTeX$' more structured approach. Lerned$'LaTeX$, and never looked back. – vonbrand Mar 23 at 17:57 add comment A shameless plug: We are offering a professional typesetter (though open source) which is based on LuaTeX. If it is "equal or even better" than LaTeX is surely subjective. Our focus is to bring the DTP world to automatic typesetting (database publishing). For example we have • master pages based on arbitrary conditions • text flow based on "frames" • multi page tables including subtotals and repeating tablehead and tablefoot • easy to install/use fonts • grid based layout/typesetting • ... While TeX / LaTeX is focused on text documents (with or without math) our main application area is product catalogs, price lists and other documents that are created automatically from databases but have flexible and nice layouts. http://speedata.github.io/publisher/ I'd like to invite everyone to try out or perhaps work on the software. Development never ends (as usual). - I'm intrigued by the grid-based support and text flowing. These are both regarded as 'hard' problems with TeX-based systems. How general are your solutions (in broad terms: not looking for anything commercially-sensitive)? – Joseph Wright Jul 1 '13 at 16:04 @JosephWright hard to discuss this in a comment... I believe your question is along the lines: "can we take the approach and throw it at LaTeX"? I'd say no, since I almost completely leave the TeX world. For example I save the text blocks and reformat them on demand (for example if columns are of different widths or of I need a parshape in the second column). – topskip Jul 1 '13 at 16:10 I wish I could get feedback for the downvote! Too much advertisement? (Hey, it's open source, so you can use it). Not a good answer? (I think it matches the question.) It would be nice if the downvoter could explain why this answer is a bad answer. – topskip Jul 2 '13 at 11:13 On 'generality' I was thinking for example that there are a few approaches to grid typesetting in TeX, but most (all?) have limitations, often related to display or math mode material. So I was wondering how generally you've been able to deal with this. – Joseph Wright Jul 2 '13 at 11:36 @JosephWright I have an invisible grid in the background with height of the grid cells of \baselineskip of the text font. Every object is placed in the grid (and thus integer multiple of \baselineskip from the top). There is still much to do but I will for example include an invisible "adjust to grid" marker that goes to the next cell. This part is currently under development. – topskip Jul 2 '13 at 11:46 show 2 more comments First, add XyVision to the list of proprietary batch composition competitors. Here's a bit of commentary I wrote up a couple of years ago, which still applies. It's also on the ConTeXt wiki. https://groups.google.com/forum/message/raw?msg=comp.text.tex/8zugdUxw6dI/mu7Qzs4bQDYJ So, • using Quark is like being chained to an oar which is covered w/ splinters and mostly broken at the other end and which will randomly break due to being poorly carved (Quark has crashed on me 183 times this year) leaving one adrift or run aground, or sometimes returning the vessel to its starting point (a few of those crashes have resulted in unrecoverable document corruption --- my autobackup folder may contain 2 or 3 GBs of files for a given iteration of a particular project each month) --- the oar can be smoothed somewhat and reinforced (by purchasing or finding XTensions, using XTags &c.) and periodically one is required to purchase a new oar (sometimes just after the previous one has been customized adequately). For some tasks, one can impress any graphic designer as a galley slave to ease the effort for others, but while charts are available, there are not automagic navigation options and every journey must be manually piloted. • using InDesign is pretty much the same except the oar is smoother and stronger (it's crashed 29 times on me thus far this year), there aren't as many customization options and it's not quite as easy to find a candidate for impressment (though soon it'll be as easy as for Quark). Charts are available, but again, piloting is strictly manual. • using Plain TeX one has to craft the vessel's oar oneself (as well as the rest of the vessel unless one is typesetting a clone of The TeXbook), but it's as sturdy and as nice a one as one's skills allow and can even be an engine which moves the vessel in and of itself --- it can be difficult or impossible to find people suitable to help w/ either carving the oar or using it though, but once a given journey is worked out, the oar becomes magical and rows for itself except for when one runs into an unplanned for obstacle (the navigation charts are old ones and not often up-dated, with a lot of terra incognita''), allowing one an auto-pilot option for certain journeys, dependent upon one's skill. • using ePlain, an oar is provided, can be customized, and can be enchanted and the charts are okay, but have a lot of terra incognita'' on them. • using LaTeX, an oar is provided and there're lots of nifty customizations and improvements already available, and one can impress additional oars from CTAN, however on a semi-random basis, adding one oar will break other oars, sometimes leaving one adrift or run aground. One can enchant a set of oars to accomplish a given journey, easing the piloting requirement, and the navigation charts are decent and obstacles are fairly well-known. • using ConTeXt, a very nice oar is provided, which has lots of customization options, but the navigational charts aren't easily read by a traditionally trained navigator at first, although they are fairly compleat and most journey can be carefully worked out, but once one is, it is quite automatic and there's a good auto-pilot option. - your quotes around terra incognita give away your preference :P – percusse Jun 28 '13 at 23:33 add comment TeX and friends maybe still the best. There are some alternative and results are various. I do not really use any of them, but kind of know there existence. - Another one: asciidoc – qunying Jun 20 '13 at 23:34 there was also chi-writer. no longer around. en.wikipedia.org/wiki/ChiWriter – Nasser Jun 20 '13 at 23:44 Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. – Heiko Oberdiek Jun 20 '13 at 23:56 ANT is an impressive codebase, especially the support they have for OTF. Also, the embedded scripting languages is a huge win. Unfortunately it depends on archaic versions of libraries and the language, so it won’t build on current systems. The most recent post on their mailing list is from 2010 so I guess it could be considered unmaintained. – phg Jun 21 '13 at 9:10 I'm really interested in whether Lout and Ant have ever been used. Can you give examples/sample output if there's any? (Apart from their respective user manuals, of course.) I'm also interested in their "stories", why they are unmaintained, what happened with the author, etc. – marczellm Jun 22 '13 at 8:37 show 4 more comments While LaTeX is the markup language of choice in many scientific and scholarly circles (especially in the fields of mathematics, computer science, physics, and astronomy), some scholars are starting to write papers using new markup languages tailored for the web. Markdown is one of them. It is very versatile and it can be easily extended to satisfy the needs of scientific writing. The advantage of using Markdown (or similar) instead of LaTeX is that we are writing on the web more than ever. Thus, it makes sense to use a web native typesetting format. For those who would like to use both Markdown and Latex on the web, Authorea (full disclosure, I am a co-founder) is an online social authoring platform that allows articles to be edited in both formats simultaneously. Authorea also renders and compiles LaTeX and MathML equations to the web, in addition to PDF. - LaTeX is not only markup but also typesetting. And welcome to TeX.sx! – Qrrbrbirlbel Jun 25 '13 at 22:56 Welcome to TeX.sx! That platform looks quite intriguing, indeed. Do you have any relationship to the company that runs it (apart from being a user)? – Jake Jun 26 '13 at 1:31 hi Jake- yes I am the co-founder of Authorea (and a user, since I still write papers in Astronomy + Information Science). We have a couple of thousand users and the vast majority of them writes in LaTeX. – Alberto Pepe Jun 26 '13 at 15:44 @user32799: Thanks for the reply. When posting an answer promoting a product you're affiliated with, that affiliation should be disclosed (see tex.stackexchange.com/help/behavior). Could you edit your post to include that information? – Jake Jun 28 '13 at 20:50 hi Jake- I just updated my .sx profile information with my affiliation. Thanks! – Alberto Pepe Jun 29 '13 at 21:02 add comment GNU TeXMacs is a WYSIWYG scientific structured document editor and typesetter. It used to require a TeX distribution but now it does not. Here is a list of not so widely known typesetting systems that I found googling around, mostly work-in-progress (or work-used-to-be-in-progress): • cl-typesetting is written in Common Lisp, which implies that its markup language is also Common Lisp. (Macro language, anyone?) • The Z format looks like HTML, but is not. • Platypus commands look like [list|bullet:{rarrow}] . Written in Java. • Patoline, written in OCaml. Also handles SQL bibliography databases, and comes with Bibi, a bibfile to SQL converter written in Haskell. (The developers seem to be really keen on functional languages.) You have to build it from source. Commands look like a mixture of TeX, OCaml and new markup: (* #FORMAT FormatArticle *) \begin{genumerate}(AlphaLower, fun s -> [tT (s^". ")]) \item First item \item Second item \end{genumerate} \includeGraphics("pato.png") $$a + b$$$ a + b \$
\Caml(
let dr ()=
[bB (fun _->
[Drawing (drawing [Path (default,[rectangle (0.,0.) (10.,10.)])])]
)]
)


Note that I have no idea if this code works, I just copied together parts of the manual.

Maybe more to come.

-
AFAIK, TeXmacs was never based on TeX; it uses various TeX algorithms but they are implemented independent of TeX. It uses TeX fonts, though, so that might be why it needed a TeX distribution in the past. –  Khaled Hosny Jul 1 '13 at 22:49