Since I’ve had my PhD thesis accepted I’ve had a couple of friends who are writing up their theses at CSE ask me for help. In particular, they’ve wanted to know how I used LyX to write and format my thesis. In case anyone else needs a hand, I’ve made the LyX layout files available below, along with some tips and tricks.

The Layout File
Much of the presentation of your document that is normally configured through LaTeX commands can be managed through LyX layout files. A layout defines the various styles and blocks (such as titles, headings, author details, code, etc.), how they will appear on screen in LyX and how they are to be translated to LaTeX.
To make the UNSW thesis layout file easier to use I embedded the LaTeX mark-up commands into the preamble of the LyX layout file. I realise the “correct” way to do this sort of thing is to write a LaTeX class file (e.g., unswthesis.cls) and create a corresponding layout file (e.g., unswthesis.layout) that references its commands. However, I thought it would be easier for LyX and LaTeX newcomers to only have to deal with a single file and not have to worry about fiddling with their LaTeX configuration too much.
Installing the Layout File
Download the following layout file and save it to the layout section LyX configuration directory. This is usually in Library/Application Support/LyX-1.5/layouts/ relative to your home directory.
Now open LyX and select LyX > Reconfigure from the menu. LyX will then ask you to restart. Once this is done the thesis layout should be installed and visible in the Document Class field of window opened via the Document > Settings... menu.
For this layout to work correctly, you will also need an image of the UNSW crest. I found a black and white PDF one that works nicely with this layout. You can download it here:
This file needs to be in the same folder as the LyX document using the thesis layout.
Using the Layout File
Once you have LyX restarted, open a new document and then go to Document > Settings... and then select “UNSW Thesis” from the document class list and hit OK.
This layout has all of the usual styles found in the Book class. Two of them, Author and Title, are used to control what is displayed on your thesis title page. In your new document, add a title using the Title style and put your name underneath in the Author style.
Save the document in the same directory as the unswcrest.pdf file and then turn it into a PDF document via the View > PDF (pdflatex) menu option.
You can download the thesis archive here:
More detailed information about the Layout file and the thesis archive can be found at my blog.