Show line numbers in vi or vim

Posted: 7th January 2013 by Tim in Linux, Vim
Tags: , , , , , , ,

If you want line numbers to show up in vi or vim, this can be done by typing the following command from within the program: :set number or, in shorter form: :set nu Doing this from within vi[m] will show the numbers for that session, but they will be gone next time you start up […]

LaTeX table and figure numbering style

Posted: 18th July 2011 by Tim in LaTeX
Tags: , , , , , , , , , , ,

In LaTeX, by default, tables are numbered Table 1, Table 2, Table 3 an so on (or Table 1.1, Table 1.2, Table 2.1, etc if you’re using chapters). Sometimes you may want to change the way these are numbered. The solution is very similar to changing list numbering styles using different keywords. Like enumeration lists, […]

LaTeX page numbering

Posted: 29th June 2009 by Tim in LaTeX
Tags: , , , , , ,

Getting the page numbering right in LaTeX documents may not seem like a big deal, but it’s frustrating when it’s all wrong. Here’s a brief summary on how to get it sorted. For starters, page numbers will appear on all pages which have a page style of plain, headings or myheadings (ie: anything other than […]