I'm using the eco package to get oldstyle numbers in my manuscript, but I'm trying to get the section numbers (in the mainmatter and the table of contents as well) to be "newstyle numbers" (ie. lining figures) and having a tough time with it.
Can anyone shed some light on the matter please?
PS: It would be nice to get lining figures in the table and figure numbers as well.
Edit: posting a mwe below (regarding doncherry's suggestion).
\documentclass{book}
\usepackage{eco}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\renewcommand{\thechapter}{{\fontfamily{cmr}\selectfont\arabic{chapter}}}
\renewcommand{\thesection}{{\fontfamily{cmr}\selectfont\arabic{section}}}
\renewcommand{\thesubsection}{{\fontfamily{cmr}\selectfont\arabic{subsection}}}
\renewcommand{\thesubsubsection}{{\fontfamily{cmr}\selectfont\arabic{subsubsection}}}
\renewcommand{\theparagraph}{{\fontfamily{cmr}\selectfont\arabic{paragraph}}}
\renewcommand{\thesubparagraph}{{\fontfamily{cmr}\selectfont\arabic{subparagraph}}}
\renewcommand{\thefigure}{{\fontfamily{cmr}\selectfont\arabic{figure}}}
\renewcommand{\thetable}{{\fontfamily{cmr}\selectfont\arabic{table}}}
\begin{document}
\tableofcontents{}
\part{One}
\chapter{One--One}
\section{One--One--One}
\subsection{One--One--One--One}
\subsubsection{One--One--One--One--One}
\paragraph{One--One--One--One--One--One}
\subparagraph{One--One--One--One--One--One--One}
\subparagraph{One--One--One--One--One--One--Two}
\subparagraph{One--One--One--One--One--One--Three}
\paragraph{One--One--One--One--One--Two}
\subparagraph{One--One--One--One--One--Two--One}
\subparagraph{One--One--One--One--One--Two--Two}
\subparagraph{One--One--One--One--One--Two--Three}
\end{document}



Could you give a MWE that illustrates the problem including the
– cmhughes Oct 18 '11 at 16:54\documentclassso that those trying to help don't have to recreate it.!from the beginning of the line. Then a higher-rep user will edit the post to display the picture. – doncherry Oct 18 '11 at 18:57