## LaTeX forum ⇒ Text Formatting ⇒ Lining figures in ToC

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

### Lining figures in ToC

Hello everybody, I normally use Text Figures in the body text, but since ToC entries are all caps, I need chapter numbers to be Lining Figures. How can I do that? Can tocloft help me achieve that?

\documentclass{book}\usepackage{fontspec}\setmainfont[Mapping=tex-text, Numbers=OldStyle]{Latin Modern Roman} \begin{document} \tableofcontents \chapter{Introduction} \section{blah} \chapter{Conclusion} \section{blah} \end{document}

Thanks!

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm
Simply like this?

\documentclass{book}\usepackage{fontspec}\setmainfont[Mapping=tex-text, %Numbers=OldStyle]{Latin Modern Roman} \begin{document} \tableofcontents\addfontfeatures{Numbers=OldStyle} \chapter{123678 Introduction}1234567890\section{blah}\chapter{Conclusion}\section{blah}\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm
Thanks Johannes_B, but you see, I'm rather picky about that: I want lining figures as chapter numbers (because titles are all caps), but text figures in page numbers.

Is it possible to get that?