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.

My table of contents should have the following properties:

  • oldstyle figures for page numbers and labels
  • chapter entries in spaced, lowercase smallcaps
  • numbers close (en-space) to the entries, no dotfill

You should be able to see in the MWE that oldstyle figures are produced for all labels and the page-numbers of the sections, but not for the page numbers of the chapters.

The oldstyle figures appear, if I comment either the

  • lsstyle command or the
  • \usetocstyle{nopagecolumn}

Both indicated in the MWE. As shown in the MWE-chapter Introduction, the combination (lsstyle, scshape, lowercase) works in normal text and produces oldstyle figures.

Please note

  • there are some problems when setting letterspaced smallcaps with LuaLaTeX. This is why I use the setting \addfontfeature{Renderer=Basic}.)
  • you need Microtype2.5 to reproduce the problem
  • the problem may be related to this tex.SE entry

MWE

% !TEX TS-program = LuaLaTeX
\documentclass{scrreprt}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}

\usepackage[letterspace=70]{microtype}

\usepackage{fontspec}
\setmainfont[Numbers={Proportional,OldStyle}]{Minion Pro}
\setsansfont[Numbers={Proportional,OldStyle}]{Myriad Pro}

\usepackage{tocstyle}
\usetocstyle{nopagecolumn} % comment this to see OSF
\settocfeature[toc][0]{entryhook}{\scshape\addfontfeature{Renderer=Basic}
\lsstyle % comment this to see OSF
\lowercase}


\begin{document}
\tableofcontents
\chapter{Introduction}

% to show that the combination works in normal text
{\scshape\addfontfeature{Renderer=Basic}\lsstyle\lowercase{aBcDeF 1234567890}}

\chapter{Methods}
\section{Method A}
\section{Method B}
\chapter{Conclusion}
\end{document}
share|improve this question
1  
If I add \settocfeature[toc][0]{pagenumberhook}{} all page numbers are oldstyle. –  egreg Mar 3 '13 at 20:14
    
The empty argument was the trick. I already tried \normalfont and \addfontfeature{Numbers={Proportional,OldStyle}} as pagenumberhook. Still a very weird problem, isn't it? Can you comment why this solution works? –  NauC Mar 3 '13 at 20:26
    
Sorry, but I tried once to understand tocstyle and gave up. –  egreg Mar 3 '13 at 20:28
    
Maybe it is a bug, I don’t know, but the package itself prints out a warning on every run, that it is in alpha state. –  Speravir Mar 3 '13 at 21:11
add comment

closed as too localized by mafp, Andrew Swann, Paul Gaborit, Claudio Fiandrino, Thorsten Mar 6 '13 at 9:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.