Over the last little while, I’ve been slowly (very slowly) chipping away at a fair-sized personal writing project. I have a number of applications — both commercial and Open Source — at my disposal, but I chose to work on the project using LaTeX.
LaTeX (pronounced lay-tek) is a document markup and preparation system that has a long history in academia and scientific research. But it has a number of other uses, too. Including my project.
While I’ve been using LaTeX on and off for quite a few years, it’s been a while since I’ve been immersed in it. To put it bluntly, my LaTeX kung fu is lacking at the moment. But I am getting reacquainted with it. I’m also remembering why I like using LaTeX and am being reminded of some truism about documentation as well.
First off, it’s a text-based format. I can write documents on any computer that has a text editor. The editors that I use on my laptop and netbook have LaTeX extensions which make adding markup to my documents easier.
LaTeX is designed so that you focus on content rather than formatting. You type, add markup, and when you generate a PDF of your document, LaTeX does all the formatting for you. Admittedly, the basic document types — like letter, article, report, and book — are kind of bland. They’re very nicely typeset but they’re plain. You can easily change the look of document using classes. Classes are like templates, and there are a large number of them.
For my project, I’m using the book document type with a few extra classes added to change the fonts, the page size and layout, and to add funky chapter numbers. But I’m adhering to the LaTeX structure for a book.
LaTeX divides a book into the following segments:
I’m not using subparagraph; never have. It’s a bit too granular for my needs. Following that structure gives me a book that’s not just well-formatted, but one that’s logically broken down. There is, or at least can be, a logical and well-defined flow to the text. Of course, a lot of that depends on how the content is written.
I can, of course, not use the markup to denote the portions of a book that are listed above. That would mean doing what many people who use word processors do: ignore styles and manually apply formatting to everything. I’ve seen that done with documents written with LaTeX and the results aren’t pretty. Section and chapter headings don’t quite look right, and the table of contents (which the LaTeX processor automatically generates) is empty.
A number of people use LaTeX to prepare documentation. But that’s not the application that I was thinking of. Instead, using LaTeX forces me to consider the structure of what I’m writing, and how all the little bits and piece of a project fit together. Structure is one of the foundations of good documentation, and a document that’s been poorly planned reads as if it’s been poorly planned. You really need to have that structure defined, and understand how:
On top of that, LaTeX allows me to focus on the content. The more I do that, the better it is. Well, at least that’s my hope. I prefer to let the tool do all the fancy work. All it takes from me is a some effort up front to specify which classes I want to use.
Sounds a lot like using XML for documentation, doesn’t it?
Thought? As always, feel free to leave a comment.
Related posts:
6 Responses
Lana Brindley
November 18th, 2009 at 8:15 pm
1I used to use LaTeX in my previous job, and loved it. But then I was introduced to DocBook XML and found it so much more logical and easy. LaTeX, I think, is still very useful if the stuff you’re writing is high on mathematical or scientific notation. But for what I do, Docbook XML fits the bill nicely. Subsequently, my LaTeX is a little rusty these days too (she says as she eyes her copy of “The LaTeX Companion” on the bookshelf). perhaps I need a little personal project as well, just to brush up
L
Reply
Lana Brindley´s last blog ..Where’s the fiction gone?
Scott
November 18th, 2009 at 10:50 pm
2@Lana, I’ve never used LaTeX for documentation (aside from some tech writing samples when I started my career all those years ago). It just doesn’t work for me that way. Like you, I’m a big fan of DocBook — no matter what the DITA folks say
LaTeX is great for typesetting math. But I’ve only done that for some consulting I did years ago. I mainly use LaTeX for writing reports and things like that. And for several aborted personal projects. Little, if anything, beats LaTeX for the accuracy and sheer beauty of its typesetting, though. Just wish tables weren’t such a pain …
Technical Writing News – Nov 20th | I Heart Tech Docs, Ivan Walsh, Technical Writer
November 20th, 2009 at 10:30 am
3[...] LaTeX, content, and structure [...]
Janet Swisher
November 23rd, 2009 at 2:23 pm
4“You can easily change the look using classes.” That assumes that a class exists that provides the look that you want. If it doesn’t, you have to tweak one until it does. I did this many years ago for my (now-ex-)husband’s dissertation, because there wasn’t a class that matched his university’s formatting guidelines. I’d never recommend LaTeX for corporate documentation, because even if I could match the company’s look-and-feel, probably no one but me could maintain it.
LaTeX’s math typesetting is unbeatable, and there are now plugins to provide just LaTeX equations in other, easier to use systems, like WordPress, OpenOffice.org, and Confluence.
Scott
November 23rd, 2009 at 3:13 pm
5@Janet, like you I never use or recommend LaTeX for corporate documentation. That said, I’ve seen it done and done quite well. And someone created a LaTeX class to mirror the look and feel of the books put out by No Starch Press.
But for other projects, I do a bit of tweakery (not sure if that’s a real word or not) in the header to get the look and feel that I want from a particular document class. I just wish CTAN included graphical thumbnails of what a document typeset with a particular class looks like. Not all classes include a sample PDF.
Technical Writing News – Nov 20th | I Heart Technical Writing
January 4th, 2010 at 1:02 am
6[...] LaTeX, content, and structure [...]
RSS feed for comments on this post · TrackBack URI
Leave a reply
Blogroll
Past Entries
Communications from DMN is proudly powered by WordPress - BloggingPro theme by: Design Disease