[OS X TeX] special font for tables in document

Christoph Eyrich ceyrich at gmx.net
Sat Feb 24 22:18:13 CET 2007


On Feb 24, 2007, at 7:18 PM, Gert van Oss wrote:

> \renewcommand{\rmdefault}{ptm}
>
> Above the table. However if I start writing below the table I would  
> like the initial font to appear again. 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} ...

as herbert schulz wrote: it must be grouped.

but: the above command isn't meant to be used in the middle of a  
document.

you better write:

\begin{table}
\fontfamily{ptm}\selectfont
...

two notes:

re: \begin{table}[!h]

if you want the float be placed at this point you better use the  
placement specifier [H] which is provided by the float package  
(\usepackage{float} in the preamble). [h] is just a suggestion.

re:
\begin{table}[!h]
\begin{center}
...

don't use \begin{center} ... \end{center} in a float environment  
because the center-environment inserts additional vertical space.  
better use the corresponding declaration, i.e. \centering.

christoph eyrich




------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list