So inspired by this blog post (German) and the therein linked, not uninsightful comment about how stupid Office text processing (and how awesome LaTeX) is, and generally being a friend of OSS, I decided to jump the gun and install something to that end.

Now, looking for reasonable GUIs (because I’m just too old to hack anything without a comfortable environment) I stumbled upon LyX, which seems to be reasonably comfy. It runs now, after an afternoon of shouting and crying, so I decided I’d make a little tutorial as to how exactly you’ll have to install it.

My Windows Vista Business (32-Bit) is German, so bear with me regarding the screenshot texts.

Update 2009-03-25 13:41: There is a Windows Installer now, which still takes some time to install and requires various steps, but has some message boxes guiding you through the process. It’s still in beta, but worked a treat on my Windows XP machine.

Which LyX? And What Else?

Now, first off, there are two installation packages for LyX (which you find on the Wiki). At the time of this writing, do not download the one linked on the download page. The installer you want is (currently) this one:

LyX-1.5.6-1-Installer-Bundle.exe (95 MB)

(There might be a newer version on the Wiki, so check back there if you access this post later than September 2008.)

The non-bundle installer tries to download MiKTeX during the installation, which is nice, but it obviously does so with an outdated URL, yielding a 404 (not found) error:

404 Error

404 Error

The installation will complete despite this error, but you won’t have a LaTeX frontend, but just … a standalone editor without any exporting functionality, basically worth nil.

Keep in mind that despite the LyX setup telling you it can use an existing MiKTeX installation, that’s simply not true, as it looks for a tex.exe file, which the current distribution of MiKTeX just doesn’t include. So don’t download MiKTeX individually either, unless you don’t plan to use the LyX frontend.

So just install the bundle from the start.

Installation

OK, now that you have the proper file, it’s time to install it. You will need to install it as administrator, as the installation process will otherwise abort after 30 minutes (more in this later). So right-click the file, “Run as Administrator”.

Run as Admin

Run as Admin

OK, enter your credentials if you use UAC, and off you go. Select “Install MiKTeX”, UI language and dictionaries, select a directory and start. You’ll probably want to install it for all users. The LyX installation itself will be over rather quick, although you’ll have to agree to each dictionary’s terms of use individually.

After a minute or so, the MiKTeX license agreement will pop up, tick “I accept” and off goes the long part. First, select whether you want to install MiKTeX for all users or just yourself – choosing the same here as for LyX is wise – and a directory.

Now, the next question for settings seems rather innocent, but I strongly suggest switching “install missing packages” to “yes” (I’ll write about why yes and not “ask every time” a bit below, selecting “no” doesn’t make much sense since you want a working program):

Install Missing Packages

Install Missing Packages

Good, start. You will see the following screen for quite some time now:

LyX installing MiKTeX

LyX installing MiKTeX

After about 15 minutes on my mobile Core2 with 2GHz, you will need to push “Next >” after the completion of the MiKTeX setup, to continue the LyX setup. Now, if you didn’t select “Yes” above, a plethora of package installation dialogs will pop up – and grab focus, so if you happen to install happily, and do something else while the computer is milling, you might screw up your installation with a careless key press.

Just imagine, you happily type a blog post, and then you cancel the running installation because that blog post would’ve contained a “C” next when the popup grabs focus. Yes, experience speaking (although, OK, it must’ve been me panicking and pushing “Escape” instead).

Package Installation

Package Installation

OK, so you haven’t screwed up. Another 20 minutes, and you will be greeted with an inviting image. If you started as administrator, that is, otherwise the installation routine will abort right here with an error and leave you with half a program installed.

LyX Driver Error

LyX Driver Error

Don’t worry, it’s just Vista being paranoid about the Metafile to EPS Converter, a printer driver that’s installed in the course of this setup. “Install anyway” is the way to go.

Now, you’re nearly done. Close the setup (without checking the “run LyX immediately” box, unless you want to run it as administrator, too), and start LyX from the start menu. You will need to provide your UAC credentials yet again upon running LyX for the first time, since it does some further installation stuff for your standard user.

LyX Installed!

LyX Installed!

Conclusion

In all honesty, I didn’t expect to spend an entire afternoon (well into the evening) installing a working LaTeX environment. It works now it seems, and I’m looking forward to writing things in a WYSIWYM typesetting system instead of a WYSIWYG word processor (where you don’t quite get what you see after all, and it’s easy to focus on presentation over content or structure). But the way there could have been less annoying.

Disclaimer: This isn’t the first time I’m writing something with LaTeX, the last time I wrote in a text editor with just basic highlighting. But that’s over five years ago – I do hear though that templating hasn’t gotten a lot easier since. I’ll now write a “test” 15 page paper with this first, before I fully delve into my diploma thesis. If this test doesn’t prove successful by my yet to be determined standards, which may include those dreaded custom styles (anybody has good documentation on .sty files?), off I am to OpenOffice with TinyPDF again.