[Tex/LaTex] MinionPro Number Styles: lining, tabular using pdfLaTeX

fontsminionpropdftextables

I have successfully installed the MinionPro font for LaTeX. It works with pdfLaTex.
I also changed the number style to lining with:

\usepackage[textlf]{MinionPro}

However if I have a table with numbers, I would like to get numbers in tabular form (monospaced).

I'm looking for an option to write in the preamble that applyies at the entire document and works with pdfLaTeX.

Thank you very much for some hints!

MWE (as requested):

\documentclass[11pt]{scrreprt}
\usepackage[textlf]{MinionPro}
\begin{document}

\figureversion{lf,tab} \begin{table} \begin{tabular}{r|rr}
\bf{-44}    &-2.50  &-1.54  \\ 
\bf{-31}    &-1.14  &-1.17  \\ 
\bf{-22}    &-0.77  &-0.80  \\ 
\bf{-11}    &-0.39  &-0.11  \\ 
\bf{-0} &-0.01  &-0.04  \\
\bf{0}  &0.00   & 0.04  \\ 
\end{tabular} \end{table}

\begin{table} \figureversion{lf,tab} \begin{tabular}{r|rr}
\bf{-44}    &-2.50  &-1.54  \\ 
\bf{-31}    &-1.14  &-1.17  \\ 
\bf{-22}    &-0.77  &-0.80  \\ 
\bf{-11}    &-0.39  &-0.11  \\ 
\bf{-0} &-0.01  &-0.04  \\
\bf{0}  &0.00   & 0.04  \\ 
\end{tabular} \end{table}

\end{document}

In the first example where the figureversion is out of the table it does not have any influence on the table itself.

In the second example, where the figureversion is inside the table it works for the not bold numbers (not for the first column).

enter image description here

Best Answer

You could add \figureversion to the tabular environment, that way tabular numbers are used for all tables in your document.

\documentclass[11pt]{scrreprt}
\usepackage[textlf]{MinionPro}
\usepackage[toc,eqno,enum,bib,lineno]{tabfigures}

% ------------------------------------
% Add \figureversion{lf,tab} to 
% the tabular-environment

\usepackage{etoolbox}
\AtBeginEnvironment{tabular}{%
    \figureversion{lf,tab} 
}

\begin{document}

\begin{table} 
    \begin{tabular}{r|rr}
        \textbf{-44}    &-2.50  &-1.54  \\ 
        \textbf{-31}    &-1.14  &-1.17  \\ 
        \textbf{-22}    &-0.77  &-0.80  \\ 
        \textbf{-11}    &-0.39  &-0.11  \\ 
        \textbf{ −0}    &-0.01  &-0.04  \\
        \textbf{  0}    & 0.00  & 0.04  \\ 
    \end{tabular}
\end{table}

\end{document}

EDIT: Added \usepackage[toc,eqno,enum,bib,lineno]{tabfigures}

Related Question