Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have some trouble using Palatino fonts (psnfss2e distribution} for numerals in text and tables.

I load the package as \usepackage[sc,osf]{mathpazo} which sets the font to
oldstyle numerals in text and small caps. The oldstyle numerals look good with text having the letters match the lowercase characters. However, in tables they don't look very good. How can I apply a different font as a default for tables? What would be a suitable font to match?

The font also looks particularly ugly (the seven and one seem to have been designed by a different person!) as you can see in the image below. Is there a way to apply a different font to all numbers, but keep the font for characters only? alt text

Below is a minimal with different font samples for convenience.

\documentclass[11pt]{article} 
\usepackage{graphicx} 
%\usepackage{mathptmx,courier}
\usepackage[scaled=0.92]{helvet}
\usepackage[sc,osf]{mathpazo}
\normalfont
\usepackage{pifont,tabularx,varioref,url}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{ragged2e}
\newif\ifutopia
\utopiatrue 
\newlength{\rightwidth} 
  \rightwidth=10cm
\newlength{\leftwidth}
  \leftwidth=\textwidth
  \addtolength{\leftwidth}{-\rightwidth}
  \addtolength{\leftwidth}{-1em} % ?
\newcommand{\sample}[5]{%
  \parbox[b]{\leftwidth}{%
    {\raggedright\footnotesize
    #1\\
    #3/#4\par}}
  \hfill
  \parbox[t]{\rightwidth}{
  {\fontfamily{#2}\fontsize{#3}{#4}\selectfont #5
    \scalebox{5}{fonj 713} \begin{tabular}{l}\Large \MakeUppercase{fontj 713} fontj 713\end{tabular}
  \par}}
  \medskip}
\begin{document}
\sample{Times scale5x}{ptm}{10}{12pt}{}

\sample{Palatino pplj scale 5x}{pplj}{10}{12.4pt}{}

\sample{Bookman scale 5x}{pbk}{9.6}{11.5pt}{}

\sample{Charter scale 5x}{bch}{10}{12.4pt}{}

\sample{New Century Schoolbook scale5x}{pnc}{9.6}{12pt}{}

\ifutopia
  \sample{Utopia scale 5x}{put}{9.6}{12pt}{}
\fi

\sample{Helvetica scale 5x}{phv}{10}{12pt}{}
\end{document}
share|improve this question
4  
I just looked up samples of an authentic Palatino in ‘Hermann Zapf and his Design Philosophy’, and those numerals are definitely correct to the original intention of the design. (I guess I should also mention that Palatino is one of my favourite fonts.) I highly recommend not mix-and-matching the alphabetic and numeral fonts. –  Will Robertson Jan 30 '11 at 12:51

2 Answers 2

up vote 17 down vote accepted

To change the font in tables, use the etoolbox package to modify \@tabular:

\documentclass{article}
\usepackage[sc,osf]{mathpazo}
\usepackage[T1]{fontenc}
\usepackage{etoolbox}

\makeatletter
\preto\@tabular{\fontfamily{pplx}\selectfont}
\makeatother
\begin{document}
OSF: 0123456789
\begin{tabular}{l}
0123456789
\end{tabular}

\end{document}
share|improve this answer
3  
I think pplx would be better as you get the improved kerning. –  Will Robertson Jan 4 '11 at 5:54
    
@Will: Thanks. I updated the answer. –  TH. Jan 4 '11 at 6:23

compare it with the libertine:

alt text

share|improve this answer
    
thanks the libertine looks so much better! –  Yiannis Lazarides Jan 4 '11 at 9:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.