Sign up ×
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

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.

2  
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
http://tex.stackexchange.com/questions/100744/inconsistent-osf-in-table-of-contents-using-microtype-lualatex-and-tocstyle
tex.stackexchange.com
crawl=CC-MAIN-2015-48
62144
application/http; msgtype=response
sha1:WXHAS57WWJWNJJIHNCT5QCDSGWSNUHKC
<urn:uuid:4c216eb5-8d0d-4a10-9f7c-aedaa19a3098>
2015-11-27T19:13:49Z
104.16.119.182
sha1:TRLE4ASY2JSQTBOYOLLYA4Y2BOGS2HJE
<urn:uuid:687f745b-e181-4fda-8a78-112b942bf6c6>
http://tex.stackexchange.com/questions/100744/inconsistent-osf-in-table-of-contents-using-microtype-lualatex-and-tocstyle
response
<urn:uuid:ed8d4d94-dbf6-4628-b6e4-d647b144cf48>
robots: classic
hostname: ip-10-71-132-137.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-48
operator: CommonCrawl Admin
description: Wide crawl of the web for Nov 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf