Live data from Hacker News

TeX Live 2017 released

tug.org

31–40 of 67 posts

Re: TeX Live 2017 released

#31
post #21
post #19

Earlier quoted context omitted.

What 600-page documentation are you referring to? The TeXbook by Knuth goes only up to page 483 (with the appendixes starting on page 304). By the way, a really excellent book for (plain) TeX is A Beginner's Book of TeX by Seroul and Levy: it's truly for the beginner, yet at the end you'll be practically an expert, or at least know how to become one. I've seen people get frustrated with LaTeX (not TeX), but that's be…

Your comment is interesting to me. I've read about TeX and LaTeX from time to time and it was my impression that everyone used LaTeX because TeX itself was difficult to use. And I never questioned this because almost every article I could find only spoke about LaTeX. Your comment is making me reevaluate what I thought I understood.

Yes, an overwhelming majority use LaTeX rather than TeX directly. (Well, among the tiny number of people who use TeX/LaTeX at all.) The reason, though, is not that TeX is difficult to use: it's that TeX is a system for typesetting, and most people don't need typesetting.

If you're writing a paper for publication in a journal, they probably have their own typesetting style. With LaTeX you can just specify your paper as a sequence of paragraphs, "sections", a title, an author, and so on, and, by including the journal's style file (assuming it's good), your paper will come out typeset in that journal's style. This philosophy is explained at https://www.latex-project.org/about/

This is great for certain (many) kinds of documents. The problem with this, though, is that the moment you want to change the appearance and get into typesetting yourself, you're fighting a system that was actively designed to prevent you from doing this.

An analogy may be a system like, say, WordPress: if what you have is a blog, then it would work for you, and you even get to choose one of several “themes” that others have written, and so on. The set of available plugins and customizations can even be impressively versatile (for example, I noticed that time.com runs on WordPress, and apparently so do a number of other non-blog sites: https://vip.wordpress.com/clients/). But ultimately, if you're trying to figure it out by yourself and have your own ideas about what your website should look like, a system like this will always be more frustrating than the alternative (of having full control).

TeX is not difficult to use, though in the beginning you'd have to specify manually things like the typesetting of the document title (put it in a bold font at 16pt, centered on a line...). LaTeX has features to automate many such common typesettings tasks, but it has its own flaws (some stemming from the fact that it's implemented using TeX macros, which weren't designed for such heavy “programming”).

Re: TeX Live 2017 released

#32
post #29

Earlier quoted context omitted.

I once heard a professor talk about writing a book 30 or so years ago. He looked at all the available options and decided latex wasn't perfect, but was the best available. 20 years later he decided to look at everything again and was appalled that latex was still the best option he had. Have you ever tried to color a latex table? If you color a cell, most readers will cover ~1 pixel of the upper and left table border…

> I once heard a professor talk about writing a book 30 or so years ago. He looked at all the available options and decided latex wasn't perfect, but was the best available. 20 years later he decided to look at everything again and was appalled that latex was still the best option he had. Many many years ago I evaluated the available options as well to write internal documentation for the company I worked for. Looked…

Lout was the inspiration for LILArt (see http://runtimeterror.com/rep/lilart) which has a @-based syntax. The idea is that you define a document in a tree-like format with nodes, properties and such (similar to XML but not as verbose) and then you pass it to a LIL (a scripting language similar to Tcl) script to... do stuff with the nodes. You call lilart like "lilart -f file.ladoc" where simply makes lilart to load the ".lil" script and call its "process-tree" function, passing in the root node.

The reason i made it was that i liked Lout's syntax but i wanted something closer to DocBook that i could convert to other formats (Lout only works with printed output). I think the closest is GNU Texinfo, but even that was too specific and it needs way more handholding for the underlying output than i'd like. Texinfo defines its node types (and its format isn't really a tree nor very generic) whereas LILArt's node types are just a convention and in practice the scripts can define any sort of node.

Having said that, LILArt is really a backburner project which i only touch wherever i need to write a document in more than one format. The default LILArt scripts can output groff macros for conversion to PS and PDF (i used that because it is already installed in many systems, including the iMac i used at the time, and it is small to download for where it isn't available) and HTML in several variations, like semantic HTML, "simple" HTML for systems like Java help and LHelp, HTML for conversion to mobi and plain text and "naked" HTML for use with QuHelp (a program that i wrote some years ago to convert naked HTML files to full web-based help sites with search). I also had a Texinfo target that could be used to make info files, PDF and PS through TeX and CHM files for a while but it was buggy and decided to rewrite it at some point.

However i only touch that rarely when i need it so i don't really recommend its use as it is right now (the processor is more or less done, but the scripts aren't very well thought out since i was doing stuff as i needed them and they need a bit of a cleanup and some nodes are needlessly verbose - the DocBook inspiration - and need some abbreviation aliases).

Re: TeX Live 2017 released

#34
It's amazing how many different and dissimilar components go into a TeX distribution like TeX Live:

- At the base, there is Donald Knuth's program `tex`, itself written in a strange language (WEB) that is essentially an ad-hoc macro-expansion system (not used by many others, and not even by Knuth today, who prefers CWEB), and compiles (via `tangle`) to a dialect/version of Pascal (“Pascal-H”) for which a compiler hasn't existed for years. [It also "compiles" (via `weave`) to the printed book TeX: The Program]

- Then there is LaTeX, an elaborate set of macros written originally by Leslie Lamport (another Turing award winner) and later by a team, to be interpreted by the TeX program, which was never designed by its original creator for such elaborate programming.

- There are entire new programs (aka TeX engines) like pdfTeX and XeTeX, created by editing the original `tex.web` in different directions.

- There are the binaries of all these programs, compiled using `web2c`, a program written solely for converting all these WEB programs written in (basically) Pascal into C code, which is neither an arbitrary Pascal-to-C converter nor even an arbitrary WEB-to-C converter.

- There is LuaTeX, a manual rewrite of TeX in C, embedding a Lua interpreter and adding many hooks and extensions.

- There are thousands of macro packages written by thousands of people of varying levels of skill and foresight, on top of TeX, LaTeX, and other macro packages themselves: essentially everything on CTAN (which was inspiration for Perl's CPAN, and ultimately many languages' package repositories like Python's PyPI etc.)

And all this without even mentioning ConTEXt, Metafont, MetaPost, BibTeX, Kpathsea, various assorted utilities, graphics drivers…

Re: TeX Live 2017 released

#35

LaTeX is still one of my favourite piece of technology of all time. It is at time so alien, yet beautiful. I now get closer to 10+ years of programming experience, yet nothing comes close to debugging a faulty LaTeX custom command... it can quickly turn to an unreadable mess, but you have to admit that once everything is swept under a preamble.tex file, the rest of the code is very clean. Especially with auctex in em…

I once heard a professor talk about writing a book 30 or so years ago. He looked at all the available options and decided latex wasn't perfect, but was the best available. 20 years later he decided to look at everything again and was appalled that latex was still the best option he had. Have you ever tried to color a latex table? If you color a cell, most readers will cover ~1 pixel of the upper and left table border…

[deleted]

Re: TeX Live 2017 released

#36

Earlier quoted context omitted.

I ask this as a totally naive person regarding novels and publishing, but who is fairly happy with writing papers in Latex: what is difficult about typesetting a novel? I ask because I would think that novels would be on the easier end of typesetting situations, but clearly your experience is different.. I just can't imagine what you are struggling with. I've "typeset" many novels by converting them from text formats…

I've typeset novels, technical manuals, math, poetry, articles, chess diagrams, posters, presentations, my resume, and probably a bunch of other things in LaTeX. It wasn't a big deal, though it's definitely a rabbit hole in terms of the amount of tweaking that's required if you want everything just right, if you're doing something fancy, and if what you're doing doesn't quite fit any of the many pre-written templates…

Anyone who wants everything “just right” and is particular about what that means – and doesn’t have to make more than 2 documents in a particular template (or maybe even if they do) – should just start with InDesign, and save hours of trouble.

Where LaTeX shines is for cases where you don’t really care about the details of the layout, but just want someone else to handle it all in a somewhat sensible way when you hand them a basic manuscript, and not shit all over itself the way MS Word does on a regular basis.

LaTeX is great for generic college papers where you don’t have figures and don’t have time to worry about the layout. By contrast it’s a huge pain in the butt for something like magazines, coffee-table books, or posters.

(It’s also the best way to typeset mathematical formulas, of course.)

Re: TeX Live 2017 released

#37
post #29

Earlier quoted context omitted.

> I once heard a professor talk about writing a book 30 or so years ago. He looked at all the available options and decided latex wasn't perfect, but was the best available. 20 years later he decided to look at everything again and was appalled that latex was still the best option he had. Many many years ago I evaluated the available options as well to write internal documentation for the company I worked for. Looked…

Lout was the inspiration for LILArt (see http://runtimeterror.com/rep/lilart ) which has a @-based syntax. The idea is that you define a document in a tree-like format with nodes, properties and such (similar to XML but not as verbose) and then you pass it to a LIL (a scripting language similar to Tcl) script to... do stuff with the nodes. You call lilart like "lilart -f file.ladoc" where simply makes lilart to load…

Similarly, check out Racket's Scribble mode (https://docs.racket-lang.org/scribble/).

"Scribble is a collection of tools for creating prose documents—papers, books, library documentation, etc.—in HTML or PDF (via Latex) form. More generally, Scribble helps you write programs that are rich in textual content, whether the content is prose to be typeset or any other form of text to be generated programmatically."

You type in text and mark up using @-tags that are defined in, and can also contain, the full Racket language. It's like LaTeX with a modern language (but without the tons of available packages).

Re: TeX Live 2017 released

#38
post #34

It's amazing how many different and dissimilar components go into a TeX distribution like TeX Live: - At the base, there is Donald Knuth's program `tex`, itself written in a strange language (WEB) that is essentially an ad-hoc macro-expansion system (not used by many others, and not even by Knuth today, who prefers CWEB), and compiles (via `tangle`) to a dialect/version of Pascal (“Pascal-H”) for which a compiler has…

A now also the recently announced tectonic [0]. I also remember watching a talk about a clojure re-implementation but I think I never saw it released anywhere.

[0]: https://tectonic-typesetting.github.io/en-US/

Re: TeX Live 2017 released

#39

I've given up on tex. I'm typesetting a book right now, and getting the epub going was a piece of cake. Then I tried using LibreOffice for the print version and it was a nightmare to control via the API and buggy as hell. So I decided now would be a good time to try tex. After 2 solid days of yak shaving, I threw in the towel. It's too fragmented, the documentation is terrible (complete - all 600 pages worth, but ter…

It doesn't help either that all the basic references are in the form of books. Finding the relevant bits of information can take a long time. Besides documentation, another of TeX's weaknesses is its lack of debugging capabilities, which makes it really hard to figure out what goes on behind the scenes.

Re: TeX Live 2017 released

#40

Earlier quoted context omitted.

I ask this as a totally naive person regarding novels and publishing, but who is fairly happy with writing papers in Latex: what is difficult about typesetting a novel? I ask because I would think that novels would be on the easier end of typesetting situations, but clearly your experience is different.. I just can't imagine what you are struggling with. I've "typeset" many novels by converting them from text formats…

Getting otf fonts working, getting images working and properly positioned, getting alternating left-right headers to behave themselves, especially at a chapter start. Every new thing involved going back to ctan (I had high hopes for memoir) or searching online in the hopes that someone took the time to write down how they did it. Most of the time you'd just find "how to make your math formulas look pretty" or "how to…

I'm typesetting a series of novels with LaTeX and memoir and I share your pain. I didn't have much trouble with fonts (fontspec is pretty awesome compared to the old TeX way), but things like typesetting on a grid, that was difficult.

I'm now reading on ConTeXt and it seems to be a much more adequate TeX format. For one thing, it supports grid typesetting! LaTeX's philosophy is to separate style and content, leaving the style to "someone else". It seems that ConTeXt's philosophy is to separate style and content, but still make it easy for the user to choose the style. It's also more integrated: comprehensive core, few third-party packages, meaning less compatibility issues (but less choice too). I'll definitely try it for my next project.

Post reply on HN