Wednesday, 25 June 2008

LaTeX, monospace, bold, computer modern, bera

This isn't exactly "general interest", but if any other person trying to format their thesis has hit the same issue, it's useful to have this up there for Google to pick it up:

I've just been reformatting my PhD thesis (approved and graduated last year) as a technical report for the Computer Laboratory.  It's formatted in LaTeX, which is the typesetting system lots of computer science graduate students still use rather than stretchy rubber. If you use the Times font package, you might find that its monospaced font (something a bit like Courier) is rather wide, and looks very odd if you put a keyword in monospace in the middle of some Times prose.  The Computer Modern monospace font is a much less clashing size, much narrower than the other monospaced fonts I could find, and so that's what I used in my PhD when I printed it for submission.  Only it doesn't have a bold.  There's a trick on the Internet to put a bold monospace (typewriter) Computer Modern font in – but it's only good for print documents because it ends up being a bitmap font (looks blurry in most PDF viewers when viewed at the wrong size on the screen).  So, no good for the PDF technical report.

After some hunting around – Latin Modern is very similar to Computer Modern and does have a bold typewriter font – but not a bold italic monospace font – so bold italic ends up looking odd compared to not-bold italic.

After more searching around, a solution.  The Bera (Bitstream Vera) package has a small note in its documentation, in a file called bera.txt, saying: 
\usepackage[scaled]{...}    selects a default scaling of 90%, which makes the Bera fonts approximately match the size of the Computer Modern fonts.

(Actually I find scaled=0.88 fits better with surrounding Times text)

In otherwords, if you do \usepackage[scaled]{beramono} you'll have a monospace font that doesn't jar quite so much with surrounding Times text, and does have bold and bold italics, etc.

Oh, theres also a note saying Bera only works with T1 encoding, so you need:
\usepackage[T1]{fontenc}
\usepackage{textcomp}
as well (I put it before the \usepackage[scaled=0.88]{beramono}.

Saturday, 14 June 2008

CUE Business Plan Grand Final

A few months ago, three of us (Ed Schofield, Wallis Motta, and myself) made a last minute decision to enter the Cambridge University Entrepreneurs (CUE) Business Plan Competition. It's a very successful competition, having spun out companies that are now worth more than £40-million, so we always knew it was going to be tough.  Our team was "The Idea Belt", a company to sell innovation management software to mid-sized companies.  It's a software category that is coming into vogue, there aren't many vendors (and they're mostly small), and we'd spotted a better way of doing it. 
Happily for us, we made it through to the Grand Final, which was last Wednesday night, appropriately enough just a few hours before Sir Alan Sugar picked his latest Apprentice on the telly.  We didn't win – we were beaten by some absolutely fantastic teams (if you have a few pounds spare, Microantenna looks like a fabulous investment!).  But I was very happy we made it into the final.