In my TOC, I'm getting proportionally aligned numbers (see screen-capture).

How do I implement Cabin's tabular-lining figure style, knowing that I only use Cabin for my headings?



% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\linespread{1.05} % Palladio needs more leading

\usepackage{tocloft} % Customization of TOC LOF LOT


%\usepackage[table,xcdraw]{xcolor} % For shading in tables
\usepackage{xcolor} % For links color

\usepackage{caption} % To change way captions are labelled
\usepackage{nicefrac} % to write fractions
\usepackage{attrib} % For source of quotations
\usepackage{lettrine} % For NewThought formatting
\usepackage{array} % To define width of columns in long table
\usepackage{booktabs} % Nicer spacing in columns
\usepackage{siunitx} % To write Celsius, etc.
\usepackage{enumitem} % To create item lists

\usepackage{threeparttable} % For table notes + To allow footnote material to stay with the tabular environment
\usepackage{etoolbox} % To make table footnote font smaller
\usepackage{textcomp} % For Numero symbol

\usepackage{colortbl} % To define colors
\setmainfont{TeX Gyre Pagella} % Palatino clone

% QUOTE TEXT MARGINS + FONT SIZE %%%%%%%%%%%%%%%%%%%%%%%%

% FOOTNOTES IN QUOTATION %%%%%%%%%%%%%%%%%%%%


]{hyperref} % Hyperlinks


% CHAPTER, SECTION, SUBSECTION STYLE %%%%%%%%%%%%%%%%%%%%%%%%


\renewcommand{\cftpartfont}{\bfseries\color{black}\headingfont} % tocloft <=====
\renewcommand{\cftchapfont}{\bfseries\color{black}\headingfont} % tocloft <=====

\renewcommand{\cftpartpagefont}{\color{black}\headingfont} % tocloft <==========
\renewcommand{\cftchappagefont}{\color{black}\headingfont} % tocloft <==========


    % FRONTMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        \renewcommand{\cftdot}{} % This line removes dots for Sections and under


    % MAINMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    \part{Part One}

    \chapter{Chapter 1 of Part 1}

    \part{Part Two}

    \chapter{Chapter 1 of Part 2}


enter image description here


The 2019-04-24 version of cabin is broken: It claims

The only figure style supported is tabular-lining.

which is clearly not the case in OP’s picture—proportional figures are used. I did not find tabular figures in the font files.

Edit: After visiting the source: https://github.com/impallari/Cabin I confirm that Cabin does not contain any tabular figures at all. I think what Bob Tennent is trying to say is “the only figure style supported is proportional-lining”.

There is a solution, provided that tabular figures exist. Try the tabfigures package:

\setmainfont{TeX Gyre Pagella}[Numbers=Proportional]




\hfill 11111\par
\hfill 00000\par



tabular figures in toc

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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