84 points · by wwortiz · 16y ago · 45 comments
Two examples from work. For a proposal, we had to produce two documents, a short and a long one, with common titles and introductory paragraphs and cross-references and such. With LaTeX, we actually wrote just one proposal, with the contents embedded in TeX macros. Changing the macro definitions let us produce what became two "views" of the same material.
Second, for a paper on sorption modeling, we used macros for all the physical variables, to make sure all the equations "read" correctly (e.g., writing "\cSorbBulk" rather than, say, "C_b"). Halfway through the paper, we decided on a new notation for distinguishing between gas- and sorbed-phase concentrations. It took maybe five minutes to update the pertinent definitions and re-set the paper.
I am interested to know if you had other examples in mind when you said this. Disclaimer: not trying to start a discussion on languages, or lang war.
I'm not sure why you'd want to disclaim trying to start a discussion on languages; it seems like a good thing.
The sentence I wrote was originally intended just to describe TeX, but it seemed to me in retrospect that it applied almost as well to Lisp. Although the design philosophies of the two languages are completely different, both are intended to be the foundations for lots of little languages; Knuth has said that he was always surprised that people were happy to settle so quickly on TeX and LaTeX, rather than creating and selecting among many more specialised dialects. (Of course, a quick glance at CTAN shows that it is folly to think that everyone who uses TeX or LaTeX does the same thing with it!)
I posted some more examples of highly customisable little languages at http://news.ycombinator.com/item?id=1535807, but I should mention that I haven't used them.
With LaTeX, (1) I would have to learn more and (2) to write macros, I might have to understand and then fight what LaTeX assumes. Also the LaTeX documentation is much larger than 'The TeXBook'! So, I just stay with TeX.
Also for me a big, HUGE, point is that input to TeX (or LaTeX) is just a simple 'flat ASCII' text file, and for those I use my favorite, programmable text editor, the same one I use for writing software, e-mail, and much more. E.g., when I need to do some special thing to a TeX file, I can write an editor macro to do it.
Net, in my general purpose, long lasting collections, I have about 150 macros for TeX, about 150 for my programmable editor, and about 100 for command line scripts. So, that's 400 names to remember? No, from my editor, I can quickly see all the names of all the macros and, of course, for each macro its source. Searching for macros? My editor is great at searching! Lacking anything else, I can quickly pull all the macros of one collection into one temporary file and just search that. I have no difficulty finding macros! Works well.
Not to be missed, I run TeX from a scripting language which is 'smart' enough to do the converstion to PDF, etc. So, I minimize clicking. It's easy: I just have a little text window, and to see the results of a change in my TeX input I just hit the retrieve key in that window and then Enter. It's FAST.
Broadly I like 'windows', lots of windows, even for just one piece of work. So, for TeX I will have at least three, one for each of my text editor, the TeX DVI preview output, and the command line scripts. For my current software project, putting a Web site in front of some of my other software, I have about 15 windows with a mixture of Web browser windows and my editor windows. To open all those windows at the start of work, I have a simple script. To arrange the windows, I have a simple script. When the windows on the screen get to be a mess, I have a simple script that will arrange them and can be executed with an icon on the UL corner of my screen.
Lesson: One 'application' that has just one window and tries to do everything within just that one window is less good than just using the ability of the operating system to display many windows. So, right, "Look, Ma, no IDE!". And no Word, either.
End of my contrarian view of graphical user interface!
They may not mention the best features, but they are possibly the sexiest to people new to LaTeX.
Having said that, I'd love to see more articles emphasizing the feature you are praising. Different audience, different sales pitch.
The scoping rules are incredibly primitive and there's no namespace functionality. However, you can curry macros! How funky is that?
What about "re-flow whenever you leave everything alone for two seconds"?
Do you think anyone will still be able to open your documents in Adobe InDesign 200 years from now? This may not matter to everyone, but if it matters for your purposes, LaTeX has a clear advantage here.
EDIT: I'm not affiliated with the author of this article.
The ability to split a document in multiple source files and having SVN/git/etc makes it really easy to work on the document at the same time.
Mac OS X’s font palette (while sucky in general and in dire need for a makeover to improve its UI — it’s like vintage 2000 or so) also offers you many of the mentioned features: 1 and 3 are on by default everywhere (type ‘shuffle’ into the Spotlight searchbox, ‘ffl’ will be turned into the appropriate ligature), 2, 4 and 5 are accessible through the palette but I don’t think OS X is clever about line-breaks (at least there are no settings to fine-tune). Don’t know about transparency. It is available to you in every program which uses OS X’s standard method of text input (like Pages or Safari).
You could retrofit smart justification onto the text system, but it would require some non-trivial code (namely an NSTypesetter subclass). It's not easy, but it's possible.
I've never seen someone editing an essay in InDesign (though I am sure there are such people).
Walks like a duck, quacks like a duck.
The syntax is a bit antiquated, but its bearable.
I just which web browser would get the typography right one day.
Any suggestions of a way to get darker CM fonts in PDF?
\renewcommand{\rmdefault}{ppl}
\linespread{1.05}
\RequirePackage{eulervm}
==1==
\AtBeginDocument{\normalfont}
\RequirePackage[T1]{fontenc}\relax
If you want to use Helvetica and Courier for SS and TT respectively, insert the following at ==1==. \RequirePackage[scaled]{helvet}
\renewcommand{\ttdefault}{lmtt}My understanding is that the problem with the CM fonts in PDF is actually not the CM fonts as in Metafont but in the conversion of the CM fonts to what PDF wants. So, that conversion was essentially by hand by starting with magnified TeX output and taking 'outlines', in part because what Metafont assumes for 'pens' conflicts with what PS does with 'pens'. So, from the last time I looked, it seemed that what I needed was just some new conversions of CM to what PDF wants.
Actually with the TeX distribution I have, there are some nice fonts for just text, maybe Century Schoolbook, etc. But, again, I never want to give up on math or the AMS symbols.
Uh, I just use TeX and not LaTeX!
Also, I found that using the LaTeX macros simplified my life a lot, instead of trying to reinvent the same formats over and over again. Why do you use just TeX instead of LaTeX?