Installing LyX on the Mac

Why would you like to install LyX

If you want to create good looking documents on your Mac, you basically have three options:

  1. Learn typography and buy a DTP-program such as Quark or InDesign.
  2. Install LyX.
  3. Give up the idea of having good looking documents and use Word.

LyX is a front end to TeX, which is a computer implementation of the rules typesetters have been working by for centuries. By using LyX you can be sure that your documents look good. 

So what do you sacrifice? Well, think about it as leaving your manuscripts to type-setting. Typesetters know what they are doing, but tend to have strong opinions. So if you want to have complete control on the layout you are in for trouble...

If that does not scare you off, continue for a guide on how to install and run LyX on the Mac.

What you need

All software is completely free. But you will need: I will try to keep this introduction short and to the point. If you like the details on how to install LyX on the Mac, see http://wiki.lyx.org/LyX/LyXOnMac

The installation might take anywhere between half an hour and half a day depending on your bandwidth and server load. But don't worry, it won't lock up your computer during the time and you don't have to babysit the computer during the installation.

Installing TeX

Let's dive right in. An explanation to what you have done is given in the end. You can read this as your installation is progressing.

Known packages

Freetype select papersize

What have I done?

If you like to see what has happened, select the Finder and choose Go-> Go to Folder... (or press Cmd+Shift+G). Type /usr and return. Select local and then teTeX. This is a directory that contains roughly 235 MB, which has been installed by the i-Installer. Normally you are not supposed to mess with this directory (but there are exceptions as we will come to).

tetexinfo

What do all these Megabytes contain?

They contain instructions on how to typeset documents. The additional packages you installed contain instructions for tasks related to this, such as converting image files to a format that can be used by teTeX.


Now you can use teTeX to create documents straight away, but unless you feel like writing input files like:

\documentclass{article}
\title{Cartesian closed categories and the price of eggs}
\author{Jane Doe}
\date{September 1994}
\begin{document}
   \maketitle
   Hello world!
\end{document}

and typing some commands in the Terminal to get the corresponding pdf-document, LyX is your choice.

We will come to how you install LyX shortly,  Let's just conclude by saying that you have installed a package that LyX will need to help you create nice-looking documents. How it works is something you actually don't have to worry about, although I can promise you that you will probably want to tweak the inside sooner or later. But that's another story.

Installing LyX

Now it's time for the easy part: installing LyX.

lyx-package

installer

Now you are done with the installation of LyX.

install-done

What have I done?

The install script has created a directory "LyX-1.4" in the directory "Application Support" which is in the directory "Library" in your home directory. In that folder the script has placed some templates and other stuff.
It has also put some templates in /usr/local/teTeX/share/texmf.local/tex/latex/lyx/ this is deep into the directory that was created by the i-Installer for the TeX-installation.

Why do we need two templates? 

The easy answer is that the templates in the "Application Support" folder control what you will see on the screen when running LyX. The templates installed deep in the teTex folder controls what you will see on paper when you print your document.

Creating your first LyX document

splash

new_file

title

text

LyX works in the way that you tell the program: this is a title, this is the name of the author, and so on. Section* means that this is the header for a section, but that it should not be numbered (try Section instead and you get a numbered heading).


Now the text you have written doesn't look fancy at all. LyX uses a bare-bone approach and just shows you what you really need to see. Let's look at what will appear on paper:

bitmap

Now this actually looks like crap. The reason is that the fonts used are bitmapped, which doesn't come out good on-screen (much better on paper). We need to do something about this:

Doc-settings

text-setting

output2


Now there are a bunch of other settings you can alter, such as document class (try for instance article (koma-script)), margins, etc. But this introduction will not delve in details on formatting. Those you can find at http://wiki.lyx.org/LyX/Documentation. Instead we will look closer at some more Mac-specific aspects in a later part.