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.

@TH. has shown a great way to use lining figures in tables:

Palatino fonts and the number 713

Is there an equivalent for a longtable? Because neither @tabular nor @longtable gives me lining figures in the longtable. (Since I will only use longtables in the appendix it would be also okay (quick & dirty) to set lining figures globally at that point where I start the appendix)

mwe:

\documentclass{scrreprt}
\usepackage{longtable}
\usepackage{etoolbox}
\usepackage[sc,osf]{mathpazo}
\makeatletter
\preto\@tabular{\fontfamily{pplx}\selectfont}
\preto\@longtable{\fontfamily{pplx}\selectfont}
\makeatother

\begin{document}
text: 713

\begin{tabular}{c}
regular table\\
713
\end{tabular}

\begin{longtable}{c}
longtable\\
713 
\end{longtable}
\end{document}
share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

In case of longtable macro \LT@array can be redefined:

\documentclass{scrreprt}
\usepackage{longtable}
\usepackage{etoolbox}
\usepackage[sc,osf]{mathpazo}
\makeatletter
\preto\@tabular{\fontfamily{pplx}\selectfont}
\preto\LT@array{\fontfamily{pplx}\selectfont}
\makeatother

\begin{document}
text: 713

\begin{tabular}{c}
regular table\\
713
\end{tabular}

\begin{longtable}{c}
longtable\\
713
\end{longtable}
\end{document}

Result

share|improve this answer
add comment

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.