# [OS X TeX] special font for tables in document

Gert van Oss gertmt at mac.com
Sat Feb 24 13:18:32 EST 2007

hi all,
I'm writing my Latex documents with Textmate and always use just the
standard font (I assume). I recently found out that I can use
different fonts as well and I would like to make use of that in my
tables. I'd like more 'straight' numbers. What I mean is that for
example the 7 in my setup (I've no idea which font it is) has a sort
of 'curved' leg. I prefer to have a different formatting, a more
straight leg.
I managed to get there by choosing the setup as written in the
'sample doc' below. I put something like:

\renewcommand{\rmdefault}{ptm}

Above the table. However if I start writing below the table I would
like the initial font to appear again. Maybe someone can advice me
how to achieve this?
Gert

--------sample doc-----------
\documentclass[a4paper,12pt]{article}
\usepackage{colortbl}
\begin{document}
\section*{Once upon a time, month 7}
July is month number 7.

\renewcommand{\rmdefault}{ptm}
\begin{table}[!h]
\begin{center}
\begin{tabular}{lc}
\rowcolor[rgb]{0.9,0.9,0.9}
\hline
Months in a year & no. of month \\
\hline
January &          1 \\
February &          2 \\
March &          3 \\
April &          4 \\
May &          5 \\
June &          6 \\
July &          7 \\
August &          8 \\
September &          9 \\
October &         10 \\
November &         11 \\
December &         12 \\
\end{tabular}
\end{center}
\end{table}

\section*{Month 7 again}
End of story.
\end{document}