You are browsing the archive for 2011 November.

Page Numbering with Roman and Arabic Numerals in LaTeX

November 27, 2011 in LaTeX

Working on a university course final hand-in the other day I discussed with a couple of friends at uni how one would go about the following in LaTeX:

  • not numbering the frontpage
  • numbering the table of contents (TOC) with roman numerals
  • numbering the remaining pages with arabic numerals

That evening I got an e-mail from one of them (Jørgen) who has now done some research. His master thesis template does this “automatically”. It simply defines where the \frontmatter{} begins and where the \mainmatter{} begins.

Trying this in my own article LaTeX threw errors at me. It didn’t know these commands. Some googling made me realise that these are only available in book-like document types, ergo not in the article type. So if you’re using a type that supports this, well then you can stop reading right about now!

If not, then you might be interested in what I found out on google when investigating this further. I’m simply going to put this out there in code which should be pretty self-explanatory:

% frontpage:
\thispagestyle{empty} % to avoid numbering the current page
% note that the page is still counted, so you need to reset the counter properly if that is not intended. If you use \pagestyle, the style will be set for the entire document. Then you will need to set it back with something like \pagestyle{plain} (or something more exotic)

% TOC:
\pagenumbering{roman} % roman numerals
\setcounter{page}{1}  % reset counter

% Regular content:
\pagenumbering{arabic} % arabic numerals}
\setcounter{page}{1} % reset counter

And this works! You can do the same with sections too, but it requires a different approach. Setting the counter value is the same, just replace page by section/subsection/subsubsection. To define the numerals to be used with sections you need to do this redefinition:

\renewcommand \thesection{\roman{section}}
\renewcommand \thesubsection{\roman{section}.\roman{subsection}}
\renewcommand \thesubsubsection{\roman{section}.\roman{subsection}.\roman{subsubsection}}

Et voilà!

Note that if you want big roman numerals (e.g. VI instead of vi) you can use Roman instead of roman.

Telefonica Wins First Leg of Volvo Ocean Race 2011

November 26, 2011 in Sailing

Team Telefonica's Volvo Open 70

Tonight Team Telefonica arrived first in Cape Town with 40 knots of gusting winds pushing their Volvo Open 70 boat into port. What an amazing race!

I find sailing to be a big source of inspiration and am thinking about picking it up myself as a hobby, though with nothing near a Volvo Open 70!

I have been following the Volvo Ocean Race the last month and what a competition. Amazing teams go up against natures wildness in an effort to go around the earth as fast as possible. Three boats have either had their masts smashed to pieces or suffered huge hull damage, which is the case of Team Sanya. This is a though race. Over the years five people have lost their lives during racing. Ocean racing is a dangerous sport.

After reading in the Norwegian sailing magazine Seilas (no. 9, 2011) that norwegian navigator Aksel Magdahl is participating with Team Sanya I guess nationalism gives me a team to support. I just hope their hull will be good as new and ready for the next in-port race in Cape Town and the second leg to Abu Dhabi, which will be more of a sprint into Abu Dhabi due to the pirate threat off the African coast. Looking forward to the start on december 11th!

In Seilas they also stated that Stavanger is interested in applying to be a Volvo Ocean Race port in 2018. To succeed they would probably also have to put together a participating team since cities that participate with a boat is much more likely to be chosen. Now THAT would be exciting… Check out the article which contains more info.

You can follow the race at the official website and even create your own boat and join the fun in the Volvo Ocean Race Game!

On a side note; I would love to learn more about the actual boat technology. Wonder where information about this can be found, if it is not guarded as trade secrets.